Age | Commit message (Collapse) | Author |
|
Still need specialty tools for namedump and cmapdump.
|
|
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.
|
|
|
|
(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.
|
|
Also change unsigned char into const char for embedded data.
|
|
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.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|