Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the custom font class #47

Open
eduardoagr opened this issue Apr 19, 2024 · 2 comments
Open

Implement the custom font class #47

eduardoagr opened this issue Apr 19, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@eduardoagr
Copy link

Is your feature request related to a problem? Please describe.
Is frustrating that the tool lets you integrate custom font (like font awesome) but dosent add aa folder called "Helpers",where you wou have a static class with all fonts, ready to use in XAML.

Describe the solution you'd like
use this https://andreinitescu.github.io/IconFont2Code/

Describe alternatives you've considered
Create it myself.

@eduardoagr eduardoagr added the enhancement New feature or request label Apr 19, 2024
@mrlacey
Copy link
Owner

mrlacey commented Apr 20, 2024

I'm already looking at something similar ;)

To be clear, I assume you're talking about adding a class like what is produced by the referenced URI, rather than "a static class with all fonts". You want character codes, not fonts, right?

@eduardoagr
Copy link
Author

eduardoagr commented Apr 25, 2024

Yes

Create a static class for my icons, to reference in in the project

for example

  1. Go to the Link
  2. Darg n drop your font
  3. Generate the class
  4. Create a Class on Maui and copy the class generated

create a xlms to access it in xaml

xmlns:helpers="clr-namespace:DemyAI.Helpers"

Label FontFamily="Mat" FontSize="120" HorizontalTextAlignment="Center" IsVisible="{Binding isNotBusy}" Text="{Static helpers:IconFont.Cloud}" TextColor="#4646C6" VerticalTextAlignment="Center" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants