summaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
2016-02-11gl: Use fz_font instead of freetype directly.Tor Andersson
2016-02-03Bug 696546: Add fast strtofRobin Watts
Take on a (slightly tweaked) version of Simon Reinhardt's patch. The actual logic is left entirely unchanged; minor changes have been made to the names of functions/types to avoid clashing in the cmapdump.c repeated inclusion. Currently this should really only affect xps files, as strtof is only used as fz_atof, and that's (effectively) all xps for now. I will look at updating lex_number to call this in future.
2016-01-29Update Android build with HarfbuzzRobin Watts
2016-01-29Force all harfbuzz allocations through our allocators.Robin Watts
Because of a shortcoming in harfbuzz, we can't easily force all its allocations through our allocators. We fudge it, with the addition of some macros to change malloc/free/calloc into hb_malloc/hb_free/hb_calloc. To prevent thread safety issues, we use our freetype lock around calls to harfbuzz. We stash the current context in a static var.
2016-01-28Add harfbuzz thirdparty submodule.Tor Andersson
2016-01-28Add Noto fallback fonts.Tor Andersson
Look up fallback fonts by unicode script, with a flag to select the serif or sans-serif font style where such variants exist. Move all builtin fonts into fitz namespace.
2016-01-28Make (old) Win32 viewer honour user css file.Robin Watts
2016-01-18First import of bidi code.Robin Watts
2016-01-18Enable warnings in Android ndk-build.Robin Watts
2016-01-13VS Solution: Add fz_pool files.Robin Watts
2016-01-08gl: Clean up mupdf objects at exit.Tor Andersson
Makes valgrind somewhat usable (glfw and xlib still leak plenty of global objects at exit).
2016-01-06Squash some warningsRobin Watts
2016-01-05Remove fz_page argument from fz_annot function calls.Tor Andersson
2016-01-05gl: Draw outline around text fields.Tor Andersson
2016-01-05Link required thirdparty libraries into one library: libmupdfthird.aTor Andersson
Keep the extra thirdparty libraries (curl and glfw) separate. This matches the build process for android and win32. Also purge some unused makefile sections.
2015-12-28Drop 'jsimp' abstraction and use mujs directly.Tor Andersson
2015-12-22Update jbig2dec to latest.Robin Watts
In particular this takes on the Memento fixes for bug 696183.
2015-12-18iOS: Fix two warnings in MuPrintPageRenderer with latest XcodeJoseph Heenan
MuPrintPageRenderer.h:2:9: error: 'MuDocRef.h' file not found with <angled> include; use "quotes" instead MuPrintPageRenderer.m:35:16: warning: if statement has empty body [-Wempty-body] MuPrintPageRenderer.m:35:16: note: put the semicolon on a separate line to silence this warning
2015-12-18Remove fz_save_document and use pdf_save_document directly instead.Tor Andersson
In preparation of adding pdf_write_document that writes a document to a fz_output stream.
2015-12-15muPDF iOS app: Support for the latest (3.4.1) Crashlytics.fredrossperry
- added four zlib files to Makethird that contain functions needed by the new version. - added -Wno-implicit-function-declaration so these new files, which contain some implicit declarations, would build for iOS - added a section to Info.plist that holds the new API key, with an invalid value that the release build script will fill in. - changes to MuAppDelegate for the new version. <log></log>
2015-12-15muPDF iOS app: properly support 4-inch iPhone.fredrossperry
A new TestFlight build could not be uploaded without making sure that the default launch screen image was getting placed in the app package. <log></log>
2015-12-15muPDF iOS app: add bitcode and UIRequiresFullScreenfredrossperry
Starting with Xcode 7, bit code is enabled by default. This change enables it in the static libraries that are linked, by adding the appropriate compiler switch. Also added UIRequiresFullScreen to the plist; this seems to have no ill effect when uing XCode 6. <log></log>
2015-12-15Rename fz_write_x to fz_save_pixmap_as_x or fz_save_bitmap_as_x.Tor Andersson
Separate naming of functions that save complete files to disk from functions that write data to streams.
2015-12-14Android: Try and minimise warnings in JNI code.Robin Watts
Push the pointer->long and long->pointer casting through 2 static inline functions.
2015-12-11Rename structured text structs and functions to 'stext'.Tor Andersson
Less risk of confusion with the text type used in the device interface.
2015-12-11win32: Always build 'generated' in 32-bit mode.Tor Andersson
Otherwise we can't run file generation tools with a 64-bit target on a 32-bit host.
2015-12-11gl: Move related case clauses together.Tor Andersson
2015-11-12gl: Add x64 target to MSVC project files.Tor Andersson
2015-11-10gl: Use named constants instead of magic numbers.Tor Andersson
2015-10-29gl: Limit shrinkwrap window sizing to fit the primary monitor size.Tor Andersson
2015-10-21Bump version number.Tor Andersson
2015-10-15x11: Add generic pixel conversion function.Tor Andersson
Slow, but at least it won't crash. Fix for bug 695742.
2015-10-15gl: Rename font variables.Tor Andersson
2015-10-15android: Update ThirdParty.mk to work with new freetype version.Tor Andersson
2015-10-14Add proper support for when a combobox widget has options that are 2-element ↵Michael Vrhel
arrays The list box and combo box can have values that are 2-element arrays. The first element is the "export" value and the second element is the value that should be shown in the list box UI. This fix ensures that we get the proper value to show in the UI. Also, it adds the option to get the export values. These are needed if you wish to update the field dictionary's V (value) entry, which is the currently selected values(s). This fix works well with gsview. The other viewers will now display the proper content in their UI, (unlike before this fix) but may need a bit more work to ensure that the proper V (value) is updated with changes in the selections. In addition, we add selection rectangles to the selected list box items.
2015-10-14gl: Fix win32 release mode build.Tor Andersson
Always build with the 'windows' subsystem and use WinMain. Turn on USE_OUTPUT_DEBUG_STRING to capture fz_warn and fz_throw error messages.
2015-10-14gl: Add missing icon file.Tor Andersson
2015-10-06gl: Remove stray semicolon in win32 file selection error check.Tor Andersson
2015-10-06gl: Add checks to prevent overruns in the presence of malformed UTF-8.Tor Andersson
2015-10-06Update freetype submodule to version 2.6.1.Tor Andersson
2015-10-06gl: Accept command line arguments.Tor Andersson
2015-10-06gl: Clamp scrollbar when the content is fully visible.Tor Andersson
2015-10-06gl: Cleanups.Tor Andersson
2015-10-06gl: Display metadata information overlay.Tor Andersson
2015-10-06gl: Keep shrinkwrap when toggling outline side panel.Tor Andersson
2015-10-06gl: Fix text selection bug.Tor Andersson
2015-10-06gl: Add scroll wheel support.Tor Andersson
2015-10-06gl: Base UI sizes on line height.Tor Andersson
2015-10-06gl: Add simple (mouse event only) forms support.Tor Andersson
2015-10-06gl: Keep fz_page around for later use with annotations.Tor Andersson