Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Specification] Font awesome and others fonts should be built in. #294

Closed
davidbuckleyni opened this issue Jan 3, 2021 · 4 comments
Closed

Comments

@davidbuckleyni
Copy link

davidbuckleyni commented Jan 3, 2021

[The feature]

Fontawsome is that much part of mobile apps as it is web apps and should be able to be used inside a Maui Phone app as default.

API

For Example a button could have

<button x:name="btnPlanes" Icon="fa fa-plane fa-xs" IconPosition="Bottom"  Text="Plane"  TextPosition=TextPositionEnum font-Icon="fa-plane" />

When a use would enter the words fa a list of icons would be display in a dropdown editor element much the same way colours do. Then the user could pick the icon and would auto fill the Icon values their would also be a

IconPositionEnum=Bottom, Top,Left,Right, Center then could be a use case where one would need Bottom+Centre

IconPoistion

Size would be controlled in the same way it does at present in the web fonts in that you would have the attribute fa-xs for example would make a icon xtra small size spec here. https://fontawesome.com/how-to-use/on-the-web/styling/sizing-icons
When a user does x2 x4 it should make the icon the appropriate sizes

It should be that we could use font awsome icons and icon-icons another popular font icon.

It just feels that there is allot of configuration in downloading the fonts etc just to get them working.

@REscobar
Copy link

REscobar commented Jan 3, 2021

I believe the framework should be unopinionated about which font you should use as an icon font, but should make it easier to use any font glyph as an icon or image source

@nextcodelab
Copy link

nextcodelab commented Jan 5, 2021

xaml path, svg, image, fontIcons... we can use all of this is the best.. like this app has thousands of xaml path, svg path and android vector xml path....
https://www.microsoft.com/en-us/p/xaml-path-icons/9mtbnqsz9nz9?activetab=pivot:overviewtab

XAML.Path.Icons.2021-01-05.12-50-19_Trim.mp4

@REscobar
Copy link

REscobar commented Jan 5, 2021

You may want to disclose who the developer is

@bondarenkod
Copy link

bondarenkod commented Jan 19, 2021

You can build a NuGet package with this or any other font and start using it even with XF.
There is no single reason to include (embed) any fonts by default.

@PureWeen PureWeen closed this as completed Feb 1, 2021
@dotnet dotnet locked and limited conversation to collaborators Feb 1, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

5 participants