FcConstants.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 25 Jan 2019 11:29:18 +0000
branchjv
changeset 8620 b4220c12f7ef
parent 8491 c9d77af565d4
permissions -rw-r--r--
Fix typo in (default) mapping for delete key
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8420
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
     1
"
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
     2
 COPYRIGHT (c) 2016 Jan Vrany
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
     3
              All Rights Reserved
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
     4
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
     5
 This software is furnished under a license and may be used
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
     6
 only in accordance with the terms of that license and with the
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
     8
 be provided or otherwise made available to, or used by, any
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
     9
 other person.  No title to or ownership of the software is
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    10
 hereby transferred.
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    11
"
7171
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
    12
"{ Package: 'stx:libview' }"
7150
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    13
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    14
"{ NameSpace: Smalltalk }"
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    15
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    16
SharedPool subclass:#FcConstants
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    17
	instanceVariableNames:''
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    18
	classVariableNames:'FC_FAMILY FC_STYLE FC_SLANT FC_WEIGHT FC_SIZE FC_ASPECT
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    19
		FC_PIXEL_SIZE FC_SPACING FC_FOUNDRY FC_ANTIALIAS FC_HINTING
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    20
		FC_HINT_STYLE FC_VERTICAL_LAYOUT FC_AUTOHINT FC_WIDTH FC_FILE
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    21
		FC_INDEX FC_FT_FACE FC_RASTERIZER FC_OUTLINE FC_SCALABLE FC_SCALE
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    22
		FC_DPI FC_RGBA FC_MINSPACE FC_SOURCE FC_CHARSET FC_LANG
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    23
		FC_FONTVERSION FC_FULLNAME FC_FAMILYLANG FC_STYLELANG
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    24
		FC_FULLNAMELANG FC_CAPABILITY FC_FONTFORMAT FC_EMBOLDEN
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    25
		FC_EMBEDDED_BITMAP FC_DECORATIVE FC_LCD_FILTER FC_NAMELANG
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    26
		FC_CHAR_WIDTH FC_CHAR_HEIGHT FC_MATRIX FC_WEIGHT_THIN
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    27
		FC_WEIGHT_EXTRALIGHT FC_WEIGHT_ULTRALIGHT FC_WEIGHT_LIGHT
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    28
		FC_WEIGHT_BOOK FC_WEIGHT_REGULAR FC_WEIGHT_NORMAL
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    29
		FC_WEIGHT_MEDIUM FC_WEIGHT_DEMIBOLD FC_WEIGHT_SEMIBOLD
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    30
		FC_WEIGHT_BOLD FC_WEIGHT_EXTRABOLD FC_WEIGHT_ULTRABOLD
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
		FC_WEIGHT_BLACK FC_WEIGHT_HEAVY FC_WEIGHT_EXTRABLACK
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    32
		FC_WEIGHT_ULTRABLACK FC_SLANT_ROMAN FC_SLANT_ITALIC
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    33
		FC_SLANT_OBLIQUE FC_WIDTH_ULTRACONDENSED FC_WIDTH_EXTRACONDENSED
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    34
		FC_WIDTH_CONDENSED FC_WIDTH_SEMICONDENSED FC_WIDTH_NORMAL
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    35
		FC_WIDTH_SEMIEXPANDED FC_WIDTH_EXPANDED FC_WIDTH_EXTRAEXPANDED
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    36
		FC_WIDTH_ULTRAEXPANDED FC_PROPORTIONAL FC_DUAL FC_MONO
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    37
		FC_CHARCELL FC_RGBA_UNKNOWN FC_RGBA_RGB FC_RGBA_BGR FC_RGBA_VRGB
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    38
		FC_RGBA_VBGR FC_RGBA_NONE FC_HINT_NONE FC_HINT_SLIGHT
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    39
		FC_HINT_MEDIUM FC_HINT_FULL FC_LCD_NONE FC_LCD_DEFAULT
7171
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
    40
		FC_LCD_LIGHT FC_LCD_LEGACY StXFace2FCWeightMap
8491
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    41
		StXStyle2FCSlantMap FontConfigVersion'
7150
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    42
	poolDictionaries:''
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    43
	category:'Graphics-Support-FontConfig'
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    44
!
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    45
8491
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    46
!FcConstants primitiveDefinitions!
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    47
%{
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    48
#ifdef HAVE_FONTCONFIG
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    49
/*
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    50
 * includes, defines, structure definitions
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    51
 * and typedefs come here.
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    52
 */
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    53
#undef FcPattern
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    54
#undef True
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    55
#undef False
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    56
#undef Time
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    57
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    58
#include <stdlib.h>
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    59
#include <fontconfig/fontconfig.h>
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    60
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    61
#endif
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    62
%}
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    63
! !
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
    64
8420
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    65
!FcConstants class methodsFor:'documentation'!
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    66
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    67
copyright
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    68
"
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    69
 COPYRIGHT (c) 2016 Jan Vrany
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    70
              All Rights Reserved
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    71
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    72
 This software is furnished under a license and may be used
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    73
 only in accordance with the terms of that license and with the
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    74
 inclusion of the above copyright notice.   This software may not
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    75
 be provided or otherwise made available to, or used by, any
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    76
 other person.  No title to or ownership of the software is
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    77
 hereby transferred.
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    78
"
76e39223f5ab Copyright updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7171
diff changeset
    79
