~alcinnz/fontconfig-pure

ref: 18b29da8fa2cc23650f2fd33c0917bcc2289a7b6 fontconfig-pure/lib/Graphics/Text/Font/Choose/Weight.hs -rw-r--r-- 517 bytes
18b29da8 — Adrian Cochrane Expose font weight adjustments & correct current-config refcount. 8 months ago
                                                                                
18b29da8 Adrian Cochrane
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE CApiFFI #-}
module Graphics.Text.Font.Choose.Weight where

foreign import capi "fontconfig/fontconfig.h FcWeightFromOpenTypeDouble"
    weightFromOpenTypeDouble :: Double -> Double
foreign import capi "fontconfig/fontconfig.h FcWeightToOpenTypeDouble"
    weightToOpenTypeDouble :: Double -> Double
foreign import capi "fontconfig/fontconfig.h FcWeightFromOpenType"
    weightFromOpenType :: Int -> Int
foreign import capi "fontconfig/fontconfig.h FcWeightToOpenType" 
    weightToOpenType :: Int -> Int