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:
Mike Reed 2021-05-17 20:06:16 -04:00
parent e73c070911
commit e8cd0a5404

View File

@ -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) {