35 FONTENCODING_ISO_8859_1 = 1,
36 FONTENCODING_ISO_8859_2 = 2,
37 FONTENCODING_ISO_8859_3 = 3,
38 FONTENCODING_ISO_8859_4 = 4,
39 FONTENCODING_ISO_8859_5 = 5,
40 FONTENCODING_ISO_8859_6 = 6,
41 FONTENCODING_ISO_8859_7 = 7,
42 FONTENCODING_ISO_8859_8 = 8,
43 FONTENCODING_ISO_8859_9 = 9,
44 FONTENCODING_ISO_8859_10 = 10,
45 FONTENCODING_ISO_8859_11 = 11,
46 FONTENCODING_ISO_8859_13 = 13,
47 FONTENCODING_ISO_8859_14 = 14,
48 FONTENCODING_ISO_8859_15 = 15,
49 FONTENCODING_ISO_8859_16 = 16,
50 FONTENCODING_KOI8 = 17,
51 FONTENCODING_KOI8_R = 18,
52 FONTENCODING_KOI8_U = 19,
53 FONTENCODING_KOI8_UNIFIED = 20,
55 FONTENCODING_CP437 = 437,
56 FONTENCODING_CP850 = 850,
57 FONTENCODING_CP851 = 851,
58 FONTENCODING_CP852 = 852,
59 FONTENCODING_CP855 = 855,
60 FONTENCODING_CP856 = 856,
61 FONTENCODING_CP857 = 857,
62 FONTENCODING_CP860 = 860,
63 FONTENCODING_CP861 = 861,
64 FONTENCODING_CP862 = 862,
65 FONTENCODING_CP863 = 863,
66 FONTENCODING_CP864 = 864,
67 FONTENCODING_CP865 = 865,
68 FONTENCODING_CP866 = 866,
69 FONTENCODING_CP869 = 869,
70 FONTENCODING_CP870 = 870,
72 FONTENCODING_CP1250 = 1250,
73 FONTENCODING_CP1251 = 1251,
74 FONTENCODING_CP1252 = 1252,
75 FONTENCODING_CP1253 = 1253,
76 FONTENCODING_CP1254 = 1254,
77 FONTENCODING_CP1255 = 1255,
78 FONTENCODING_CP1256 = 1256,
79 FONTENCODING_CP1257 = 1257,
80 FONTENCODING_CP1258 = 1258,
81 FONTENCODING_CP874 = 874,
83 FONTENCODING_UNICODE = 9999,
85 FONTENCODING_LATIN1 = FONTENCODING_ISO_8859_1,
86 FONTENCODING_LATIN2 = FONTENCODING_ISO_8859_2,
87 FONTENCODING_LATIN3 = FONTENCODING_ISO_8859_3,
88 FONTENCODING_LATIN4 = FONTENCODING_ISO_8859_4,
89 FONTENCODING_LATIN5 = FONTENCODING_ISO_8859_9,
90 FONTENCODING_LATIN6 = FONTENCODING_ISO_8859_10,
91 FONTENCODING_LATIN7 = FONTENCODING_ISO_8859_13,
92 FONTENCODING_LATIN8 = FONTENCODING_ISO_8859_14,
93 FONTENCODING_LATIN9 = FONTENCODING_ISO_8859_15,
94 FONTENCODING_LATIN10 = FONTENCODING_ISO_8859_16,
96 FONTENCODING_USASCII = FONTENCODING_ISO_8859_1,
97 FONTENCODING_WESTEUROPE = FONTENCODING_ISO_8859_1,
98 FONTENCODING_EASTEUROPE = FONTENCODING_ISO_8859_2,
99 FONTENCODING_SOUTHEUROPE = FONTENCODING_ISO_8859_3,
100 FONTENCODING_NORTHEUROPE = FONTENCODING_ISO_8859_4,
101 FONTENCODING_CYRILLIC = FONTENCODING_ISO_8859_5,
102 FONTENCODING_RUSSIAN = FONTENCODING_KOI8,
103 FONTENCODING_ARABIC = FONTENCODING_ISO_8859_6,
104 FONTENCODING_GREEK = FONTENCODING_ISO_8859_7,
105 FONTENCODING_HEBREW = FONTENCODING_ISO_8859_8,
106 FONTENCODING_TURKISH = FONTENCODING_ISO_8859_9,
107 FONTENCODING_NORDIC = FONTENCODING_ISO_8859_10,
108 FONTENCODING_THAI = FONTENCODING_ISO_8859_11,
109 FONTENCODING_BALTIC = FONTENCODING_ISO_8859_13,
110 FONTENCODING_CELTIC = FONTENCODING_ISO_8859_14
145 FXushort wantedWeight;
146 FXushort actualWeight;
147 FXushort wantedSlant;
148 FXushort actualSlant;
149 FXushort wantedSetwidth;
150 FXushort actualSetwidth;
151 FXushort wantedEncoding;
152 FXushort actualEncoding;
163 void* match(
const FXString& wantfamily,
const FXString& wantforge,FXuint wantsize,FXuint wantweight,FXuint wantslant,FXuint wantsetwidth,FXuint wantencoding,FXuint wanthints,FXint res);
260 virtual void create();
263 virtual void detach();
266 virtual void destroy();
317 virtual void setFontDesc(
const FXFontDesc& fontdesc);
329 virtual void setAngle(FXint ang);
340 virtual void setFont(
const FXString&
string);
343 virtual FXbool isFontMono()
const;
346 virtual FXbool hasChar(FXwchar ch)
const;
349 virtual FXwchar getMinChar()
const;
352 virtual FXwchar getMaxChar()
const;
355 virtual FXint leftBearing(FXwchar ch)
const;
358 virtual FXint rightBearing(FXwchar ch)
const;
361 virtual FXint getFontWidth()
const;
364 virtual FXint getFontHeight()
const;
367 virtual FXint getFontAscent()
const;
370 virtual FXint getFontDescent()
const;
373 virtual FXint getFontLeading()
const;
376 virtual FXint getFontSpacing()
const;
379 virtual FXint getCharWidth(
const FXwchar ch)
const;
382 virtual FXint getTextWidth(
const FXString&
string)
const;
385 virtual FXint getTextWidth(
const FXchar*
string,FXuint length)
const;
388 virtual FXint getTextHeight(
const FXString&
string)
const;
391 virtual FXint getTextHeight(
const FXchar *
string,FXuint length)
const;
394 static FXuint styleFromString(
const FXString& str);
395 static FXString stringFromStyle(FXuint style);
398 static FXuint slantFromString(
const FXString& str);
399 static FXString stringFromSlant(FXuint slant);
402 static FXuint weightFromString(
const FXString& str);
403 static FXString stringFromWeight(FXuint weight);
406 static FXuint setWidthFromString(
const FXString& str);
407 static FXString stringFromSetWidth(FXuint setwidth);
410 static FXuint encodingFromString(
const FXString& str);
411 static FXString stringFromEncoding(FXuint encoding);
418 static FXbool listFonts(
FXFontDesc*& fonts,FXuint& numfonts,
const FXString& face,FXuint wt=0,FXuint sl=0,FXuint sw=0,FXuint en=0,FXuint h=0);
421 virtual void save(
FXStream& store)
const;
FXuint getActualEncoding() const
Get actual encoding.
Definition: FXFont.h:302
FXuint getEncoding() const
Get character set encoding.
Definition: FXFont.h:299
FXushort size
Face name.
Definition: FXFont.h:117
Light.
Definition: FXFont.h:206
FXint getAngle() const
Return angle.
Definition: FXFont.h:326
FXuint getActualSize() const
Get actual size in deci-points.
Definition: FXFont.h:284
const FXString & getActualName() const
Get actual family name.
Definition: FXFont.h:278
void setFont(const FXString &string)
Flags.
FXuint getHints() const
Get hints.
Definition: FXFont.h:311
FXString getFont() const
Get string of font description.
FXuint getSize() const
Get size in deci-points.
Definition: FXFont.h:281
The Application object is the central point of a FOX user-interface.
Definition: FXApp.h:134
const FXString & getName() const
Get font family name.
Definition: FXFont.h:275
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
FXuint getSlant() const
Get slant.
Definition: FXFont.h:293
FXuint getActualSetWidth() const
Get actual setwidth.
Definition: FXFont.h:308
Abstract Device Context.
Definition: FXDC.h:153
FXuint getActualSlant() const
Get actual slant.
Definition: FXFont.h:296
Font description.
Definition: FXFont.h:115
Reversed italic.
Definition: FXFont.h:196
Encapsulates server side resource.
Definition: FXId.h:34
FXushort flags
Encoding of character set.
Definition: FXFont.h:122
FXuint getActualWeight() const
Get actual font weight.
Definition: FXFont.h:290
Definition: FX4Splitter.h:28
FXushort encoding
Set width [normal, condensed, expanded, ...].
Definition: FXFont.h:121
FXushort setwidth
Slant [normal, italic, oblique, ...].
Definition: FXFont.h:120
FXuint getFlags() const
Get flags.
Definition: FXFont.h:314
FXuint getSetWidth() const
Get setwidth.
Definition: FXFont.h:305
Window Device Context.
Definition: FXDCWindow.h:48
FXushort weight
Size in deci-points (one point is 1/72 inch)
Definition: FXFont.h:118
Semi-condensed.
Definition: FXFont.h:220
FXushort slant
Weight [light, normal, bold, ...].
Definition: FXFont.h:119
FXuint getWeight() const
Get font weight.
Definition: FXFont.h:287
Font class.
Definition: FXFont.h:137
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42