mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
Follow the naming policy. - ftGdiGetRealGlyph --> IntGetRealGlyph - ftGdiGlyphCacheGet --> IntFindGlyphCache - ftGdiGlyphSet --> IntGetBitmapGlyphNoCache - ftGdiGlyphCacheSet --> IntGetBitmapGlyphWithCache - FtMatrixFromMx --> IntMatrixFromMx CORE-11848
This commit is contained in:
parent
47f3a4e144
commit
11ee1fa88e
1 changed files with 14 additions and 14 deletions
|
@ -725,7 +725,7 @@ static VOID FASTCALL IntEscapeMatrix(FT_Matrix *pmat, LONG lfEscapement)
|
||||||
}
|
}
|
||||||
|
|
||||||
static VOID FASTCALL
|
static VOID FASTCALL
|
||||||
FtMatrixFromMx(FT_Matrix *pmat, const MATRIX *pmx)
|
IntMatrixFromMx(FT_Matrix *pmat, const MATRIX *pmx)
|
||||||
{
|
{
|
||||||
FLOATOBJ ef;
|
FLOATOBJ ef;
|
||||||
|
|
||||||
|
@ -3105,7 +3105,7 @@ IntGetHash(IN LPCVOID pv, IN DWORD cdw)
|
||||||
}
|
}
|
||||||
|
|
||||||
static FT_BitmapGlyph
|
static FT_BitmapGlyph
|
||||||
ftGdiGlyphCacheGet(IN const FONT_CACHE_ENTRY *pCache)
|
IntFindGlyphCache(IN const FONT_CACHE_ENTRY *pCache)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY CurrentEntry;
|
PLIST_ENTRY CurrentEntry;
|
||||||
PFONT_CACHE_ENTRY FontEntry;
|
PFONT_CACHE_ENTRY FontEntry;
|
||||||
|
@ -3143,7 +3143,7 @@ ftGdiGlyphCacheGet(IN const FONT_CACHE_ENTRY *pCache)
|
||||||
|
|
||||||
/* no cache */
|
/* no cache */
|
||||||
static FT_BitmapGlyph
|
static FT_BitmapGlyph
|
||||||
ftGdiGlyphSet(
|
IntGetBitmapGlyphNoCache(
|
||||||
FT_Face Face,
|
FT_Face Face,
|
||||||
FT_GlyphSlot GlyphSlot,
|
FT_GlyphSlot GlyphSlot,
|
||||||
FT_Render_Mode RenderMode)
|
FT_Render_Mode RenderMode)
|
||||||
|
@ -3186,7 +3186,7 @@ ftGdiGlyphSet(
|
||||||
}
|
}
|
||||||
|
|
||||||
static FT_BitmapGlyph
|
static FT_BitmapGlyph
|
||||||
ftGdiGlyphCacheSet(
|
IntGetBitmapGlyphWithCache(
|
||||||
IN OUT PFONT_CACHE_ENTRY Cache,
|
IN OUT PFONT_CACHE_ENTRY Cache,
|
||||||
IN FT_GlyphSlot GlyphSlot)
|
IN FT_GlyphSlot GlyphSlot)
|
||||||
{
|
{
|
||||||
|
@ -3803,7 +3803,7 @@ ftGdiGetGlyphOutline(
|
||||||
|
|
||||||
IntLockFreeType();
|
IntLockFreeType();
|
||||||
TextIntUpdateSize(dc, TextObj, FontGDI, FALSE);
|
TextIntUpdateSize(dc, TextObj, FontGDI, FALSE);
|
||||||
FtMatrixFromMx(&mat, DC_pmxWorldToDevice(dc));
|
IntMatrixFromMx(&mat, DC_pmxWorldToDevice(dc));
|
||||||
FT_Set_Transform(ft_face, &mat, NULL);
|
FT_Set_Transform(ft_face, &mat, NULL);
|
||||||
|
|
||||||
TEXTOBJ_UnlockText(TextObj);
|
TEXTOBJ_UnlockText(TextObj);
|
||||||
|
@ -3886,7 +3886,7 @@ ftGdiGetGlyphOutline(
|
||||||
PMATRIX pmx = DC_pmxWorldToDevice(dc);
|
PMATRIX pmx = DC_pmxWorldToDevice(dc);
|
||||||
|
|
||||||
/* Create a freetype matrix, by converting to 16.16 fixpoint format */
|
/* Create a freetype matrix, by converting to 16.16 fixpoint format */
|
||||||
FtMatrixFromMx(&ftmatrix, pmx);
|
IntMatrixFromMx(&ftmatrix, pmx);
|
||||||
|
|
||||||
if (memcmp(&ftmatrix, &identityMat, sizeof(identityMat)) != 0)
|
if (memcmp(&ftmatrix, &identityMat, sizeof(identityMat)) != 0)
|
||||||
{
|
{
|
||||||
|
@ -4207,7 +4207,7 @@ ftGdiGetGlyphOutline(
|
||||||
}
|
}
|
||||||
|
|
||||||
static FT_BitmapGlyph
|
static FT_BitmapGlyph
|
||||||
ftGdiGetRealGlyph(
|
IntGetRealGlyph(
|
||||||
IN OUT PFONT_CACHE_ENTRY Cache)
|
IN OUT PFONT_CACHE_ENTRY Cache)
|
||||||
{
|
{
|
||||||
INT error;
|
INT error;
|
||||||
|
@ -4232,13 +4232,13 @@ ftGdiGetRealGlyph(
|
||||||
FT_GlyphSlot_Embolden(glyph);
|
FT_GlyphSlot_Embolden(glyph);
|
||||||
if (Cache->Hashed.Aspect.Emu.Italic)
|
if (Cache->Hashed.Aspect.Emu.Italic)
|
||||||
FT_GlyphSlot_Oblique(glyph);
|
FT_GlyphSlot_Oblique(glyph);
|
||||||
realglyph = ftGdiGlyphSet(Cache->Hashed.Face, glyph, Cache->Hashed.Aspect.RenderMode);
|
realglyph = IntGetBitmapGlyphNoCache(Cache->Hashed.Face, glyph, Cache->Hashed.Aspect.RenderMode);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Cache->dwHash = IntGetHash(&Cache->Hashed, sizeof(Cache->Hashed) / sizeof(DWORD));
|
Cache->dwHash = IntGetHash(&Cache->Hashed, sizeof(Cache->Hashed) / sizeof(DWORD));
|
||||||
|
|
||||||
realglyph = ftGdiGlyphCacheGet(Cache);
|
realglyph = IntFindGlyphCache(Cache);
|
||||||
if (realglyph)
|
if (realglyph)
|
||||||
return realglyph;
|
return realglyph;
|
||||||
|
|
||||||
|
@ -4250,7 +4250,7 @@ ftGdiGetRealGlyph(
|
||||||
}
|
}
|
||||||
|
|
||||||
glyph = Cache->Hashed.Face->glyph;
|
glyph = Cache->Hashed.Face->glyph;
|
||||||
realglyph = ftGdiGlyphCacheSet(Cache, glyph);
|
realglyph = IntGetBitmapGlyphWithCache(Cache, glyph);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!realglyph)
|
if (!realglyph)
|
||||||
|
@ -4317,7 +4317,7 @@ TextIntGetTextExtentPoint(PDC dc,
|
||||||
glyph_index = get_glyph_index_flagged(Cache.Hashed.Face, *String, GTEF_INDICES, fl);
|
glyph_index = get_glyph_index_flagged(Cache.Hashed.Face, *String, GTEF_INDICES, fl);
|
||||||
Cache.Hashed.GlyphIndex = glyph_index;
|
Cache.Hashed.GlyphIndex = glyph_index;
|
||||||
|
|
||||||
realglyph = ftGdiGetRealGlyph(&Cache);
|
realglyph = IntGetRealGlyph(&Cache);
|
||||||
if (!realglyph)
|
if (!realglyph)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -5895,7 +5895,7 @@ IntGetTextDisposition(
|
||||||
glyph_index = get_glyph_index_flagged(face, *String++, ETO_GLYPH_INDEX, fuOptions);
|
glyph_index = get_glyph_index_flagged(face, *String++, ETO_GLYPH_INDEX, fuOptions);
|
||||||
Cache->Hashed.GlyphIndex = glyph_index;
|
Cache->Hashed.GlyphIndex = glyph_index;
|
||||||
|
|
||||||
realglyph = ftGdiGetRealGlyph(Cache);
|
realglyph = IntGetRealGlyph(Cache);
|
||||||
if (!realglyph)
|
if (!realglyph)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
@ -6183,7 +6183,7 @@ IntExtTextOutW(
|
||||||
Cache.Hashed.matTransform = identityMat;
|
Cache.Hashed.matTransform = identityMat;
|
||||||
|
|
||||||
/* Apply the world transformation */
|
/* Apply the world transformation */
|
||||||
FtMatrixFromMx(&mat, pmxWorldToDevice);
|
IntMatrixFromMx(&mat, pmxWorldToDevice);
|
||||||
FT_Matrix_Multiply(&mat, &Cache.Hashed.matTransform);
|
FT_Matrix_Multiply(&mat, &Cache.Hashed.matTransform);
|
||||||
FT_Set_Transform(face, &Cache.Hashed.matTransform, NULL);
|
FT_Set_Transform(face, &Cache.Hashed.matTransform, NULL);
|
||||||
|
|
||||||
|
@ -6286,7 +6286,7 @@ IntExtTextOutW(
|
||||||
glyph_index = get_glyph_index_flagged(face, *String++, ETO_GLYPH_INDEX, fuOptions);
|
glyph_index = get_glyph_index_flagged(face, *String++, ETO_GLYPH_INDEX, fuOptions);
|
||||||
Cache.Hashed.GlyphIndex = glyph_index;
|
Cache.Hashed.GlyphIndex = glyph_index;
|
||||||
|
|
||||||
realglyph = ftGdiGetRealGlyph(&Cache);
|
realglyph = IntGetRealGlyph(&Cache);
|
||||||
if (!realglyph)
|
if (!realglyph)
|
||||||
{
|
{
|
||||||
bResult = FALSE;
|
bResult = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue