Don't need/want to pay attention to non-shaping attributes
Change-Id: I16d75c9d8fb3c61a4993fe216142e80884bc2ad1 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/409576 Reviewed-by: Mike Reed <reed@google.com>
This commit is contained in:
parent
e73c070911
commit
e8cd0a5404
@ -488,13 +488,6 @@ EMSCRIPTEN_BINDINGS(Paragraph) {
|
||||
para::TextStyle style;
|
||||
style.setTypeface(r["typeface"].as< sk_sp<SkTypeface> >());
|
||||
style.setFontSize(r["size"].as<float>());
|
||||
style.setFontStyle({
|
||||
r["fakeBold"].as<bool>() ? SkFontStyle::kBold_Weight
|
||||
: SkFontStyle::kNormal_Weight,
|
||||
SkFontStyle::kNormal_Width,
|
||||
r["fakeItalic"].as<bool>() ? SkFontStyle::kItalic_Slant
|
||||
: SkFontStyle::kUpright_Slant,
|
||||
});
|
||||
|
||||
const size_t subTextCount = r["length"].as<size_t>();
|
||||
if (subTextCount > textCount) {
|
||||
|
Loading…
Reference in New Issue
Block a user