summaryrefslogtreecommitdiff
path: root/source/fitz/noto.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-04-09 13:08:27 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-04-25 12:26:33 +0200
commit333bdae9b44165297bfb7206b0bd0e6e02274ebc (patch)
tree48d7db99e6a8f69763c4fdc287eb706468ad9270 /source/fitz/noto.c
parent5be6d3c8cbf8aa8cd5120a0f7b5ae4c55428a3fa (diff)
downloadmupdf-333bdae9b44165297bfb7206b0bd0e6e02274ebc.tar.xz
Use objcopy to compile font resources.
Diffstat (limited to 'source/fitz/noto.c')
-rw-r--r--source/fitz/noto.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/fitz/noto.c b/source/fitz/noto.c
index 53418ef1..ee1dadcc 100644
--- a/source/fitz/noto.c
+++ b/source/fitz/noto.c
@@ -50,9 +50,10 @@
#define RETURN(NAME) \
do { \
- extern const int fz_resources_fonts_ ## NAME ## _size; \
- extern const unsigned char fz_resources_fonts_ ## NAME []; \
- return *size = fz_resources_fonts_ ## NAME ## _size, fz_resources_fonts_ ## NAME; \
+ extern const unsigned char _binary_resources_fonts_##NAME##_start[]; \
+ extern const unsigned char _binary_resources_fonts_##NAME##_end; \
+ return *size = &_binary_resources_fonts_##NAME##_end - _binary_resources_fonts_##NAME##_start, \
+ _binary_resources_fonts_##NAME##_start; \
} while (0)
const unsigned char *