Git Product home page Git Product logo

Comments (17)

werddomain avatar werddomain commented on August 18, 2024 1

i have a similar isue, but the path are different.
Each font package missing fonts ..
Tha asked path is "C:\Users\Benoit.nuget\packages\Xam.Plugin.Iconize.SimpleLineIcons\1.0.10\lib\UAP10\Plugin.Iconize.SimpleLineIcons.UWP\Assets\Fonts\iconize-simplelineicons.ttf"

i have copied files in the right dirrectory (i had to create directory structure) and now it work

from xamarin.plugins.

nbrowne avatar nbrowne commented on August 18, 2024

@alllohaaa I think you're onto something. I was able to get the fonts (material design specifically) working in UWP by making sure that Plugin.Iconize.Material.UWP\Assets\Fonts\iconize-material.ttf existed in the AppX output folder. I accomplished that by:

  1. Creating the folder structure in the root of my UWP project Plugin.Iconize.Material.UWP\Assets\Fonts\
  2. Copying iconize-material.ttf to the new Fonts directory
  3. Including the .ttf file in the project and setting it to "Copy if newer"
  4. Rebuilding and then deploying the project

This isn't really a good solution long term, but I'm not familiar enough with nuget or xamarin to put a pull request together.

from xamarin.plugins.

jsmarcus avatar jsmarcus commented on August 18, 2024

I have modified the UWP projects to Generate library layout and updated the nugets. Try the new version, hopefully that has solved your issue. UWP is still in beta but the label and buttons should be working for you.

from xamarin.plugins.

alllohaaa avatar alllohaaa commented on August 18, 2024

Maybe I go wrong, but I guess now you have to include assets folder into nuget fonts packages somehow. I have

C:\Program Files (x86)\MSBuild\Microsoft.NetNative\Microsoft.NetNative.targets(396,7): error MSB3030: Could not copy the file "...\packages\Xam.Plugin.Iconize.FontAwesome\1.0.9\lib\UAP10\Plugin.Iconize.FontAwesome.UWP\Assets\Fonts\iconize-fontawesome.ttf" because it was not found.
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\Microsoft.NetNative.targets(396,7): error MSB3030: Could not copy the file "...\packages\Xam.Plugin.Iconize.Ionicons\1.0.9\lib\UAP10\Plugin.Iconize.Ionicons.UWP\Assets\Fonts\iconize-ionicons.ttf" because it was not found.

Just try your own samples in another solution and reference all dependencies through nuget

from xamarin.plugins.

JohBa avatar JohBa commented on August 18, 2024

I have the same problem as @alllohaaa, copying the file in the folder works, but isn't really a good workaround.

from xamarin.plugins.

BenDevelopment avatar BenDevelopment commented on August 18, 2024

I'm still facing the same problem wih the last nuget version.

from xamarin.plugins.

 avatar commented on August 18, 2024

@werddomain me too

from xamarin.plugins.

miggat avatar miggat commented on August 18, 2024

Me too

from xamarin.plugins.

shorlick avatar shorlick commented on August 18, 2024

Same.

from xamarin.plugins.

bricegomis avatar bricegomis commented on August 18, 2024

I still have the same issue with the last nuget version.

from xamarin.plugins.

NoleHealth avatar NoleHealth commented on August 18, 2024

I still have the same issue with the last nuget version.

from xamarin.plugins.

ErikGranse avatar ErikGranse commented on August 18, 2024

Also having this problem with the current version of NuGet

from xamarin.plugins.

DevEddy avatar DevEddy commented on August 18, 2024

Same thing here

from xamarin.plugins.

f4bo avatar f4bo commented on August 18, 2024

I'm in the same boat: 1.0.10 release and still no fixes in view...
BTW I found a dirty fix:

  • go here and download the zip package
  • put the file iconize-fontawesome.ttf you'll find inside, in this folder:
    C:\Users\[your username]\.nuget\packages\xam.plugin.iconize.fontawesome\1.0.10\lib\UAP10\Plugin.Iconize.FontAwesome.UWP\Assets\Fonts\

from xamarin.plugins.

pcdus avatar pcdus commented on August 18, 2024

I encounter the same error for the IconToolbarItem: but my UWP project is .Net Standard type, and I use the latest version of the package (v.2.0.0.37-beta).

@f4bo I tried to adapt your solution to my case:

  • I've found the iconize-material.ttf if the zip package you mentioned
  • I've seen that the font is already present in this folder:

C:\Users[my_name].nuget\packages\xam.plugin.iconize.material\2.0.0.37-beta\lib\uap10.0\Plugin.Iconize.Material

  • but I've copied it in the following folder to match to your solution:

C:\Users[my_name].nuget\packages\xam.plugin.iconize.material\2.0.0.37-beta\lib\uap10.0\Plugin.Iconize.Material\Assets\Fonts

=> I've rebuild the projet, but nothing changed: the icon is still not displayed in the NavigationBar...

I also tried the solution given by @nbrowne:

  • I've created this folder structure in the root of the UWP project:

Plugin.Iconize.Material.UWP\Assets\Fonts\

  • I've copied the iconize-material.ttf to the new Fonts directory
  • I've included the .ttf file to the project and setted it to "Copy if newer"

=> I've rebuilt and then deployed the project but the result is still the same...

Do you have other suggestions?

from xamarin.plugins.

pcdus avatar pcdus commented on August 18, 2024

After having added an IconLabel, I've seen that the icon is well displayed.
So, it seems that the problem comes from the IconToolbarItem.
But in the samples, this IconToolBar works well...

from xamarin.plugins.

pcdus avatar pcdus commented on August 18, 2024

After investigation this problem only occurs when we use an IconNavigationPage as Detail of a MasterDetailPage.
I've opened the related issue.

from xamarin.plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.