Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

DynaPDF.SetFontWeight

Changes the font weight.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 4.4 Yes Yes Yes Yes Yes

MBS( "DynaPDF.SetFontWeight"; PDF; Weight )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Weight The new weight value. 100

Result

Returns OK or error.

Description

Changes the font weight.
The font weight specifies the thickness or boldness of a font. Not all fonts are available in a bold style; such a font style can then be emulated only. The property FontWeight specifies the weight that should be emulated. The visual weight of a font depends on the base weight in that the font was defined. For example, the glyphs of an ultra-light font look also light if an extrabold weight will be emulated.

However, a bold font will never be emulated if the font is already available in a bold style. To disable the emulation of bold fonts set the property to 100 or 0.

Font weights:

See also SetFontWeight function in DynaPDF manual.

See also


DynaPDF.SetFontSelMode   -   DynaPDF.SetGStateFlags

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos