figma-to-maui-graphics icon indicating copy to clipboard operation
figma-to-maui-graphics copied to clipboard

Implement the use of custom fonts

Open jsuarezruiz opened this issue 1 year ago • 0 comments

Currently, the source generator is creating the necessary code to use custom fonts. Example:

canvas.Font = new Microsoft.Maui.Graphics.Font("SegoeUI-Semibold", 600, FontStyleType.Normal);

However, in addition to the lines of code it is necessary to download the font file and .NET MAUI Graphics works with embedded files.

jsuarezruiz avatar Sep 22 '22 10:09 jsuarezruiz