figma-to-maui-graphics
figma-to-maui-graphics copied to clipboard
Implement the use of custom fonts
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.