Searched refs:fontProp (Results 1 – 3 of 3) sorted by relevance
279 for (const auto& fontProp : fontProps) { in JsSetFont() local280 if (FONT_WEIGHTS.find(fontProp) != FONT_WEIGHTS.end()) { in JsSetFont()282 auto weight = ConvertStrToFontWeight(fontProp); in JsSetFont()285 } else if (FONT_STYLES.find(fontProp) != FONT_STYLES.end()) { in JsSetFont()287 auto fontStyle = ConvertStrToFontStyle(fontProp); in JsSetFont()291 auto families = ConvertStrToFontFamilies(fontProp); in JsSetFont()294 … } else if (fontProp.find("px") != std::string::npos || fontProp.find("vp") != std::string::npos) { in JsSetFont()296 if (fontProp.find("vp") != std::string::npos) { in JsSetFont()297 size = GetDimensionValue(fontProp); in JsSetFont()299 std::string fontSize = fontProp.substr(0, fontProp.size() - 2); in JsSetFont()[all …]
168 for (const auto& fontProp : fontProps) { in JsParseTextState() local169 if (FONT_WEIGHTS.find(fontProp) != FONT_WEIGHTS.end()) { in JsParseTextState()170 style.SetFontWeight(ConvertStrToFontWeight(fontProp)); in JsParseTextState()173 style.SetFontStyle(ConvertStrToFontStyle(fontProp)); in JsParseTextState()176 } else if (fontProp.find("px") != std::string::npos) { in JsParseTextState()177 std::string fontSize = fontProp.substr(0, fontProp.size() - 2); in JsParseTextState()1850 for (const auto& fontProp : fontProps) { in JsFontSetter() local1852 auto fontStyle = ConvertStrToFontStyle(fontProp); in JsFontSetter()1855 auto weight = ConvertStrToFontWeight(fontProp); in JsFontSetter()1861 std::string fontSize = fontProp.substr(0, fontProp.size() - 2); in JsFontSetter()[all …]
211 for (const auto& fontProp : fontProps) { in JsParseTextState() local212 if (FONT_WEIGHTS.find(fontProp) != FONT_WEIGHTS.end()) { in JsParseTextState()213 style.SetFontWeight(ConvertStrToFontWeight(fontProp)); in JsParseTextState()216 style.SetFontStyle(ConvertStrToFontStyle(fontProp)); in JsParseTextState()219 } else if (fontProp.find("px") != std::string::npos) { in JsParseTextState()220 std::string fontSize = fontProp.substr(0, fontProp.size() - 2); in JsParseTextState()2208 for (const auto& fontProp : fontProps) { in JsFontSetter() local2210 auto fontStyle = ConvertStrToFontStyle(fontProp); in JsFontSetter()2214 auto weight = ConvertStrToFontWeight(fontProp); in JsFontSetter()2222 std::string fontSize = fontProp.substr(0, fontProp.size() - 2); in JsFontSetter()[all …]