Sack Library Documentation
sack::PSI::font::PickScaledFontWithUpdate Function
Font PickScaledFontWithUpdate(S_32 x, S_32 y, PFRACTION width_scale, PFRACTION height_scale, size_t * pFontDataSize, POINTER * pFontData, PSI_CONTROL pAbove, void (__cdecl *UpdateFont)( PTRSZVAL psv, Font font ), PTRSZVAL psvUpdate);
PFRACTION width_scale 
pointer to a scalar fraction to scale the font by 
PFRACTION height_scale 
pointer to a scalar fraction to scale the font by 

common dialog to get a font which is then available for all Image text operations (PutString, PutCharacter) result font selection data can be resulted in the area referenced by the pointer, and size pointer... 

actual work done here for pUpdateFontFor(NULL) ... if pUpdateFontFor is not null, an apply button will appear, allowing the actual control to be updated to the chosen font

scale_width, height magically apply... and are saved in the font data structure for re-rendering... if a font is rendered here the same exact font result will be acheived using RenderScaledFont( pdata )

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!