diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-04-09 13:08:27 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-04-25 12:26:33 +0200 |
commit | 333bdae9b44165297bfb7206b0bd0e6e02274ebc (patch) | |
tree | 48d7db99e6a8f69763c4fdc287eb706468ad9270 /source/fitz/noto.c | |
parent | 5be6d3c8cbf8aa8cd5120a0f7b5ae4c55428a3fa (diff) | |
download | mupdf-333bdae9b44165297bfb7206b0bd0e6e02274ebc.tar.xz |
Use objcopy to compile font resources.
Diffstat (limited to 'source/fitz/noto.c')
-rw-r--r-- | source/fitz/noto.c | 7 |
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 * |