Lines Matching refs:vr
201 static HB_Error Load_ValueRecord( HB_ValueRecord* vr,
216 vr->XPlacement = GET_Short();
221 vr->XPlacement = 0;
228 vr->YPlacement = GET_Short();
233 vr->YPlacement = 0;
240 vr->XAdvance = GET_Short();
245 vr->XAdvance = 0;
252 vr->YAdvance = GET_Short();
257 vr->YAdvance = 0;
261 if ( ALLOC_ARRAY( vr->DeviceTables, 4, HB_Device ) )
263 vr->DeviceTables[VR_X_ADVANCE_DEVICE] = 0;
264 vr->DeviceTables[VR_Y_ADVANCE_DEVICE] = 0;
265 vr->DeviceTables[VR_X_PLACEMENT_DEVICE] = 0;
266 vr->DeviceTables[VR_Y_PLACEMENT_DEVICE] = 0;
270 vr->DeviceTables = 0;
288 ( error = _HB_OPEN_Load_Device( &vr->DeviceTables[VR_X_PLACEMENT_DEVICE],
310 ( error = _HB_OPEN_Load_Device( &vr->DeviceTables[VR_Y_PLACEMENT_DEVICE],
332 ( error = _HB_OPEN_Load_Device( &vr->DeviceTables[VR_X_ADVANCE_DEVICE],
354 ( error = _HB_OPEN_Load_Device( &vr->DeviceTables[VR_Y_ADVANCE_DEVICE],
367 vr->XIdPlacement = GET_UShort();
376 vr->XIdPlacement = 0;
385 vr->YIdPlacement = GET_UShort();
394 vr->YIdPlacement = 0;
403 vr->XIdAdvance = GET_UShort();
412 vr->XIdAdvance = 0;
421 vr->YIdAdvance = GET_UShort();
430 vr->YIdAdvance = 0;
436 if ( vr->DeviceTables )
437 _HB_OPEN_Free_Device( vr->DeviceTables[VR_Y_ADVANCE_DEVICE] );
440 if ( vr->DeviceTables )
441 _HB_OPEN_Free_Device( vr->DeviceTables[VR_X_ADVANCE_DEVICE] );
444 if ( vr->DeviceTables )
445 _HB_OPEN_Free_Device( vr->DeviceTables[VR_Y_PLACEMENT_DEVICE] );
448 FREE( vr->DeviceTables );
453 static void Free_ValueRecord( HB_ValueRecord* vr,
457 _HB_OPEN_Free_Device( vr->DeviceTables[VR_Y_ADVANCE_DEVICE] );
459 _HB_OPEN_Free_Device( vr->DeviceTables[VR_X_ADVANCE_DEVICE] );
461 _HB_OPEN_Free_Device( vr->DeviceTables[VR_Y_PLACEMENT_DEVICE] );
463 _HB_OPEN_Free_Device( vr->DeviceTables[VR_X_PLACEMENT_DEVICE] );
464 FREE( vr->DeviceTables );
469 HB_ValueRecord* vr,
495 gd->x_pos += x_scale * vr->XPlacement / 0x10000;
497 gd->y_pos += y_scale * vr->YPlacement / 0x10000;
499 gd->x_advance += x_scale * vr->XAdvance / 0x10000;
501 gd->y_advance += y_scale * vr->YAdvance / 0x10000;
509 _HB_OPEN_Get_Device( vr->DeviceTables[VR_X_PLACEMENT_DEVICE], x_ppem, &pixel_value );
514 _HB_OPEN_Get_Device( vr->DeviceTables[VR_Y_PLACEMENT_DEVICE], y_ppem, &pixel_value );
519 _HB_OPEN_Get_Device( vr->DeviceTables[VR_X_ADVANCE_DEVICE], x_ppem, &pixel_value );
524 _HB_OPEN_Get_Device( vr->DeviceTables[VR_Y_ADVANCE_DEVICE], y_ppem, &pixel_value );
534 error = (gpos->mmfunc)( gpi->font, vr->XIdPlacement,
542 error = (gpos->mmfunc)( gpi->font, vr->YIdPlacement,
550 error = (gpos->mmfunc)( gpi->font, vr->XIdAdvance,
558 error = (gpos->mmfunc)( gpi->font, vr->YIdAdvance,
902 HB_ValueRecord* vr;
948 vr = sp->spf.spf2.Value;
952 error = Load_ValueRecord( &vr[n], format, base_offset, stream );
966 Free_ValueRecord( &vr[m], format );
968 FREE( vr );