[go: up one dir, main page]

Implement text to path for opentype-svg fonts

What does this do:

When converting text to path, use the opentype svg data when available. Even in current form this is a major improvement for two use cases: single line fonts (for plotters and other CNC) and big fancy letters for logos, banners and title texts based on colored opentype svg fonts.

Text on path works.

Converting text with such font to path creates a group (but regular text with multiple style ranges does the same). Only single style was converted to single path object, so this isn't much of a change.

What it doesn't do:

No fancy logic to deduplicate any of resources. Not ideal for long texts. Some of the discussion considered defining characters as symbols and instantiating with <use> tags. Minor redundancy shouldn't be an issue for the 2 previously mentioned usecases, if anything it might be preferrable to instantiate them as real individual paths instead of linked clones.

Nothing to do with svg fonts (.svg extension) or SVG Font Editor feature.

Doesn't change how colored fonts with opentype-svg data are rendered while they are still text objects (they are still blurry when zoomed in and for some fonts clipped).

No logic for overriding text fill/outline style. Doesn't make too much sense for multicolor fonts, but in cases of single stroke ones it could be convenient. Need to investigate whether browsers or adobe tooling support anything like that.

Doesn't support multiple glyphs in single SVG.

Screenshots

image image

Related issues

inbox#9252

Edited by karliss1

Merge request reports

Loading