| CMVIEWTextFont Method |
Set the text font.
Available since Oasis montaj version: 5.0.0
License: Available to anyone.
Namespace: GeoEngine.Core.GXNetAssembly: geoengine.core.gxnet (in geoengine.core.gxnet.dll)
Notes
Font characteristics can be defined using the function parameters,
or may be defined as decorations in the font name. A decorated font
name has the following format:
font_name(type,weight,italics,charset)
where
type - "TT" or "GFN"
weight - last word from MVIEW_FONT_WEIGHT_ (ie. "LIGHT")
italics - "ITALICS" for for italics
charset - Before version 6.2. this decoration was honoured and it affected the display
of characters above ASCII 127. 6.2. introduced Unicode in the core
montaj engine that eliminated the need for such a setting. All strings
on the GX API level are encoded in UTF8 during runtime which makes it possible
to represent all possible characters without using character sets. This decoration
will now be ignored.
Qualifiers take precidence over passed parameters.
The order of qualifiers is not relevant.
examples:
"sr(GFN,ITALICS)" - geosoft GFN font, normal weight, italics
"Arial(TT,XBOLD)" - TrueType font, bold
"Times(TT,ITALICS,_EastEurope)"
- TrueType font, italics, Eastern Europe charcters
Decorated name qualifiers take precedence over passed parameters.
If the font cannot be found, or if "Default" is used, the DEFAULT_MAP_FONT
specified in the [MONTAJ] section of GEOSOFT.INI
will be used.
Syntax public void TextFont(
string str1,
int i2,
int i3,
int i4
)
Public Sub TextFont (
str1 As String,
i2 As Integer,
i3 As Integer,
i4 As Integer
)
public:
void TextFont(
String^ str1,
int i2,
int i3,
int i4
)
member TextFont :
str1 : string *
i2 : int *
i3 : int *
i4 : int -> unit
Parameters
- str1
- Type: SystemString
Font face name - i2
- Type: SystemInt32
Geosoft font? (TRUE or FALSE) - i3
- Type: SystemInt32
See MVIEW_FONT_WEIGHTConstant - i4
- Type: SystemInt32
Italic font? (TRUE or FALSE)
See Also