mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 15:26:12 +00:00
Follows #7608. Text from EMF, WMF and EMF+ pictures was laid out with the font's own spacing, so the per-character advances the file gives (ExtTextOut's lpDx, EMF+ DrawDriverString glyph positions) were dropped. - Characters are spaced by their advances as tracking, with pair kerning off. When a ligature forms at one tracking and breaks at the next, standard ligatures are turned off for that text. - On a single left to right line, an advance that tracking can't give (wider than its range, or a tab) starts a new point type object where the advance puts it, also between the letters of a ligature the tracking breaks apart. An underline or strikethrough is filled across the space between. Right to left and multi-line text stays one object. ExtTextOut: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-exttextoutw DrawDriverString: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-emfplus/b794b780-e9a8-4682-af65-9b614aecfbe6