243 {
244
246
248
251
252
255
258
261
262
264
265
266
268 if (
font->lastSubfont != subFont )
269 {
270 font->lastSubfont = subFont;
271 needExtraSetup =
TRUE;
272 }
273
275 {
276
278 hasVariations = ( vstore->
dataCount != 0 );
279
280 if ( hasVariations )
281 {
282#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
283 FT_Service_CFFLoad cffload = (FT_Service_CFFLoad)
font->cffload;
284
285
286
288 &lenNormalizedV,
289 &normalizedV );
291 return;
292
293 if ( cffload->blend_check_vector( &subFont->
blend,
295 lenNormalizedV,
296 normalizedV ) )
297 {
298
299 cffload->load_private_dict(
decoder->cff,
300 subFont,
301 lenNormalizedV,
302 normalizedV );
303 needExtraSetup =
TRUE;
304 }
305#endif
306
307
309
310
312
313
315
316
317 font->lenNDV = lenNormalizedV;
318 font->NDV = normalizedV;
319 }
320 }
321
322
323
324
326 if (
font->ppem != ppem )
327 {
329 needExtraSetup =
TRUE;
330 }
331
332
334
335
336
338 &
font->currentTransform,
340 {
341
342
344 font->currentTransform.tx =
346
347
348
350 font->outerTransform.a =
352 font->outerTransform.b =
354
355 needExtraSetup =
TRUE;
356 }
357
358
359
360
361
362
363
364
366 {
369
370
371 needExtraSetup =
TRUE;
372 }
373
374
375
376 if ( needExtraSetup )
377 {
378
379
380
381
382
383
384
385
386
390
391
392 if ( unitsPerEm == 0 )
393 unitsPerEm = 1000;
394
397
398#if 0
399
400
401 emRatio = cf2_fixedFracMul(
cf2_intToFixed( 1000 ), fontMatrix->a );
402#endif
403
404
405
406
409
410 if (
font->stdVW <= 0 )
412
413 if ( boldenX > 0 )
414 {
415
416
417 boldenX =
FT_MAX( boldenX,
419
420
421
422
423
424
426 ppem,
429 boldenX,
431 font->darkenParams );
432 }
433 else
435 ppem,
438 0,
440 font->darkenParams );
441
442#if 0
443
444
445
446 emRatio = cf2_fixedFracMul(
cf2_intToFixed( 1000 ), fontMatrix->d );
447#endif
448
449
450
451
453
456 else
457 {
458
460 }
461
463 ppem,
466 boldenY,
468 font->darkenParams );
469
470 if (
font->darkenX != 0 ||
font->darkenY != 0 )
472 else
474
476
477
479
480 }
481 }
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLuint GLenum GLenum transform
cf2_blues_init(CF2_Blues blues, CF2_Font font)
static void cf2_computeDarkening(CF2_Fixed emRatio, CF2_Fixed ppem, CF2_Fixed stemWidth, CF2_Fixed *darkenAmount, CF2_Fixed boldenAmount, FT_Bool stemDarkened, FT_Int *darkenParams)
cf2_getVStore(PS_Decoder *decoder)
cf2_getStdVW(PS_Decoder *decoder)
cf2_getPpemY(PS_Decoder *decoder)
cf2_getStdHW(PS_Decoder *decoder)
cf2_getSubfont(PS_Decoder *decoder)
#define CF2_FlagsDarkened
CFF_PrivateRec private_dict
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList