~alcinnz/CatTrap

f68556183c80c7ae18c8c583ebcaaf7b2c151f28 — Adrian Cochrane 1 year, 3 months ago 8d989cf
Enforce harfbuzz scaling to be of Double type.
1 files changed, 2 insertions(+), 1 deletions(-)

M Graphics/Layout/CSS/Internal.hs
M Graphics/Layout/CSS/Internal.hs => Graphics/Layout/CSS/Internal.hs +2 -1
@@ 84,8 84,9 @@ data Font' = Font' {
    scale :: Double
}
placeholderFont = Font' undefined [] (const 0) (const 0) 0 0 0 0  0 0 0 0  1
hbScale :: Font' -> Double
hbScale f = fontSize f*hbUnit
hbUnit = 64
hbUnit = 64 :: Double

pattern2hbfont :: Pattern -> Int -> [Variation] -> Font
pattern2hbfont pat scale variations = createFontWithOptions options face