Comments (17)
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.
@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:
- Creating the folder structure in the root of my UWP project
Plugin.Iconize.Material.UWP\Assets\Fonts\
- Copying iconize-material.ttf to the new Fonts directory
- Including the .ttf file in the project and setting it to "Copy if newer"
- 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.
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.
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.
I have the same problem as @alllohaaa, copying the file in the folder works, but isn't really a good workaround.
from xamarin.plugins.
I'm still facing the same problem wih the last nuget version.
from xamarin.plugins.
@werddomain me too
from xamarin.plugins.
Me too
from xamarin.plugins.
Same.
from xamarin.plugins.
I still have the same issue with the last nuget version.
from xamarin.plugins.
I still have the same issue with the last nuget version.
from xamarin.plugins.
Also having this problem with the current version of NuGet
from xamarin.plugins.
Same thing here
from xamarin.plugins.
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.
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.
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.
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)
- UWP: MasterDetailPage and IconToolbarItem can't work together.
- Unable to set global styles HOT 1
- Is it possible to add gesture to the image icon? HOT 1
- MTOUCH : error MT3001: Could not AOT the assembly - How do I resolve?
- Feather icons support
- IconToolBarItem disappeares when command's canExecute changes
- Adding Medical icons
- Fontawesome 5.0 support
- Fontawesome is not rendering in IOS
- Can't install with latest .net framework HOT 1
- Fontawesome Pro Collection HOT 1
- .NET Standard support? HOT 2
- Exception has been thrown by the target of an invocation. Invalid Cast Exception
- Binding Is Not Functional? HOT 1
- Support for Forms 3.0? HOT 3
- Unable to toggle visibility on IconToolbarItem
- IconToolbarItems not refreshed properly
- IconToolbarItem in ViewCell.ContextActions
- Compile app iOs in MacBook
- [CRITICAL] - repository out of date! Last commit 2 years ago - latest nuget 3 days ago!! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin.plugins.