View Single Post
Old 12-19-2009, 05:27 AM   #110
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Quote:
Originally Posted by kartu View Post
I don't remember, whether .so file needs x flag, if it does, updating it a single file (option 5) with igorsk's universal flasher won't work. (it works only with non executable files, since x flag is never set).
It works, though. So maybe it doesn't need the 'x' flag.

Quote:
1) can epub file explicitly reference certain font by name (e.g. "Impact")? As far as I see from reading the code, ANY font file located in fonts is loaded.
Yes. But most often people don't specify font names, they just leave the renderer to use default fonts ("serif", "sans-serif" and "monospace").

Quote:
2) What will happen if there is no userStyle.css file in epub, will it still work as before?
Yes.

Quote:
3) Could you change the path to /Data/database/system/epub?
No. My hack depends on matching the filename length of the original filename. You start with res:///adobe/pxf/userStyle.css, so you have 30 characters to work with, 12 of which are pre-determined (res:///Data/). You would have to be able to recompile the .so file if you wanted to increase the length.
pepak is offline   Reply With Quote