sk_sp<SkTypeface> typeface = SkTypeface::MakeFromName("DejaVu Sans Mono", SkFontStyle());
Returns NULL on web but works on Desktop App
-----------------------------------------
Similarly I have tried this simple example :
SkPath fontPath;
const char text[] = "SKIA Test";
SkFont font2(SkTypeface::MakeDefault(), 30);
SkTextUtils::GetPath(text, strlen(text), SkTextEncoding::kUTF8, 0, 0, font2, &fontPath) SkRect rect = fontPath.getBounds();
This returns NULL bounds for path when run on browser but works on desktop app.
Any idea what could be the issue here? Your valuable inputs will be appreciated.
Regards,
Aditya
--
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/49507e02-d2f0-4c74-bc18-10987c537da7n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/CA%2B_KjGa7Dw5nd%2BuBwHQr6TRLoC5LHOPCeZEnEUeacsphq600tw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/CAOo4A_8G02nyLC-hwo9uh45TNOz7WU1xRib8gjP%2BL7TtTfmL%2Bg%40mail.gmail.com.