packages feed

harfbuzz-pure 1.0.2.1 → 1.0.3.0

raw patch · 4 files changed

+19/−12 lines, 4 filesdep ~base

Dependency ranges changed: base

Files

Data/Text/Glyphize.hs view
@@ -1,10 +1,10 @@ {-# LANGUAGE OverloadedStrings #-} -- | 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.+-- Unicode input into properly formatted and positioned glyph output+-- for practically any writing system and language. -- See `shape` for the central function all other datatypes serves to support.-module Data.Text.Glyphize (shape, version, versionAtLeast, versionString,+module Data.Text.Glyphize (shape, version, versionAtLeast, versionString, HarfbuzzError(..),      Buffer(..), ContentType(..), ClusterLevel(..), Direction(..), defaultBuffer,     dirFromStr, dirToStr, dirReverse, dirBackward, dirForward, dirHorizontal, dirVertical,
Data/Text/Glyphize/Font.hs view
@@ -660,11 +660,11 @@ fontScale font = unsafePerformIO $     withForeignPtr font $ \font' -> alloca $ \x' -> alloca $ \y' -> do         hb_font_get_scale font' x' y'-        x <- peek x' :: IO Int32-        y <- peek y' :: IO Int32-        return (fromEnum x, fromEnum y)+        x <- peek x'+        y <- peek y'+        return (x, y) foreign import ccall "hb_font_get_scale" hb_font_get_scale-    :: Font_ -> Ptr Int32 -> Ptr Int32 -> IO ()+    :: Font_ -> Ptr Int -> Ptr Int -> IO ()  -- | Fetches the "synthetic slant" of a font. fontSyntheticSlant :: Font -> Float
Data/Text/Glyphize/Oom.hs view
@@ -3,6 +3,8 @@ import Control.Exception import Foreign.Ptr (nullPtr, Ptr) +-- | Indicates that Harfbuzz has ran out of memory during a computation.+-- Should be extremely rare! data HarfbuzzError = OutOfMemory deriving (Show) instance Exception HarfbuzzError 
harfbuzz-pure.cabal view
@@ -10,13 +10,13 @@ -- PVP summary:      +-+------- breaking API changes --                   | | +----- non-breaking API additions --                   | | | +--- code changes with no API change-version:             1.0.2.1+version:             1.0.3.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.+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 practically any writing system and written language.                     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.@@ -33,10 +33,12 @@  -- An email address to which users can send suggestions, bug reports, and  -- patches.-maintainer:          opensource@openwork.nz+maintainer:          ~alcinnz/harfbuzz-pure@todo.argonaut-constellation.org +bug-reports:         https://todo.argonaut-constellation.org/~alcinnz/harfbuzz-pure+ -- A copyright notice.--- copyright:           +copyright:           Language bindings © 2022, 2023 Adrian Cochrane  category:            Text @@ -49,6 +51,9 @@ -- Constraint on the version of Cabal needed to build this package. cabal-version:       >=1.10 +source-repository head+    type:            git+    location:        https://git.argonaut-constellation.org/~alcinnz/harfbuzz-pure  library   -- Modules exported by the library.@@ -61,7 +66,7 @@   -- other-extensions:          -- Other library packages from which modules are imported.-  build-depends:       base >=4.12 && <5, text >= 2.0 && < 3,+  build-depends:       base >=4.12 && <4.16, text >= 2.0 && < 3,                        bytestring >= 0.11, freetype2 >= 0.2, derive-storable >= 0.3 && < 1   pkgconfig-depends:   harfbuzz >= 3.3