-
Users upload fonts from the front end and these fonts are stored in the cloud , when user wants to draw an image he chooses a custom font to be applied to text, and I get the custom font stream from the cloud and install it using the fontcollection install method, The challenge I have is that when I call try find on a font I usually do not know the name of the font to find because during installation of fonts the family name is different some times, for example I install "RobotoBoldItalic" image sharp saves the family name as RobotoBold sets the available style to italic, at run time I do not know if I should search for robotobold or robotobolditalic . please is there a way around this ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
When you call
As long as you only have a single font installed into the specific |
Beta Was this translation helpful? Give feedback.
-
Hello, Please I will like to know if we can draw svg on canvas? |
Beta Was this translation helpful? Give feedback.
When you call
FontCollection.Install(stream)
you will have aFontFamily
returned. Using theFontFamily
you can new up aFont
instance from it.As long as you only have a single font installed into the specific
FontCollection
you will get whatever variant you installed no matter theFontStyle
specified. The way we currently useFontStyle
is more of a hint than a specific requirement.