mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-20 17:37:10 +01:00
A metafile playback starts in the opaque background mode with a white background color, and text drawn in that mode fills its character cells with the background color before the glyphs. EMF and WMF import now adds one filled rectangle of the background color behind each line of such text, before the type, from the font's OS/2 usWinAscent above the baseline to its usWinDescent below it, as far as the line's advances reach (NULs and negative advances included). Files that never set the background mode now import with a background behind their text. Top and bottom aligned text now has the top or the bottom of that cell at the reference point instead of 0.8 and 0.2 of the em. A single line without advances is aligned as long as its glyphs' advances, trailing spaces included. NULs after a line break move the start of that line, and underlined or struck through blanks draw their bars. Face::win_ascent_descent gives the OS/2 usWinAscent and usWinDescent separately, at a variable font's instance.