Skip to content

How to add true type fonts to SVG document #1063

Answered by H1Gdev
yatish-infogain asked this question in Q&A
Discussion options

You must be logged in to vote

Do I have to create and pass the SVGFontManager object to SVGDocument object or what?

It is automatically linked to SvgDocument.
Please add fonts to SvgFontManager.

SvgFontManager.PrivateFontPathList.Add(@"path\to\fontfile");  // if file.
SvgFontManager.PrivateFontDataList.Add(fontBytes);  // if binary.
SvgFontManager.LocalizedFamilyNames.Add(new string[] { "Yumin", "游明朝", }); // if needed.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@yatish-infogain
Comment options

@H1Gdev
Comment options

Answer selected by yatish-infogain
@yatish-infogain
Comment options

@H1Gdev
Comment options

@yatish-infogain
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants