78 size_t numFamilyBlues;
79 size_t numFamilyOtherBlues;
93 if ( unitsPerEm == 0 )
124 FCM_getHorizontalLineMetrics( &
e,
129 if ( ascender - descender == unitsPerEm )
142 ( numBlueValues == 0 ||
143 ( numBlueValues == 4 &&
190 for (
i = 0;
i < numBlueValues;
i += 2 )
200 if ( zoneHeight < 0 )
202 FT_TRACE4((
"cf2_blues_init: ignoring negative zone height\n" ));
206 if ( zoneHeight > maxZoneHeight )
210 maxZoneHeight = zoneHeight;
239 for (
i = 0;
i < numOtherBlues;
i += 2 )
249 if ( zoneHeight < 0 )
251 FT_TRACE4((
"cf2_blues_init: ignoring negative zone height\n" ));
255 if ( zoneHeight > maxZoneHeight )
259 maxZoneHeight = zoneHeight;
282 for (
i = 0;
i < blues->
count;
i++ )
299 for (
j = 0;
j < numFamilyOtherBlues;
j += 2 )
306 if ( diff < minDiff && diff < csUnitsPerPixel )
317 if ( numFamilyBlues >= 2 )
324 if ( diff < minDiff && diff < csUnitsPerPixel )
337 for (
j = 2;
j < numFamilyBlues;
j += 2 )
343 flatFamilyEdge += 2 *
font->darkenY;
347 if ( diff < minDiff && diff < csUnitsPerPixel )
364 if ( maxZoneHeight > 0 )
385 if ( blueScale < .4 / maxZoneHeight )
387 tetraphilia_assert( 0 );
389 blueScale = .4 / maxZoneHeight;
415 if ( blues->
boost > 0x7FFF )
418 blues->
boost = 0x7FFF;
423 if (
font->stemDarkened )
429 for (
i = 0;
i < blues->
count;
i++ )
CF2_HintRec emBoxBottomEdge
FT_DivFix(FT_Long a, FT_Long b)
FT_BEGIN_HEADER typedef signed long FT_Pos
#define cf2_intToFixed(i)
#define cf2_blueToFixed(x)
cf2_getBlueValues(PS_Decoder *decoder, size_t *count, FT_Pos **data)
#define cf2_fixedRound(x)
#define FT_TRACE4(varformat)
cf2_getFamilyBlues(PS_Decoder *decoder, size_t *count, FT_Pos **data)
cf2_getLanguageGroup(PS_Decoder *decoder)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
FT_MulDiv(FT_Long a, FT_Long b, FT_Long c)
FT_Bool suppressOvershoot
cf2_getBlueMetrics(PS_Decoder *decoder, CF2_Fixed *blueScale, CF2_Fixed *blueShift, CF2_Fixed *blueFuzz)
CF2_BlueRec zone[CF2_MAX_BLUES+CF2_MAX_OTHERBLUES]
cf2_getFamilyOtherBlues(PS_Decoder *decoder, size_t *count, FT_Pos **data)
#define cf2_doubleToFixed(f)
FT_MulFix(FT_Long a, FT_Long b)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
cf2_getOtherBlues(PS_Decoder *decoder, size_t *count, FT_Pos **data)
#define CF2_FIXED_EPSILON