! !
7171
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
    80
7150
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    81
!FcConstants class methodsFor:'class initialization'!
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    82
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    83
initialize
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    84
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    85
    " Taken from fontconfig,h "
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    86
    FC_FAMILY               := 'family'.           "/* String */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    87
    FC_STYLE                := 'style'.            "/* String */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    88
    FC_SLANT                := 'slant'.            "/* Int */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    89
    FC_WEIGHT               := 'weight'.           "/* Int */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    90
    FC_SIZE                 := 'size'.             "/* Double */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    91
    FC_ASPECT               := 'aspect'.           "/* Double */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    92
    FC_PIXEL_SIZE           := 'pixelsize'.        "/* Double */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    93
    FC_SPACING              := 'spacing'.          "/* Int */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    94
    FC_FOUNDRY              := 'foundry'.          "/* String */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    95
    FC_ANTIALIAS            := 'antialias'.        "/* Bool (depends) */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    96
    FC_HINTING              := 'hinting'.          "/* Bool (true) */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    97
    FC_HINT_STYLE           := 'hintstyle'.        "/* Int */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    98
    FC_VERTICAL_LAYOUT      := 'verticallayout'.       "/* Bool (false) */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    99
    FC_AUTOHINT             := 'autohint'.         "/* Bool (false) */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   100
    FC_WIDTH                := 'width'.            "/* Int */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   101
    FC_FILE                 := 'file'.             "/* String */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   102
    FC_INDEX                := 'index'.            "/* Int */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   103
    FC_FT_FACE              := 'ftface'.           "/* FT_Face */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   104
    FC_RASTERIZER           := 'rasterizer'.       "/* String */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   105
    FC_OUTLINE              := 'outline'.          "/* Bool */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   106
    FC_SCALABLE             := 'scalable'.         "/* Bool */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   107
    FC_SCALE                := 'scale'.            "/* double */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   108
    FC_DPI                  := 'dpi'.              "/* double */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   109
    FC_RGBA                 := 'rgba'.             "/* Int */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   110
    FC_MINSPACE             := 'minspace'.         "/* Bool use minimum line spacing */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   111
    FC_SOURCE               := 'source'.           "/* String (deprecated) */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   112
    FC_CHARSET              := 'charset'.          "/* CharSet */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   113
    FC_LANG                 := 'lang'.             "/* String RFC 3066 langs */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   114
    FC_FONTVERSION          := 'fontversion'.      "/* Int from 'head'.table */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   115
    FC_FULLNAME             := 'fullname'.         "/* String */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   116
    FC_FAMILYLANG           := 'familylang'.       "/* String RFC 3066 langs */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   117
    FC_STYLELANG            := 'stylelang'.        "/* String RFC 3066 langs */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   118
    FC_FULLNAMELANG         := 'fullnamelang'.     "/* String RFC 3066 langs */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   119
    FC_CAPABILITY           := 'capability'.   "/* String */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   120
    FC_FONTFORMAT           := 'fontformat'.       "/* String */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   121
    FC_EMBOLDEN             := 'embolden'.         "/* Bool - true if emboldening needed*/
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   122
    FC_EMBEDDED_BITMAP      := 'embeddedbitmap'."/* Bool - true to enable embedded bitmaps */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   123
    FC_DECORATIVE           := 'decorative'.       "/* Bool - true if style is a decorative variant */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   124
    FC_LCD_FILTER           := 'lcdfilter'.        "/* Int */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   125
    FC_NAMELANG             := 'namelang'.         "/* String RFC 3866 langs */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   126
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   127
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   128
    "Adjust outline rasterizer"
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   129
    FC_CHAR_WIDTH           := 'charwidth'."/* Int */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   130
    FC_CHAR_HEIGHT          := 'charheight'."/* Int */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   131
    FC_MATRIX               := 'matrix'.   "/* FcMatrix */
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   132
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   133
    FC_WEIGHT_THIN          := 0.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   134
    FC_WEIGHT_EXTRALIGHT    := 40.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   135
    FC_WEIGHT_ULTRALIGHT    := FC_WEIGHT_EXTRALIGHT.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   136
    FC_WEIGHT_LIGHT         := 50.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   137
    FC_WEIGHT_BOOK          := 75.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   138
    FC_WEIGHT_REGULAR       := 80.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   139
    FC_WEIGHT_NORMAL        := FC_WEIGHT_REGULAR.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   140
    FC_WEIGHT_MEDIUM        := 100.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   141
    FC_WEIGHT_DEMIBOLD      := 180.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   142
    FC_WEIGHT_SEMIBOLD      := FC_WEIGHT_DEMIBOLD.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   143
    FC_WEIGHT_BOLD          := 200.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   144
    FC_WEIGHT_EXTRABOLD     := 205.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   145
    FC_WEIGHT_ULTRABOLD     := FC_WEIGHT_EXTRABOLD.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   146
    FC_WEIGHT_BLACK         := 210.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   147
    FC_WEIGHT_HEAVY         := FC_WEIGHT_BLACK.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   148
    FC_WEIGHT_EXTRABLACK    := 215.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   149
    FC_WEIGHT_ULTRABLACK    := FC_WEIGHT_EXTRABLACK.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   150
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   151
    FC_SLANT_ROMAN          := 0.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   152
    FC_SLANT_ITALIC         := 100.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   153
    FC_SLANT_OBLIQUE        := 110.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   154
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   155
    FC_WIDTH_ULTRACONDENSED := 50.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   156
    FC_WIDTH_EXTRACONDENSED := 63.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   157
    FC_WIDTH_CONDENSED      := 75.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   158
    FC_WIDTH_SEMICONDENSED  := 87.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   159
    FC_WIDTH_NORMAL         := 100.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   160
    FC_WIDTH_SEMIEXPANDED   := 113.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   161
    FC_WIDTH_EXPANDED       := 125.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   162
    FC_WIDTH_EXTRAEXPANDED  := 150.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   163
    FC_WIDTH_ULTRAEXPANDED  := 200.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   164
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   165
    FC_PROPORTIONAL         := 0.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   166
    FC_DUAL                 := 90.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   167
    FC_MONO                 := 100.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   168
    FC_CHARCELL             := 110.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   169
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   170
    "sub-pixel order"
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   171
    FC_RGBA_UNKNOWN         := 0.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   172
    FC_RGBA_RGB             := 1.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   173
    FC_RGBA_BGR             := 2.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   174
    FC_RGBA_VRGB            := 3.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   175
    FC_RGBA_VBGR            := 4.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   176
    FC_RGBA_NONE            := 5.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   177
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   178
    "hinting style"
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   179
    FC_HINT_NONE            := 0.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   180
    FC_HINT_SLIGHT          := 1.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   181
    FC_HINT_MEDIUM          := 2.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   182
    FC_HINT_FULL            := 3.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   183
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   184
    "LCD filter"
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   185
    FC_LCD_NONE             := 0.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   186
    FC_LCD_DEFAULT          := 1.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   187
    FC_LCD_LIGHT            := 2.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   188
    FC_LCD_LEGACY           := 3.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   189
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   190
    StXFace2FCWeightMap := Dictionary withKeysAndValues:{
7171
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   191
        nil .         FC_WEIGHT_NORMAL .
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   192
        '' .          FC_WEIGHT_NORMAL .
7150
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   193
        'thin'.       FC_WEIGHT_THIN.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   194
        'extralight'. FC_WEIGHT_EXTRALIGHT.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   195
        'ultralight'. FC_WEIGHT_ULTRALIGHT.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   196
        'light'.      FC_WEIGHT_LIGHT.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   197
        'book'.       FC_WEIGHT_BOOK.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   198
        'regular'.    FC_WEIGHT_REGULAR.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   199
        'normal'.     FC_WEIGHT_NORMAL.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   200
        'medium'.     FC_WEIGHT_MEDIUM.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   201
        'demibold'.   FC_WEIGHT_DEMIBOLD.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   202
        'semibold'.   FC_WEIGHT_SEMIBOLD.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   203
        'bold'.       FC_WEIGHT_BOLD.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   204
        'extrabold'.  FC_WEIGHT_EXTRABOLD.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   205
        'ultrabold'.  FC_WEIGHT_ULTRABOLD.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   206
        'black'.      FC_WEIGHT_BLACK.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   207
        'heavy'.      FC_WEIGHT_HEAVY.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   208
        'extrablack'. FC_WEIGHT_EXTRABLACK.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   209
        'ultrablack'. FC_WEIGHT_ULTRABLACK.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   210
    }.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   211
    StXStyle2FCSlantMap := Dictionary withKeysAndValues:{
7171
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   212
        nil .       FC_SLANT_ROMAN .
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   213
        ''.         FC_SLANT_ROMAN .
7150
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   214
        'roman'.    FC_SLANT_ROMAN.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   215
        'italic'.   FC_SLANT_ITALIC.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   216
        'oblique'.  FC_SLANT_OBLIQUE.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   217
    }.
8491
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
   218
%{
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
   219
#ifdef HAVE_FONTCONFIG    
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
   220
    @global(FcConstants:FontConfigVersion)       = __MKSMALLINT( FcGetVersion() );    
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
   221
#endif    
c9d77af565d4 Skip `FcPatternTest >> test_02` for Fontconfig 2.13.1
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 8420
diff changeset
   222
%}.
7150
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   223
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   224
    "Created: / 17-02-2016 / 10:49:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
7171
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   225
    "Modified: / 29-02-2016 / 07:45:19 / Jan Vrany <jan.vrany@fit.cvut.cz>"
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   226
! !
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   227
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   228
!FcConstants class methodsFor:'documentation'!
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   229
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   230
version_HG
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   231
71c34a23762b X11/XFT: Fixed a baaad bug in font caching causing horrible performance regression
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 7151
diff changeset
   232
    ^ '$Changeset: <not expanded> $'
7150
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   233
! !
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   234
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   235
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   236
FcConstants initialize!