~alcinnz/fontconfig-pure

ref: f8fdd180c8ce9f95507dc16873186743e5bc6d03 fontconfig-pure/Graphics/Text/Font/Choose.hs -rw-r--r-- 3.7 KiB
f8fdd180 — Adrian Cochrane Attempted segfault fix. 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module Graphics.Text.Font.Choose(CharSet, FontSet, ObjectSet, Pattern(..), Binding(..),
  Range(..), iRange, StrSet, StrList, Value(..), FontFaceParser(..),

  Config, configCreate,
  configSetCurrent, configGetCurrent, configUptoDate, configHome, configEnableHome,
  configBuildFonts, configBuildFonts', configGetConfigDirs, configGetConfigDirs',
  configGetFontDirs, configGetFontDirs', configGetConfigFiles, configGetConfigFiles',
  configGetCacheDirs, configGetCacheDirs', SetName(..), configGetFonts, configGetFonts',
  configGetRescanInterval,configGetRescanInterval', configAppFontClear,configAppFontClear',
  configAppFontAddFile, configAppFontAddFile', configAppFontAddDir, configAppFontAddDir',
  MatchKind(..), configSubstituteWithPat, configSubstituteWithPat', fontList, fontList', 
  configSubstitute, configSubstitute', fontMatch, fontMatch', fontSort, fontSort',
  fontRenderPrepare, fontRenderPrepare', -- configGetFilename, configGetFilename',
  configParseAndLoad, configParseAndLoad', configGetSysRoot, configGetSysRoot',
  configParseAndLoadFromMemory, configParseAndLoadFromMemory',
  configSetSysRoot, configSetSysRoot', configGetFileInfo, configGetFileInfo',

  fontSetList, fontSetList', fontSetMatch, fontSetMatch', fontSetSort, fontSetSort',

  initLoadConfig, initLoadConfigAndFonts, init, fini, reinit, bringUptoDate, version,

  LangSet, defaultLangs, langs, langSetCompare, langNormalize, langCharSet,

  equalSubset, normalizePattern, filter, defaultSubstitute, nameParse, nameUnparse, format,
  setValue, setValues, unset, getValues, getValues', getValue, getValue', getValue0
    ) where

import Prelude hiding (init, filter)

import Graphics.Text.Font.Choose.CharSet (CharSet)
import Graphics.Text.Font.Choose.Config (Config, configCreate,
  configSetCurrent, configGetCurrent, configUptoDate, configHome, configEnableHome,
  configBuildFonts, configBuildFonts', configGetConfigDirs, configGetConfigDirs',
  configGetFontDirs, configGetFontDirs', configGetConfigFiles, configGetConfigFiles',
  configGetCacheDirs, configGetCacheDirs', SetName(..), configGetFonts, configGetFonts',
  configGetRescanInterval,configGetRescanInterval', configAppFontClear,configAppFontClear',
  configAppFontAddFile, configAppFontAddFile', configAppFontAddDir, configAppFontAddDir',
  MatchKind(..), configSubstituteWithPat, configSubstituteWithPat', fontList, fontList', 
  configSubstitute, configSubstitute', fontMatch, fontMatch', fontSort, fontSort',
  fontRenderPrepare, fontRenderPrepare', -- configGetFilename, configGetFilename',
  configParseAndLoad, configParseAndLoad', configGetSysRoot, configGetSysRoot',
  configParseAndLoadFromMemory, configParseAndLoadFromMemory',
  configSetSysRoot, configSetSysRoot', configGetFileInfo, configGetFileInfo')
import Graphics.Text.Font.Choose.FontSet (FontSet, FontFaceParser(..))
import Graphics.Text.Font.Choose.FontSet.API (fontSetList, fontSetList',
    fontSetMatch, fontSetMatch', fontSetSort, fontSetSort')
import Graphics.Text.Font.Choose.Init (initLoadConfig, initLoadConfigAndFonts,
    init, fini, reinit, bringUptoDate, version)
import Graphics.Text.Font.Choose.LangSet (LangSet, defaultLangs, langs,
    langSetCompare, langNormalize, langCharSet)
import Graphics.Text.Font.Choose.ObjectSet (ObjectSet)
import Graphics.Text.Font.Choose.Pattern (Pattern(..), Binding(..), equalSubset,
    normalizePattern, filter, defaultSubstitute, nameParse, nameUnparse, format,
    setValue, setValues, unset, getValues, getValues', getValue, getValue', getValue0)
import Graphics.Text.Font.Choose.Range (Range(..), iRange)
import Graphics.Text.Font.Choose.Strings (StrSet, StrList)
import Graphics.Text.Font.Choose.Value (Value(..))
import Graphics.Text.Font.Choose.Weight (weightFromOpenTypeDouble, weightToOpenTypeDouble,
    weightFromOpenType, weightToOpenType)