Replies: 2 comments 1 reply
-
Well, I've found the |
Beta Was this translation helpful? Give feedback.
-
Sounds like you might have been using the wrong method I've been doing some cleanup in preparation for an RC to make the API more user friendly and augmented each method with a lot of documentation. The packages from MyGet are much closer to the API that will be in the v1 release. Fonts/src/SixLabors.Fonts/IFontCollection.cs Lines 63 to 76 in 998a0da System fonts on Linux are currently loaded from the following locations. Fonts/src/SixLabors.Fonts/SystemFontCollection.cs Lines 31 to 34 in 998a0da |
Beta Was this translation helpful? Give feedback.
-
Could you explain the actual font requirements a little please? I have code that renders a font fine in Windows with Arial, with no loading or anything. On Linux, I apparently need to create a collection and install fonts. But the font files I have, which work fine in other applications, show an error
Invalid glyph format, only TTF glyph outlines supported
. The file is OTF, and I used a web converted to make a WOFF version, but same error.I'm hoping that someone can tell me what the various font formats within a font file are, and how I can tell which I have. And then if there is a way to convert them to a required format. Or, is there a way to get the font "from Linux" and use that? Unfortunately I have to use this specific font, so I am keen to learn what I need to do to make it work. Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions