Lines Matching defs:face
65 TypeFace InitTypeFace(FT_Face face, string_view path, string_view filename)
69 face->family_name, // family name as defined in font file
70 face->style_name, // style name as defined in font file
72 face->face_index, // face index for quick access to face in font file
75 TT_OS2* tblOS2 = (TT_OS2*)FT_Get_Sfnt_Table(face, FT_SFNT_OS2);
80 if (face->style_flags & 0x02) {
84 if (face->style_flags & 0x01) {
189 std::shared_ptr<FaceData> face = fontBuff->CreateFace(typeFace.index);
190 if (!face) {
193 Font::Ptr font = Font::Ptr(new Font(std::move(face)));
230 auto face = fontBuff->CreateFace(typeFace.index);
231 if (!face) {
234 return face->GetGlyphIndex(code);
277 auto face = OpenFtFace(buf, faceId);
279 if (face && face->charmap) {
280 typeFaces.push_back(InitTypeFace(face, path, entry.name));
282 numFaces = face->num_faces;
283 numInstances = face->style_flags >> INSTANCE_SHIFT;
295 FT_Done_Face(face);
297 CORE_LOG_W("failed to create face: %s", path.data());
324 FT_Face face;
325 FT_Error err = FT_New_Memory_Face(fontLib_, buf.data(), (FT_Long)buf.size(), index, &face);
327 CORE_LOG_E("failed to init font face");
330 if (!face->charmap) {
331 CORE_LOG_E("failed to init font face, no unicode charmap available");
332 FT_Done_Face(face);
336 CORE_ASSERT(face->num_glyphs > 0);
338 return face;