Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


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 )   More


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


Returns OK or error.


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:
  • 100 - 300 // Ultra-light, Light
  • 400 - 500 // Standard
  • 600 - 1000 // Bold, Extrabold

See also SetFontWeight function in DynaPDF manual.

See also

Created 21st October 2014, last changed 23th October 2014

DynaPDF.SetFontSelMode   -   DynaPDF.SetGStateFlags

Feedback: Report problem or ask question.

MBS Xojo Plugins