Please enable JavaScript to view this site.

This topic is about adding color glyphs with the SVG extension.

To enable the SVG options in the Glyph panel, ensure it is in Color SVG mode.

Generating an SVG color glyph

The easiest way to add a SVG color outline, is to generate it from the COLR outline. In Color SVG mode, right-click and select Color -> Convert COLR to SVG.

 

Alternatively you can import an SVG file. Be sure the transform used within the SVG document is adjusted so the color outline is positioned and sized correctly.

 

Within the glyph panel go into SVG color mode. Then right-click inside the edit area to edit or import the SVG document. Here is the content of one such SVG document:

 

<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<g transform="scale(1,-1)">
<path d="M701 1182c-334 0-605-271-605-605 0-334 271-605 605-605 335 0 606 271 606 605 0 334-271 605-606
605 z" fill="none" stroke="#FFF000" stroke-width="64" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M886 903c57 0 103-31 103-69 0-38-46-69-103-69-57 0-103 31-103 69 0 38 46 69 103 69 z M520 903c57
0 103-31 103-69 0-38-46-69-103-69-57 0-103 31-103 69 0 38 46 69 103 69 z" fill="none" stroke="#00DDFF"
stroke-width="64" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M1112 555c0-171-182-309-406-309-224 0-405 138-405 309" fill="none" stroke="#FF0000"
stroke-width="64" stroke-linecap="round" stroke-linejoin="round"/>
</g>
</svg>

 

Tip: if you design your color glyphs through the CPAL extension, you can let FontCreator generate SVG color data on export of your font. So then there is no need to manually add SVG color data.

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC