~alcinnz/harfbuzz-pure

af0c75f4a2d71cb03eb1adb470e5caae47d21b0b — Adrian Cochrane 1 year, 3 months ago 2856718
Expose HarfBuzz 3.3 APIs, attempt 2.
3 files changed, 5 insertions(+), 4 deletions(-)

M Data/Text/Glyphize.hs
M Data/Text/Glyphize/Buffer.hs
M harfbuzz-pure.cabal
M Data/Text/Glyphize.hs => Data/Text/Glyphize.hs +2 -2
@@ 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,

M Data/Text/Glyphize/Buffer.hs => Data/Text/Glyphize/Buffer.hs +1 -0
@@ 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".

M harfbuzz-pure.cabal => harfbuzz-pure.cabal +2 -2
@@ 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/