Follow-up Comment #14, bug #57506 (project groff): [comment #13 comment #13:] > TrueType fonts allow little scripts within the font to be > called before a glyph is stroked, so I suspect this is what > is happening to correct the glyph position.
Thanks for the detective work! That explanation makes sense. > Of course, when fontforge converts the font to type 1, any > scriptlets in the font get dropped. I suppose these scripts can be of arbitrary complexity, but I wonder if there's a way for fontforge to detect ones that merely alter a glyph's position, then account for that in the glyph definition it outputs. > What a good reason for gropdf to support otf/ttf fonts natively!! Surely just an afternoon's work... ;-} > And now for something completely different... > > Assuming you have called your Libertine font family "Lib", try this:- > echo "\fI\s'200'\v'200p'\N[2364]" | ./test-groff -Tpdf -fLib -ms > T.pdf > Surprised he hasn't an italic lean! I've learned that the numeric values that get placed in the font description file (the thing that \N[] is looking up) can vary--depending on, I'm not sure what, maybe different versions of fontforge or afmtodit, but I've run Peter's install-font.sh on the same .ttf files at different times and ended up with different numberings. So I'm not sure what glyph \N[2364] maps to on your installation. For me: # fgrep 2364 /usr/share/groff/site-font/devps/LI u1E9F 461,699,13,119,-19,75 2 2364 uni1E9F U+1E9F is LATIN SMALL LETTER DELTA, and when I run your command, I indeed get an italic lowercase delta. But I bet \N[2364] is an entirely different glyph in your Libertine Italic font. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?57506> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/