jsuarezruiz / figma-to-maui-graphics

FigmaSharp.Maui.Graphics turns your Figma design into .NET MAUI Graphics code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement the use of custom fonts

jsuarezruiz opened this issue · 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.