Closed Vitany closed 4 years ago
Having the same issue too, only on iOS 12. On lower Versions and Android it looks fine.
changing the Typeface worked for me
static string fontFamily = Device.RuntimePlatform == Device.iOS ? "Lobster-Regular" : null; private SKTypeface TypeFaceForIOS12 = SKTypeface.FromFamilyName(fontFamily);
@Cedde97 Can you provide more details of your implementation?
Is there a way to solve this without changing Microcharts itself at all - as far as I can see the only way to achieve the fix is to change the Microcharts source. Could be done of course but I would prefer an "official" fix, if possible.
I really hope to see a fix for this one. It takes a beautiful library and really puts up the blocker from using it when the latest iOS doesn't look right.
Somebody have solve the font issue with iOS 12 ? Thank for your help
Here is the SkiaSharp issue: https://github.com/mono/SkiaSharp/issues/657 and this is the native skia issue: https://bugs.chromium.org/p/skia/issues/detail?id=8432
I believe Apple changed something and this affects ALL new OS versions including macOS and tvOS. To be safe, it is probably best to always specify the font that you want. There is no guarantee that all OSes will always all use the same font.
I think in some cases, even Arial and Times New Roman may not exist.
Thank for these informations. Do you have a delivery plan for this fix ? (a release number, a date...) Thank for advance for your response
We should be releasing in the next two weeks, it is currently undergoing testing.
Highly appreciated - thanks a lot!
@mattleibow : Are you still planning to release a new version? Thanks!
@TMagnum1974 I think you may be referring to release v1.68.0 which was released in December: https://www.nuget.org/packages/SkiaSharp/1.68.0
@mattleibow Oh, indeed, thanks! I'll try and build Microcharts then so I can finally correct this font issue which is quite annoying but Microcharts is a great repository which also functions as a great example for Skia-enabled enhancements to Xamarin in general.
Thanks @mattleibow, font on iOS 12 is fixed with SkiaSharp/1.68.0. We are using Microcharts source code(commit 69ad69b0b6). Hopefully we would get a new Microcharts Nuget package soon.
Great! Good to hear the updates are working.
Hey all, working on a new nuget package now. Hope to get something up soon. My current plan is to basically pull the current latest feature branches into master after some simple testing. Will keep you updated if that changes.
Hey all, working on a new nuget package now. Hope to get something up soon. My current plan is to basically pull the current latest feature branches into master after some simple testing. Will keep you updated if that changes.
Hello Nixon-Joseph, how is it going with the new nuget package? Can we expect it soon? Thank you, Anton
Hey yes, there's a new pre release package out 0.8.4-pre for forms and 0.8.4.1-pre for base microcharts. If you're using forms, let me know, I may need to build a new one of those referencing the new base microcharts.
Hey yes, there's a new pre release package out 0.8.4-pre for forms and 0.8.4.1-pre for base microcharts. If you're using forms, let me know, I may need to build a new one of those referencing the new base microcharts.
Yes I'm currently using both, 0.8.4-pre for forms and 0.8.4.1-pre fro base microcharts. Would be great if you could build new nuget packages of those two projects, thank you!
Alright, just built and pushed 0.8.4.1-pre for the forms package, everything should match now.
Hello Nixon-Joseph, unfortunately the font of the labels of the charts is still wrong. It seems the project is still referencing SkiaSharp.Views.Forms 1.59.1.1 (instead of 1.68.0 where the font issue is fixed):
I additionally added SkiaSharp.Views.Forms 1.68.0 to the project and the font was rendered correctly then. Kind regards, Anton
Ahh I see, there's compatibility issues for that version of Skiasharp and the .net portable version the microcharts library is building for. I'll have to drop the .net portable target to update SkiaSharp it looks like.
Updated all dependencies, pushing up 0.8.5-pre
FYI: @Nixon-Joseph We dropped support for PCL in SkiaSharp v1.60.0.
@Nixon-Joseph Hi Nixon, i'm currently on 0.8.5-pre and still getting the font issue on iOS 12. Has anyone confirmed 0.8.5-pre fixed their font issue?
Can you confirm if this is still an issue? Compiling a to-do list, and need to know what's still important. Thanks!
@Nixon-Joseph For me it's not an issue, I can't exactly say what fixed it but the font's are rendering correctly now.
Hi @Nixon-Joseph
This is still an issue, I've updated to the latest version, but still getting it.
this should be all good now
Hi. Perhaps this is due to the update of iOS 12, but the fonts on the graph look like this now. How can this be fixed in the xamarin forms?