Lines Matching refs:m_Face
15 m_Face = NULL;
41 if (m_Face) {
43 FXFT_Library library = FXFT_Get_Face_FreeType(m_Face);
44 if (FXFT_Get_Face_External_Stream(m_Face)) {
45 FXFT_Clear_Face_External_Stream(m_Face);
51 CFX_GEModule::Get()->GetFontMgr()->ReleaseFace(m_Face);
68 FXFT_Done_Face(m_Face);
69 m_Face = NULL;
80 m_Face = CFX_GEModule::Get()->GetFontMgr()->FindSubstFont(face_name, bTrueType, flags, weight, italic_angle,
88 if (m_Face) {
89 m_pFontData = FXFT_Get_Face_Stream_Base(m_Face);
90 m_dwSize = FXFT_Get_Face_Stream_Size(m_Face);
145 if (!_LoadFile(library, &m_Face, pFile, &stream)) {
149 FXFT_Set_Pixel_Sizes(m_Face, 0, 64);
154 if (!m_Face) {
160 int err = FXFT_Load_Glyph(m_Face, glyph_index, FXFT_LOAD_NO_SCALE | FXFT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH);
164 int width = EM_ADJUST(FXFT_Get_Face_UnitsPerEM(m_Face), FXFT_Get_Glyph_HoriAdvance(m_Face));
193 m_Face = FT_LoadFont((FX_LPBYTE)m_pFontDataAllocation, size);
196 m_Face = FT_LoadFont((FX_LPBYTE)data, size);
201 return m_Face != NULL;
205 if (m_Face == NULL) {
208 return FXFT_Is_Face_TT_OT(m_Face) == FXFT_FACE_FLAG_SFNT;
212 if (m_Face == NULL) {
215 int ascent = EM_ADJUST(FXFT_Get_Face_UnitsPerEM(m_Face), FXFT_Get_Face_Ascender(m_Face));
220 if (m_Face == NULL) {
223 int descent = EM_ADJUST(FXFT_Get_Face_UnitsPerEM(m_Face), FXFT_Get_Face_Descender(m_Face));
228 if (m_Face == NULL) {
231 if (FXFT_Is_Face_Tricky(m_Face)) {
232 int error = FXFT_Set_Char_Size(m_Face, 0, 1000 * 64, 72, 72);
236 error = FXFT_Load_Glyph(m_Face, glyph_index, FXFT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH);
242 error = FXFT_Get_Glyph(((FXFT_Face)m_Face)->glyph, &glyph);
247 int pixel_size_x = ((FXFT_Face)m_Face)->size->metrics.x_ppem,
248 pixel_size_y = ((FXFT_Face)m_Face)->size->metrics.y_ppem;
260 if (bbox.top > FXFT_Get_Face_Ascender(m_Face)) {
261 bbox.top = FXFT_Get_Face_Ascender(m_Face);
263 if (bbox.bottom < FXFT_Get_Face_Descender(m_Face)) {
264 bbox.bottom = FXFT_Get_Face_Descender(m_Face);
267 return FXFT_Set_Pixel_Sizes(m_Face, 0, 64) == 0;
269 if (FXFT_Load_Glyph(m_Face, glyph_index, FXFT_LOAD_NO_SCALE | FXFT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH)) {
272 int em = FXFT_Get_Face_UnitsPerEM(m_Face);
274 bbox.left = FXFT_Get_Glyph_HoriBearingX(m_Face);
275 bbox.bottom = FXFT_Get_Glyph_HoriBearingY(m_Face);
276 bbox.top = bbox.bottom - FXFT_Get_Glyph_Height(m_Face);
277 bbox.right = bbox.left + FXFT_Get_Glyph_Width(m_Face);
279 bbox.left = FXFT_Get_Glyph_HoriBearingX(m_Face) * 1000 / em;
280 bbox.top = (FXFT_Get_Glyph_HoriBearingY(m_Face) - FXFT_Get_Glyph_Height(m_Face)) * 1000 / em;
281 bbox.right = (FXFT_Get_Glyph_HoriBearingX(m_Face) + FXFT_Get_Glyph_Width(m_Face)) * 1000 / em;
282 bbox.bottom = (FXFT_Get_Glyph_HoriBearingY(m_Face)) * 1000 / em;
288 if (m_Face == NULL) {
291 FX_BOOL ret = FXFT_Is_Face_Italic(m_Face) == FXFT_STYLE_FLAG_ITALIC;
293 CFX_ByteString str(FXFT_Get_Face_Style_Name(m_Face));
303 if (m_Face == NULL) {
306 return FXFT_Is_Face_Bold(m_Face) == FXFT_STYLE_FLAG_BOLD;
310 if (m_Face == NULL) {
313 return FXFT_Is_Face_fixedwidth(m_Face);
317 if (m_Face == NULL) {
320 CFX_WideString psName = CFX_WideString::FromLocal(FXFT_Get_Postscript_Name(m_Face));
328 if (m_Face == NULL && m_pSubstFont == NULL) {
331 if (m_Face) {
332 return CFX_ByteString(FXFT_Get_Face_Family_Name(m_Face));
339 if (m_Face == NULL && m_pSubstFont == NULL) {
342 if (m_Face) {
344 CFX_ByteString style = CFX_ByteString(FXFT_Get_Face_Style_Name(m_Face));
359 if (m_Face == NULL) {
362 int em = FXFT_Get_Face_UnitsPerEM(m_Face);
364 bbox.left = FXFT_Get_Face_xMin(m_Face);
365 bbox.bottom = FXFT_Get_Face_yMax(m_Face);
366 bbox.top = FXFT_Get_Face_yMin(m_Face);
367 bbox.right = FXFT_Get_Face_xMax(m_Face);
369 bbox.left = FXFT_Get_Face_xMin(m_Face) * 1000 / em;
370 bbox.top = FXFT_Get_Face_yMin(m_Face) * 1000 / em;
371 bbox.right = FXFT_Get_Face_xMax(m_Face) * 1000 / em;
372 bbox.bottom = FXFT_Get_Face_yMax(m_Face) * 1000 / em;
378 if (m_Face == NULL) {
381 int height = EM_ADJUST(FXFT_Get_Face_UnitsPerEM(m_Face), FXFT_Get_Face_Height(m_Face));
386 if (m_Face == NULL) {
389 int width = EM_ADJUST(FXFT_Get_Face_UnitsPerEM(m_Face), FXFT_Get_Face_MaxAdvanceWidth(m_Face));
394 if (m_Face == NULL) {
397 int pos = EM_ADJUST(FXFT_Get_Face_UnitsPerEM(m_Face), FXFT_Get_Face_UnderLinePosition(m_Face));
402 if (m_Face == NULL) {
405 int thickness = EM_ADJUST(FXFT_Get_Face_UnitsPerEM(m_Face), FXFT_Get_Face_UnderLineThickness(m_Face));
441 int nmaps = FXFT_Get_Face_CharmapCount(m_pFont->m_Face);