Win32Prn() > Font methods xHarbour Developers Network  

oWin32Prn:bold()

Queries or changes the font weight for bold printing.

Syntax

:bold( [<nNewFontWeight>] ) --> nOldFontWeight

Arguments

<nNewFontWeight>
This is a numeric value specifying the new font weight for printing. The following #define constants listed in WinGdi.ch can be used:

Constants for font weights
ConstantValue
FW_DONTCARE0
FW_THIN100
FW_EXTRALIGHT200
FW_LIGHT300
FW_NORMAL400
FW_MEDIUM500
FW_SEMIBOLD600
FW_BOLD700
FW_EXTRABOLD800
FW_HEAVY900

Description

Method :bold() returns the currently defined font weight used for bold printing as a numeric value. When <nNewFontWeight> is specified, the new font weight is set during printing.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe