Lines Matching refs:blues
66 cf2_blues_init( CF2_Blues blues,
95 FT_ZERO( blues );
96 blues->scale = font->innerTransform.d;
99 &blues->blueScale,
100 &blues->blueShift,
101 &blues->blueFuzz );
158 blues->emBoxBottomEdge.csCoord = emBoxBottom - CF2_FIXED_EPSILON;
159 blues->emBoxBottomEdge.dsCoord = cf2_fixedRound(
161 blues->emBoxBottomEdge.csCoord,
162 blues->scale ) ) -
164 blues->emBoxBottomEdge.scale = blues->scale;
165 blues->emBoxBottomEdge.flags = CF2_GhostBottom |
169 blues->emBoxTopEdge.csCoord = emBoxTop + CF2_FIXED_EPSILON +
171 blues->emBoxTopEdge.dsCoord = cf2_fixedRound(
173 blues->emBoxTopEdge.csCoord,
174 blues->scale ) ) +
176 blues->emBoxTopEdge.scale = blues->scale;
177 blues->emBoxTopEdge.flags = CF2_GhostTop |
181 blues->doEmBoxHints = TRUE; /* enable the heuristic */
190 blues->zone[blues->count].csBottomEdge =
192 blues->zone[blues->count].csTopEdge =
195 zoneHeight = blues->zone[blues->count].csTopEdge -
196 blues->zone[blues->count].csBottomEdge;
214 blues->zone[blues->count].csTopEdge += 2 * font->darkenY;
215 blues->zone[blues->count].csBottomEdge += 2 * font->darkenY;
221 blues->zone[blues->count].bottomZone =
223 blues->zone[blues->count].csFlatEdge =
224 blues->zone[blues->count].csTopEdge;
228 blues->zone[blues->count].bottomZone =
230 blues->zone[blues->count].csFlatEdge =
231 blues->zone[blues->count].csBottomEdge;
234 blues->count += 1;
239 blues->zone[blues->count].csBottomEdge =
241 blues->zone[blues->count].csTopEdge =
244 zoneHeight = blues->zone[blues->count].csTopEdge -
245 blues->zone[blues->count].csBottomEdge;
263 blues->zone[blues->count].bottomZone =
265 blues->zone[blues->count].csFlatEdge =
266 blues->zone[blues->count].csTopEdge;
268 blues->count += 1;
277 csUnitsPerPixel = FT_DivFix( cf2_intToFixed( 1 ), blues->scale );
280 for ( i = 0; i < blues->count; i++ )
286 CF2_Fixed flatEdge = blues->zone[i].csFlatEdge;
289 if ( blues->zone[i].bottomZone )
306 blues->zone[i].csFlatEdge = flatFamilyEdge;
323 blues->zone[i].csFlatEdge = flatFamilyEdge;
347 blues->zone[i].csFlatEdge = flatFamilyEdge;
364 if ( blues->blueScale > FT_DivFix( cf2_intToFixed( 1 ),
368 blues->blueScale = FT_DivFix( cf2_intToFixed( 1 ),
401 if ( blues->scale < blues->blueScale )
403 blues->suppressOvershoot = TRUE;
409 blues->boost = FT_MulFix(
412 FT_DivFix( blues->scale,
413 blues->blueScale ) ) );
414 if ( blues->boost > 0x7FFF )
417 blues->boost = 0x7FFF;
423 blues->boost = 0;
428 for ( i = 0; i < blues->count; i++ )
430 if ( blues->zone[i].bottomZone )
431 blues->zone[i].dsFlatEdge = cf2_fixedRound(
433 blues->zone[i].csFlatEdge,
434 blues->scale ) -
435 blues->boost );
437 blues->zone[i].dsFlatEdge = cf2_fixedRound(
439 blues->zone[i].csFlatEdge,
440 blues->scale ) +
441 blues->boost );
464 cf2_blues_capture( const CF2_Blues blues,
469 CF2_Fixed csFuzz = blues->blueFuzz;
486 for ( i = 0; i < blues->count; i++ )
488 if ( blues->zone[i].bottomZone &&
491 if ( ( blues->zone[i].csBottomEdge - csFuzz ) <=
494 ( blues->zone[i].csTopEdge + csFuzz ) )
498 if ( blues->suppressOvershoot )
499 dsNew = blues->zone[i].dsFlatEdge;
501 else if ( ( blues->zone[i].csTopEdge - bottomHintEdge->csCoord ) >=
502 blues->blueShift )
507 blues->zone[i].dsFlatEdge - cf2_intToFixed( 1 ) );
523 if ( !blues->zone[i].bottomZone && cf2_hint_isTop( topHintEdge ) )
525 if ( ( blues->zone[i].csBottomEdge - csFuzz ) <=
528 ( blues->zone[i].csTopEdge + csFuzz ) )
532 if ( blues->suppressOvershoot )
533 dsNew = blues->zone[i].dsFlatEdge;
535 else if ( ( topHintEdge->csCoord - blues->zone[i].csBottomEdge ) >=
536 blues->blueShift )
541 blues->zone[i].dsFlatEdge + cf2_intToFixed( 1 ) );