鸿蒙上skia字体问题 #32
Replies: 3 comments 3 replies
-
|
哪里异常? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
看看截图 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
你直接用的skiasharp吧,skia默认依赖的是libfontconf,这个在鸿蒙里应该是没有的,所以拿不到字体相关的信息,应该可以手动制定一个字体来初始化SKTypeface,参考代码:https://github.com/OpenHarmony-NET/OpenHarmony.Avalonia/blob/main/Src/Avalonia.OpenHarmony/OpenHarmonyFontManagerImpl.cs#L105 另外鸿蒙的skia fork中有相关的适配,可以看一下:https://gitee.com/openharmony/third_party_skia/pulls/43 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
绘制字体异常,想了解下鸿蒙字体skia是如何适配的啊
Beta Was this translation helpful? Give feedback.
All reactions