Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2022/08/06)Fwd 1 day (to 2022/08/08) >>>20220807 
artifexirc-bot <dukalis> Hello everyone. I've been learning C programming for a while now. One of the most common advice I get on how to get better at programming is to read and try to work on some open source project. I regularly use mupdf viewer on my pc and android phone. In mupdf-gl viewer I noticed that inside outline section there is not word wrapping. However word wrapping for outline is present in android mupdf viewer. Could somebody poi01:51.02 
  <KenSharp> Not in Ghostscript, no. Kerning is dealt with by the layout application it is not an attribute of the PostScript language.12:52.50 
  <KenSharp> Kerning information might be available in a TrueType font, or an AFM file for type 1 fonts, can't remmber offhand12:53.27 
  <KenSharp> Yeah the Adobe Font Metrics File Format Specification tells yo uwher kerning information is stored in a AFM file (not an AFM file is not a font, it is a separate file).12:54.34 
  <KenSharp> And the kern table in a TrueType font contains kerning information for the font.12:55.32 
  <KenSharp> If you look at page 333 of the PostScript Language Reference Manual (3rd edition) it says:12:59.04 
  <KenSharp> "Kerning information is also available in the AFM and ACFM files. When possible, applications should use this information directly instead of generating PostScript instructions to compute it."12:59.05 
  <KenSharp> If I do :13:00.53 
  <KenSharp> /Helvetica findfont 20 scalefont setfont (A) stringwidth pstack13:00.54 
  <KenSharp> THe I get 0.0, 13.338867213:01.06 
  <KenSharp> Your problem is that yo uhaven't selected a font and scale. If you do stringwidth with on font selected, the you will get 0 013:02.28 
  <seggie> No, I did select a scale - the problem is I thought (AV) show would be kerned, but I understand now that it is not. If you want kerning, you literally have to parse the .afm file and use kshow? There is no magic routine that does that for you?16:13.23 
 <<<Back 1 day (to 2022/08/06)Forward 1 day (to 2022/08/08)>>> 
ghostscript.com #mupdf
Search: