PMFont: Difference between revisions
Created page with "The PMFont class manages the use of fonts. You can construct, destruct, copy, and assign objects of this class. ; Source: pm_font.h:25 ; Author: Dmitry A Steklenev ; Version..." |
mNo edit summary |
||
Line 13: | Line 13: | ||
!Short Description | !Short Description | ||
|- | |- | ||
| | |PMFont | ||
|constructor | |constructor | ||
|public | |public | ||
| Constructs the font object from characters string. | | Constructs the font object from characters string. | ||
|- | |- | ||
| | |name | ||
|method | |method | ||
|public | |public | ||
| Returns the face name of the font. | | Returns the face name of the font. | ||
|- | |- | ||
| | |size | ||
|method | |method | ||
|public | |public | ||
|Returns the point size of the font. | |Returns the point size of the font. | ||
|- | |- | ||
| | |attrs | ||
|method | |method | ||
|public | |public | ||
|Returns the font attributes. | |Returns the font attributes. | ||
|- | |- | ||
| | |sys_font | ||
|static method | |static method | ||
|public | |public | ||
| Returns a system font name. | | Returns a system font name. | ||
|} | |||
== constructor PMFont == | == constructor PMFont == | ||
Constructs the font object from characters string. | |||
'''Source:'''[[pm_font.h]]:58 '''Param:''' | '''Source:'''[[pm_font.h]]:58 '''Param:''' | ||
{| border="1" | {| border="1" | ||
Line 62: | Line 49: | ||
<point size>.<face name>(.<modifer>(.<modifier>... | <point size>.<face name>(.<modifer>(.<modifier>... | ||
where: | where: | ||
Line 85: | Line 71: | ||
|} '''Code:''' | |} | ||
'''Code:''' | |||
{| border="1" | {| border="1" | ||
|- | |- | ||
|public ''''''PMFont'''''' ( | |public ''''''PMFont'''''' ( | ||
| '''const''' '''char''' * fontname ) | | '''const''' '''char''' * fontname ) | ||
|} | |} | ||
== method name == | == method name == | ||
Returns the face name of the font. | |||
; Source: pm_font.h:69 | |||
; Params: | |||
{| border="1" | {| border="1" | ||
|- | |- | ||
Line 116: | Line 98: | ||
with the number of bytes copied into the buffer. | with the number of bytes copied into the buffer. | ||
|} | |} | ||
; Code: | |||
{| border="1" | {| border="1" | ||
|- | |- | ||
Line 124: | Line 107: | ||
| | | | ||
| '''int''' [[size]] ) '''const''' | | '''int''' [[size]] ) '''const''' | ||
|} | |} | ||
== method size == | == method size == | ||
Returns the point size of the font. | Returns the point size of the font. | ||
'''Source:'''[[pm_font.h]]:72 '''Code:''' | '''Source:'''[[pm_font.h]]:72 '''Code:''' | ||
Line 141: | Line 115: | ||
|public LONG ''''''size'''''' ( | |public LONG ''''''size'''''' ( | ||
| ) '''const''' | | ) '''const''' | ||
|} | |} | ||
== method attrs == | == method attrs == | ||
Returns the font attributes. | Returns the font attributes. | ||
'''Source:'''[[pm_font.h]]:74 '''Code:''' | '''Source:'''[[pm_font.h]]:74 '''Code:''' | ||
Line 158: | Line 124: | ||
|public '''const''' FATTRS * ''''''attrs'''''' ( | |public '''const''' FATTRS * ''''''attrs'''''' ( | ||
| ) '''const''' | | ) '''const''' | ||
|} | |} | ||
== static method sys_font == | == static method sys_font == | ||
Returns a system font name. | |||
Allows the application to ask for details about | Allows the application to ask for details about | ||
the user interface defined fonts. | the user interface defined fonts. | ||
; Source: pm_font.h:98 | |||
; Param: | |||
{| border="1" | {| border="1" | ||
|- | |- |
Revision as of 21:52, 4 April 2018
The PMFont class manages the use of fonts. You can construct, destruct, copy, and assign objects of this class.
- Source
- pm_font.h:25
- Author
- Dmitry A Steklenev
- Version
- unknown
Contents
Entity | Type | Scope | Short Description |
---|---|---|---|
PMFont | constructor | public | Constructs the font object from characters string. |
name | method | public | Returns the face name of the font. |
size | method | public | Returns the point size of the font. |
attrs | method | public | Returns the font attributes. |
sys_font | static method | public | Returns a system font name. |
constructor PMFont
Constructs the font object from characters string.
Source:pm_font.h:58 Param:
fontname
|
The format of the font name string is as follows:
<point size>.<face name>(.<modifer>(.<modifier>... where: <point size> is the point size of the font <face name> is the face name of the font <modifier> is one of the following:
Examples are "12.New Times Roman" and "10.Helvetica.Bold.Italic"
|
Code:
public 'PMFont' ( | const char * fontname ) |
method name
Returns the face name of the font.
- Source
- pm_font.h:69
- Params
result
|
A buffer in which the face name is returned. |
size
|
This is the size of the buffer specified by the result
parameter. If the call is successful, this is overwritten with the number of bytes copied into the buffer. |
- Code
public char * 'name' ( | char * result , |
int size ) const |
method size
Returns the point size of the font.
Source:pm_font.h:72 Code:
public LONG 'size' ( | ) const |
method attrs
Returns the font attributes.
Source:pm_font.h:74 Code:
public const FATTRS * 'attrs' ( | ) const |
static method sys_font
Returns a system font name.
Allows the application to ask for details about the user interface defined fonts.
- Source
- pm_font.h:98
- Param
id
|
Font identity:
SYSFNT_WINDOWTEXT System font for window text. SYSFNT_WINDOWTITLES System font for window title text. SYSFNT_MENU System font for menu text. SYSFNT_ICONTEXT System font for icon text. SYSFNT_PREFORMATTED System-fixed width font for preformatted text. |
Code:
public static const char * 'sys_font' ( | int id ) |