Log of #mupdf at irc.freenode.net.

Search:
 <<<Back 1 day (to 2019/03/11)20190312 
ator avih: "hello"[1] == "e"09:55.18 
paulgardiner For MuSO, we build with these flags -DTOFU -DTOFU_CJK -DFZ_ENABLE_EPUB=0 -DFZ_ENABLE_HTML=0 -DFZ_ENABLE_XPS=0 -DFZ_ENABLE_SVG=011:26.03 
  But now we want to enable the other formats. How will that impinge on the font requirements?11:26.37 
ator EPUB and HTML want more fonts, XPS doesn't need any fonts at all11:30.13 
  paulgardiner: I wouldn't recommend adding SVG, our SVG support is rather incomplete11:30.31 
  paulgardiner: how do you handle CJK fonts for MuSO? are you using the system font callbacks?11:31.21 
paulgardiner I believe we are. I'd need to check to be sure11:31.45 
ator on android I believe you already are (since I wrote that code)11:33.11 
paulgardiner Opened ManyLang.epub, and the later paragraphs show no characters other than punctuation.11:34.01 
  ... on iOS11:34.08 
ator see the #ifdef HAVE_ANDROID section in platform/java/mupdf_native.c load_droid_(cjk|fallback)_font()11:34.08 
  you can add similar ones for iOS if you can access the system font files (but I'm not sure that's possible, due to the sandboxing nature of ios)11:35.07 
  see if you call fz_install_load_system_font_funcs anywhere11:35.38 
paulgardiner We handle CJK in PDF I believe via some mechanism or other11:35.44 
  There is a call to that with a callback function11:36.28 
ator yeah. extend those callbacks to support more fonts and scripts, and epub should be able to handle more languages.11:37.04 
  if you remove -DTOFU you can make the font selection more fine grained11:37.28 
paulgardiner We seem to be using the fonts we already needed to bundle with the app for the sake of office docs.11:37.45 
ator EPUB ideally wants a nicer font than Times Roman :)11:37.51 
  right, those fonts should be just fine for epub's needs11:38.45 
  it just needs to be able to find them, by unicode script tag11:38.57 
paulgardiner I don't know much about this area. The callback takes name, ros and serif11:41.00 
ator there should be 3 separate callbacks11:41.16 
  the name, ordering, serif is only for PDF CJK fonts11:41.23 
  there's another one that takes (script, language, serif, bold, italic)11:41.52 
  that is used for EPUB/HTML layout11:42.01 
paulgardiner I have two NULLs in my call to fz_install_load_system_font_funcs. I'm guessing I need to fill in other callbacks?11:42.19 
ator at least the third one11:42.26 
  the first one is for finding substitute fonts by name in PDF, that one you don't really need11:42.38 
paulgardiner Ah okay. That make sense.11:42.38 
 Forward 1 day (to 2019/03/13)>>> 
ghostscript.com #ghostscript
Search: