summaryrefslogtreecommitdiff
path: root/scripts/fontdump.c
AgeCommit message (Collapse)Author
2017-03-21Replace fontdump, bin2hex and cquote with one tool: hexdump.Tor Andersson
Still need specialty tools for namedump and cmapdump.
2016-12-30Avoid using .incbin when compiling for Android.Sebastian Rasmussen
The clang 3.8 used in Android NDK r13 supports .incbin, but doesn't take any -I arguments into account when looking for the file to be included. In Android we depend on -I to locate the font files to be included. For ARM-based targets this works becased Android NDK supplies -fno-integrated-as to cause the compiler to use an external assembler that searches the -I arguments to locate the file to include. For x86-based targets -fno-integrated-as is not supplied so the files cannot be located and thus the compilation fails. To avoid this problem and be as robust as possible let's disable the .incbin directive for Android for all architectures and compilers.
2016-09-08Limit length of fontfile name in fontdump.Sebastian Rasmussen
2016-03-23Fix font builds on raspberry piRobin Watts
(And presumably other platforms). .align is broken - on some archs it wants the padding size, on others (like ARM) it wants log2(padding size). Use .balign which is consistent. Avoid using @ or # as these are comment chars on some archs. Use the STT_OBJECT form instead.
2016-03-23Compile embedded fonts in separate C files.Tor Andersson
Also change unsigned char into const char for embedded data.
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-28Tweak fontdump .incbin directive.Tor Andersson
Newer versions of clang supports .incbin, so enable it for clang. Disable .incbin for release builds, since then the compiler can strip out unused font data.
2014-05-02Fix 692171: Guard against .incbin on Intel's C compiler.Tor Andersson
2014-04-23Fix 692986: add OpenBSD to list of systems that may have .incbinTor Andersson
2013-06-03Assume non-clang compilers support incbinSebastian Rasmussen
2013-05-29Fix fontdump .incbin ifdef for clang.Tor Andersson
2011-11-01Tweak build scripts for iOS viewer.Tor Andersson
2011-04-06pdf: Change how CMap and font data files are generated and compiled.Tor Andersson
2011-04-06Move scripts and config files into "scripts" directory.Tor Andersson