Searched refs:fontNode (Results 1 – 2 of 2) sorted by relevance
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 71 for (xmlNode* fontNode = familyNode->children; fontNode; fontNode = fontNode->next) { in getFontFamilies() local 72 if (xmlStrcmp(fontNode->name, (const xmlChar*)"font") != 0) { in getFontFamilies() 76 uint16_t weight = atoi((const char*)(xmlGetProp(fontNode, (const xmlChar*)"weight"))); in getFontFamilies() 78 xmlStrcmp(xmlGetProp(fontNode, (const xmlChar*)"style"), in getFontFamilies() 82 xmlChar* fontFileName = xmlNodeListGetString(doc, fontNode->xmlChildrenNode, 1); in getFontFamilies()
|
/frameworks/base/native/android/ |
D | system_fonts.cpp | 119 void copyFont(const XmlDocUniquePtr& xmlDoc, xmlNode* fontNode, AFont* out, in copyFont() argument 123 xmlNodeListGetString(xmlDoc.get(), fontNode->xmlChildrenNode, 1)); in copyFont() 128 XmlCharUniquePtr weightStr(xmlGetProp(fontNode, WEIGHT_ATTR_NAME)); in copyFont() 134 XmlCharUniquePtr styleStr(xmlGetProp(fontNode, STYLE_ATTR_NAME)); in copyFont() 138 XmlCharUniquePtr indexStr(xmlGetProp(fontNode, INDEX_ATTR_NAME)); in copyFont() 150 for (xmlNode* axis = firstElement(fontNode, AXIS_TAG); axis; in copyFont() 275 xmlNode* findNextFontNode(const XmlDocUniquePtr& xmlDoc, xmlNode* fontNode) { in findNextFontNode() argument 276 if (fontNode == nullptr) { in findNextFontNode() 284 xmlNode* nextNode = nextSibling(fontNode, FONT_TAG); in findNextFontNode() 286 xmlNode* family = nextSibling(fontNode->parent, FAMILY_TAG); in findNextFontNode()
|