FcConstants.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 06 Sep 2017 10:04:18 +0200
branchjv
changeset 8180 25149dfd68e0
parent 7171 71c34a23762b
child 8420 76e39223f5ab
permissions -rw-r--r--
Build files: removed a bunch of make rules for long-dead unsupported systems ...in order to unify and simplify the build. If a need to support this ancient systems arose, these hacks may ni longer be needed (due to new versions of tools) or the hacks would have to be written again (better) or retrieved from SCM (worse). Time will show.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
     1
"{ 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
     2
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     3
"{ NameSpace: Smalltalk }"
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
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
     6
	instanceVariableNames:''
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
	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
     8
		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
     9
		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
    10
		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
    11
		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
    12
		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
    13
		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
    14
		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
    15
		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
    16
		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
    17
		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
    18
		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
    19
		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
    20
		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
    21
		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
    22
		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
    23
		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
    24
		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
    25
		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
    26
		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
    27
		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
    28
		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
    29
		FC_LCD_LIGHT FC_LCD_LEGACY StXFace2FCWeightMap
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
    30
		StXStyle2FCSlantMap'
7150
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
	poolDictionaries:''
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    32
	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
    33
!
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    34
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
    35
7150
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    36
!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
    37
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    38
initialize
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    39
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    40
    " 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
    41
    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
    42
    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
    43
    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
    44
    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
    45
    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
    46
    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
    47
    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
    48
    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
    49
    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
    50
    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
    51
    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
    52
    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
    53
    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
    54
    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
    55
    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
    56
    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
    57
    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
    58
    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
    59
    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
    60
    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
    61
    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
    62
    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
    63
    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
    64
    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
    65
    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
    66
    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
    67
    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
    68
    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
    69
    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
    70
    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
    71
    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
    72
    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
    73
    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
    74
    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
    75
    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
    76
    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
    77
    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
    78
    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
    79
    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
    80
    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
    81
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
    "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
    84
    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
    85
    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
    86
    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
    87
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    88
    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
    89
    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
    90
    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
    91
    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
    92
    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
    93
    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
    94
    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
    95
    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
    96
    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
    97
    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
    98
    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
    99
    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
   100
    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
   101
    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
   102
    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
   103
    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
   104
    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
   105
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   106
    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
   107
    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
   108
    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
   109
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   110
    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
   111
    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
   112
    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
   113
    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
   114
    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
   115
    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
   116
    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
   117
    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
   118
    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
   119
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   120
    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
   121
    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
   122
    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
   123
    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
   124
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   125
    "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
   126
    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
   127
    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
   128
    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
   129
    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
   130
    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
   131
    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
   132
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   133
    "hinting style"
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   134
    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
   135
    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
   136
    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
   137
    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
   138
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   139
    "LCD filter"
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   140
    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
   141
    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
   142
    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
   143
    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
   144
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   145
    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
   146
        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
   147
        '' .          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
   148
        '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
   149
        '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
   150
        '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
   151
        '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
   152
        '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
   153
        '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
   154
        '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
   155
        '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
   156
        '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
   157
        '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
   158
        '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
   159
        '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
   160
        '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
   161
        '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
   162
        '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
   163
        '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
   164
        '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
   165
    }.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   166
    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
   167
        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
   168
        ''.         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
   169
        '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
   170
        '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
   171
        '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
   172
    }.
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   173
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   174
    "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
   175
    "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
   176
! !
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
   177
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
   178
!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
   179
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
   180
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
   181
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
   182
    ^ '$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
   183
! !
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   184
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   185
000f5ae96151 X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   186
FcConstants initialize!