~alcinnz/fontconfig-pure

ref: 063d2469f3f3850b5e0505d74d0b8569082d777b fontconfig-pure/lib/Graphics/Text/Font/Choose/Weight.hs -rw-r--r-- 517 bytes
063d2469 — Adrian Cochrane Improve memory safety & error checks. 7 months ago
                                                                                
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