From af0c75f4a2d71cb03eb1adb470e5caae47d21b0b Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Thu, 26 Jan 2023 14:55:42 +1300 Subject: [PATCH] Expose HarfBuzz 3.3 APIs, attempt 2. --- Data/Text/Glyphize.hs | 4 ++-- Data/Text/Glyphize/Buffer.hs | 1 + harfbuzz-pure.cabal | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Data/Text/Glyphize.hs b/Data/Text/Glyphize.hs index 3f04f3d..70ee22a 100644 --- a/Data/Text/Glyphize.hs +++ b/Data/Text/Glyphize.hs @@ -20,8 +20,8 @@ module Data.Text.Glyphize (shape, version, versionAtLeast, versionString, fontGlyphContourPoint, fontGlyphContourPointForOrigin, fontGlyphFromName, fontGlyphHAdvance, fontGlyphVAdvance, fontGlyphHKerning, fontGlyphHOrigin, fontGlyphVOrigin, fontGlyphKerningForDir, fontGlyphName, fontGlyphName_, fontGlyphOriginForDir, - fontNominalGlyph, fontPPEm, fontPtEm, fontScale, fontVarGlyph, -- fontSyntheticSlant, - fontVarCoordsNormalized, fontTxt2Glyph, fontGlyph2Str, -- fontVarCoordsDesign, + fontNominalGlyph, fontPPEm, fontPtEm, fontScale, fontVarGlyph, fontSyntheticSlant, + fontVarCoordsNormalized, fontTxt2Glyph, fontGlyph2Str, fontVarCoordsDesign, GlyphExtents(..), fontGlyphExtents, fontGlyphExtentsForOrigin, FontExtents(..), fontExtentsForDir, fontHExtents, fontVExtents, diff --git a/Data/Text/Glyphize/Buffer.hs b/Data/Text/Glyphize/Buffer.hs index a17f2e2..27e7681 100644 --- a/Data/Text/Glyphize/Buffer.hs +++ b/Data/Text/Glyphize/Buffer.hs @@ -201,6 +201,7 @@ hb_language_from_string str = foreign import ccall "hb_language_from_string" hb_language_from_string' :: CString -> Int -> IO Language +{- -- | Check whether a second language tag is the same or a more specific version -- of the provided language tag. -- For example, "fa_IR.utf8" is a more specific tag for "fa" or for "fa_IR". diff --git a/harfbuzz-pure.cabal b/harfbuzz-pure.cabal index 889483f..ab611a3 100644 --- a/harfbuzz-pure.cabal +++ b/harfbuzz-pure.cabal @@ -10,14 +10,14 @@ name: harfbuzz-pure -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change -version: 1.0.0.1 +version: 1.0.1.0 -- A short (one-line) description of the package. synopsis: Pure-functional Harfbuzz language bindings -- A longer description of the package. description: HarfBuzz is a text shaping library. Using the HarfBuzz library allows programs to convert a sequence of Unicode input into properly formatted and positioned glyph output—for any writing system and language. - NOTE: You may need to install Harfbuzz 3.3.0 (Jan 2022) from source, it hasn't been widely packaged yet. + NOTE: You may need to install Harfbuzz 3.3.0 (Jan 2022) or newer from source, it hasn't been widely packaged yet. -- URL for the project homepage or repository. homepage: https://harfbuzz.github.io/ -- 2.30.2