~alcinnz/fontconfig-pure

ref: 9e1e5029f66325c1391a658c39c4573e74aafe03 fontconfig-pure/Graphics/Text/Font/Choose.hs -rw-r--r-- 3.5 KiB
9e1e5029 — Adrian Cochrane Commit FontSet API (seperated out to break import loop). 2 years ago
                                                                                
26658729 Adrian Cochrane
c10cdcf2 Adrian Cochrane
26658729 Adrian Cochrane
c10cdcf2 Adrian Cochrane
26658729 Adrian Cochrane
c10cdcf2 Adrian Cochrane
26658729 Adrian Cochrane
c10cdcf2 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
module Graphics.Text.Font.Choose(CharSet, FontSet, ObjectSet, Pattern(..), Binding(..),
  Range(..), iRange, StrSet, StrList, Value(..),

  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
    ) 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)
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)
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)