Hello,
Previously I tried with skia m113 version. But that issue is not resolved due to "SK_UNICODE_CLIENT_IMPLEMENTATION" flag. If I set it in my properties or in my c++/winrt application it is not enabled. If I set it in ParagraphBuilderImpl.h it is giving linker error.
Based on previous meeting I switched to skia m128 version. At first FontMgr and TypeFace are null. Then I used
sk_sp<SkFontMgr> fontMgr = SkFontMgr_New_DirectWrite();
sk_sp<SkTypeface> typeFace = fontMgr->legacyMakeTypeface("Marlett", fontStyle);
Now I was able to create fontMgr and typeFace properly.
But while doing ParagraphBuilder->Build() fUnicode is not creating.
std::unique_ptr<Paragraph> para = builder->Build();
Above image is paragraphBuilderImpl.cpp code
And Output is
client not defined
Empty
Flag should be defined to create fUnicode or else it is having Null value.
I tried to include "SK_UNICODE_CLIENT_IMPLEMENTATION" flag in my properties and C++/winrt app
but it still says flag is not defined
When I included it in paragraphBuilderImpl.h file it is giving Linker error
#define SK_UNICODE_CLIENT_IMPLEMENTATION 1
Severity Code Description Project File Line Suppression State Details
Error LNK2001 unresolved external symbol "class sk_sp<class SkUnicode> __cdecl SkUnicodes::Client::Make(class SkSpan<char>,class std::vector<unsigned __int64,class std::allocator<unsigned __int64> >,class std::vector<unsigned __int64,class std::allocator<unsigned __int64> >,class std::vector<struct SkUnicode::LineBreakBefore,class std::allocator<struct SkUnicode::LineBreakBefore> >)" (?Make@Client@SkUnicodes@@YA?AV?$sk_sp@VSkUnicode@@@@V?$SkSpan@D@@V?$vector@_KV?$allocator@_K@std@@@std@@1V?$vector@ULineBreakBefore@SkUnicode@@V?$allocator@ULineBreakBefore@SkUnicode@@@std@@@6@@Z) SwapchainCpp C:\Users\Administrator\Desktop\SwapchainCpp\skparagraph.lib(skparagraph.ParagraphBuilderImpl.obj)
Is there a proper way to define the flag and create fUnicode?
Thank you

if I comment #if condition completely from line 488 to 496 then Text is rendering properly using SkParagraph
I'm unable find out why SkLoadICU() is returning false value here
Can someone explain what is the use of SkLoadICU() and why we are checking it?
Thank you.
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/49bd3032-7cca-4c79-a3ae-75c718f8572cn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/dd19a0f6-bb2e-42eb-af85-0b17b291e0ean%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/CACwhzT9cQOwYg50ogON_fEVJjCZgCWiOLX_21fEELFqA5G%2BSfA%40mail.gmail.com.