~alcinnz/fontconfig-pure

ref: 3ca6576c426d6d5c299e2cfc94bf8f729c7bbe51 fontconfig-pure/Graphics/Text/Font/Choose.hs -rw-r--r-- 3.8 KiB
3ca6576c — Adrian Cochrane Improve lazy performance, release 0.3.0.1 1 year, 2 months ago
                                                                                
a454eb87 Adrian Cochrane
26658729 Adrian Cochrane
c10cdcf2 Adrian Cochrane
26658729 Adrian Cochrane
df959ade Adrian Cochrane
c10cdcf2 Adrian Cochrane
26658729 Adrian Cochrane
a454eb87 Adrian Cochrane
26658729 Adrian Cochrane
c10cdcf2 Adrian Cochrane
26658729 Adrian Cochrane
427cb127 Adrian Cochrane
26658729 Adrian Cochrane
df959ade Adrian Cochrane
26658729 Adrian Cochrane
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
60
module Graphics.Text.Font.Choose(CharSet, chr, ord, 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 Data.Char (chr, ord) -- For use with CharSet

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)