Lines Matching refs:m_Face
214 m_Face(nullptr),
229 m_Face = face;
238 if (m_Face) {
240 if (FXFT_Get_Face_External_Stream(m_Face)) {
241 FXFT_Clear_Face_External_Stream(m_Face);
254 FXFT_Done_Face(m_Face);
256 CFX_GEModule::Get()->GetFontMgr()->ReleaseFace(m_Face);
257 m_Face = nullptr;
270 m_Face = CFX_GEModule::Get()->GetFontMgr()->FindSubstFont(
273 if (m_Face) {
274 m_pFontData = FXFT_Get_Face_Stream_Base(m_Face);
275 m_dwSize = FXFT_Get_Face_Stream_Size(m_Face);
289 if (!LoadFileImp(library, &m_Face, pFile, nFaceIndex, &stream))
293 FXFT_Set_Pixel_Sizes(m_Face, 0, 64);
299 if (!m_Face)
304 m_Face, glyph_index,
309 int horiAdvance = FXFT_Get_Glyph_HoriAdvance(m_Face);
313 return EM_ADJUST(FXFT_Get_Face_UnitsPerEM(m_Face), horiAdvance);
319 m_Face = FT_LoadFont(m_pFontDataAllocation.data(), size);
323 return !!m_Face;
327 return m_Face && FXFT_Is_Face_TT_OT(m_Face) == FXFT_FACE_FLAG_SFNT;
331 if (!m_Face)
334 int ascender = FXFT_Get_Face_Ascender(m_Face);
338 return EM_ADJUST(FXFT_Get_Face_UnitsPerEM(m_Face), ascender);
342 if (!m_Face)
345 int descender = FXFT_Get_Face_Descender(m_Face);
349 return EM_ADJUST(FXFT_Get_Face_UnitsPerEM(m_Face), descender);
353 if (!m_Face)
356 if (FXFT_Is_Face_Tricky(m_Face)) {
357 int error = FXFT_Set_Char_Size(m_Face, 0, 1000 * 64, 72, 72);
361 error = FXFT_Load_Glyph(m_Face, glyph_index,
368 error = FXFT_Get_Glyph(m_Face->glyph, &glyph);
373 int pixel_size_x = m_Face->size->metrics.x_ppem,
374 pixel_size_y = m_Face->size->metrics.y_ppem;
387 static_cast<int32_t>(FXFT_Get_Face_Ascender(m_Face)));
389 bbox.bottom, static_cast<int32_t>(FXFT_Get_Face_Descender(m_Face)));
391 return FXFT_Set_Pixel_Sizes(m_Face, 0, 64) == 0;
394 m_Face, glyph_index,
398 int em = FXFT_Get_Face_UnitsPerEM(m_Face);
400 bbox.left = FXFT_Get_Glyph_HoriBearingX(m_Face);
401 bbox.bottom = FXFT_Get_Glyph_HoriBearingY(m_Face);
402 bbox.top = bbox.bottom - FXFT_Get_Glyph_Height(m_Face);
403 bbox.right = bbox.left + FXFT_Get_Glyph_Width(m_Face);
405 bbox.left = FXFT_Get_Glyph_HoriBearingX(m_Face) * 1000 / em;
407 (FXFT_Get_Glyph_HoriBearingY(m_Face) - FXFT_Get_Glyph_Height(m_Face)) *
410 (FXFT_Get_Glyph_HoriBearingX(m_Face) + FXFT_Get_Glyph_Width(m_Face)) *
412 bbox.bottom = (FXFT_Get_Glyph_HoriBearingY(m_Face)) * 1000 / em;
418 if (!m_Face)
420 if (FXFT_Is_Face_Italic(m_Face) == FXFT_STYLE_FLAG_ITALIC)
423 ByteString str(FXFT_Get_Face_Style_Name(m_Face));
429 return m_Face && FXFT_Is_Face_Bold(m_Face) == FXFT_STYLE_FLAG_BOLD;
433 return m_Face && FXFT_Is_Face_fixedwidth(m_Face) != 0;
437 if (!m_Face)
440 ByteString psName = FXFT_Get_Postscript_Name(m_Face);
447 if (!m_Face && !m_pSubstFont)
449 if (m_Face)
450 return ByteString(FXFT_Get_Face_Family_Name(m_Face));
456 if (!m_Face && !m_pSubstFont)
458 if (m_Face) {
459 ByteString style = ByteString(FXFT_Get_Face_Style_Name(m_Face));
471 if (!m_Face)
474 int em = FXFT_Get_Face_UnitsPerEM(m_Face);
476 bbox.left = FXFT_Get_Face_xMin(m_Face);
477 bbox.bottom = FXFT_Get_Face_yMax(m_Face);
478 bbox.top = FXFT_Get_Face_yMin(m_Face);
479 bbox.right = FXFT_Get_Face_xMax(m_Face);
481 bbox.left = FXFT_Get_Face_xMin(m_Face) * 1000 / em;
482 bbox.top = FXFT_Get_Face_yMin(m_Face) * 1000 / em;
483 bbox.right = FXFT_Get_Face_xMax(m_Face) * 1000 / em;
484 bbox.bottom = FXFT_Get_Face_yMax(m_Face) * 1000 / em;
507 FXFT_Get_MM_Var(m_Face, &pMasters);
523 FXFT_Set_MM_Design_Coordinates(m_Face, 2, coords);
524 FXFT_Load_Glyph(m_Face, glyph_index,
526 int min_width = FXFT_Get_Glyph_HoriAdvance(m_Face) * 1000 /
527 m_Face);
529 FXFT_Set_MM_Design_Coordinates(m_Face, 2, coords);
530 FXFT_Load_Glyph(m_Face, glyph_index,
532 int max_width = FXFT_Get_Glyph_HoriAdvance(m_Face) * 1000 /
533 FXFT_Get_Face_UnitsPerEM(m_Face);
535 FXFT_Free(m_Face, pMasters);
542 FXFT_Free(m_Face, pMasters);
543 FXFT_Set_MM_Design_Coordinates(m_Face, 2, coords);
548 if (!m_Face)
550 FXFT_Set_Pixel_Sizes(m_Face, 0, 64);
571 ScopedFontTransform scoped_transform(m_Face, &ft_matrix);
573 if (!(m_Face->face_flags & FT_FACE_FLAG_SFNT) || !FT_IS_TRICKY(m_Face))
575 if (FXFT_Load_Glyph(m_Face, glyph_index, load_flags))
586 FXFT_Outline_Embolden(FXFT_Get_Glyph_Outline(m_Face), level);
603 FXFT_Outline_Decompose(FXFT_Get_Glyph_Outline(m_Face), &funcs, ¶ms);