Lines Matching refs:blues
66 cf2_blues_init( CF2_Blues blues,
97 FT_ZERO( blues );
98 blues->scale = font->innerTransform.d;
101 &blues->blueScale,
102 &blues->blueShift,
103 &blues->blueFuzz );
160 blues->emBoxBottomEdge.csCoord = emBoxBottom - CF2_FIXED_EPSILON;
161 blues->emBoxBottomEdge.dsCoord = cf2_fixedRound(
163 blues->emBoxBottomEdge.csCoord,
164 blues->scale ) ) -
166 blues->emBoxBottomEdge.scale = blues->scale;
167 blues->emBoxBottomEdge.flags = CF2_GhostBottom |
171 blues->emBoxTopEdge.csCoord = emBoxTop + CF2_FIXED_EPSILON +
173 blues->emBoxTopEdge.dsCoord = cf2_fixedRound(
175 blues->emBoxTopEdge.csCoord,
176 blues->scale ) ) +
178 blues->emBoxTopEdge.scale = blues->scale;
179 blues->emBoxTopEdge.flags = CF2_GhostTop |
183 blues->doEmBoxHints = TRUE; /* enable the heuristic */
192 blues->zone[blues->count].csBottomEdge =
194 blues->zone[blues->count].csTopEdge =
197 zoneHeight = blues->zone[blues->count].csTopEdge -
198 blues->zone[blues->count].csBottomEdge;
216 blues->zone[blues->count].csTopEdge += 2 * font->darkenY;
217 blues->zone[blues->count].csBottomEdge += 2 * font->darkenY;
223 blues->zone[blues->count].bottomZone =
225 blues->zone[blues->count].csFlatEdge =
226 blues->zone[blues->count].csTopEdge;
230 blues->zone[blues->count].bottomZone =
232 blues->zone[blues->count].csFlatEdge =
233 blues->zone[blues->count].csBottomEdge;
236 blues->count += 1;
241 blues->zone[blues->count].csBottomEdge =
243 blues->zone[blues->count].csTopEdge =
246 zoneHeight = blues->zone[blues->count].csTopEdge -
247 blues->zone[blues->count].csBottomEdge;
265 blues->zone[blues->count].bottomZone =
267 blues->zone[blues->count].csFlatEdge =
268 blues->zone[blues->count].csTopEdge;
270 blues->count += 1;
279 csUnitsPerPixel = FT_DivFix( cf2_intToFixed( 1 ), blues->scale );
282 for ( i = 0; i < blues->count; i++ )
288 CF2_Fixed flatEdge = blues->zone[i].csFlatEdge;
291 if ( blues->zone[i].bottomZone )
308 blues->zone[i].csFlatEdge = flatFamilyEdge;
325 blues->zone[i].csFlatEdge = flatFamilyEdge;
349 blues->zone[i].csFlatEdge = flatFamilyEdge;
366 if ( blues->blueScale > FT_DivFix( cf2_intToFixed( 1 ),
370 blues->blueScale = FT_DivFix( cf2_intToFixed( 1 ),
403 if ( blues->scale < blues->blueScale )
405 blues->suppressOvershoot = TRUE;
411 blues->boost = cf2_floatToFixed( .6 ) -
413 blues->scale,
414 blues->blueScale );
415 if ( blues->boost > 0x7FFF )
418 blues->boost = 0x7FFF;
424 blues->boost = 0;
429 for ( i = 0; i < blues->count; i++ )
431 if ( blues->zone[i].bottomZone )
432 blues->zone[i].dsFlatEdge = cf2_fixedRound(
434 blues->zone[i].csFlatEdge,
435 blues->scale ) -
436 blues->boost );
438 blues->zone[i].dsFlatEdge = cf2_fixedRound(
440 blues->zone[i].csFlatEdge,
441 blues->scale ) +
442 blues->boost );
465 cf2_blues_capture( const CF2_Blues blues,
470 CF2_Fixed csFuzz = blues->blueFuzz;
487 for ( i = 0; i < blues->count; i++ )
489 if ( blues->zone[i].bottomZone &&
492 if ( ( blues->zone[i].csBottomEdge - csFuzz ) <=
495 ( blues->zone[i].csTopEdge + csFuzz ) )
499 if ( blues->suppressOvershoot )
500 dsNew = blues->zone[i].dsFlatEdge;
502 else if ( ( blues->zone[i].csTopEdge - bottomHintEdge->csCoord ) >=
503 blues->blueShift )
508 blues->zone[i].dsFlatEdge - cf2_intToFixed( 1 ) );
524 if ( !blues->zone[i].bottomZone && cf2_hint_isTop( topHintEdge ) )
526 if ( ( blues->zone[i].csBottomEdge - csFuzz ) <=
529 ( blues->zone[i].csTopEdge + csFuzz ) )
533 if ( blues->suppressOvershoot )
534 dsNew = blues->zone[i].dsFlatEdge;
536 else if ( ( topHintEdge->csCoord - blues->zone[i].csBottomEdge ) >=
537 blues->blueShift )
542 blues->zone[i].dsFlatEdge + cf2_intToFixed( 1 ) );