packages feed

harfbuzz-pure 1.0.1.1 → 1.0.2.0

raw patch · 3 files changed

+9/−7 lines, 3 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

Data/Text/Glyphize.hs view
@@ -1,3 +1,4 @@+{-# 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 —@@ -46,6 +47,7 @@ -- If two `Feature`s have the same tag but overlapping ranges -- the value of the `Feature` with the higher index takes precedance. shape :: Font -> Buffer -> [Feature] -> [(GlyphInfo, GlyphPos)]+shape _ Buffer {text = ""} _ = [] shape font buffer features = unsafePerformIO $ withForeignPtr font $ \font' ->     withBuffer buffer $ \buffer' -> withArrayLen features $ \len features' -> do         hb_shape font' buffer' features' $ toEnum len
Data/Text/Glyphize/Font.hs view
@@ -44,7 +44,7 @@     -- ^ The cluster to start applying this feature setting (inclusive).     featEnd :: Word     -- ^ The cluster to end applying this feature setting (exclusive).-} deriving (Read, Show, Generic)+} deriving (Read, Show, Generic, Ord, Eq) instance GStorable Feature -- | Parses a string into a hb_feature_t. -- The format for specifying feature strings follows. All valid CSS@@ -80,7 +80,7 @@     -- ^ Tag of the variation-axis name. Use `varTag` to decode as an ASCII string.     varValue :: Float     -- ^ Value of the variation axis.-} deriving (Read, Show, Generic)+} deriving (Read, Show, Generic, Ord, Eq) instance GStorable Variation -- | Parses a string into a hb_variation_t. -- The format for specifying variation settings follows.@@ -238,7 +238,7 @@     faceOptUPEm :: Maybe Word     -- ^ Sets the units-per-em (upem) for a newly-created `Face` object     -- to the specified value.-}+} deriving (Read, Show, Ord, Eq) -- | `FaceOptions` which has no effect on the newly-created `Face` object. defaultFaceOptions = FaceOptions Nothing Nothing Nothing -- | Internal utility to apply the given `FaceOptions` to a `Face`.@@ -451,7 +451,7 @@     -- ^ Distance from the left extremum of the glyph to the right extremum.     height :: Word32     -- ^ Distance from the top extremum of the glyph to the right extremum.-} deriving (Generic)+} deriving (Generic, Read, Show, Ord, Eq) instance GStorable GlyphExtents -- | Fetches the `GlyphExtents` data for a glyph ID in the specified `Font`. fontGlyphExtents :: Font -> Word32 -> Maybe GlyphExtents@@ -754,7 +754,7 @@     -- ^ The depth of typographic descenders.     lineGap :: Int32     -- ^ The suggested line-spacing gap.-} deriving (Generic)+} deriving (Generic, Read, Show, Ord, Eq) instance GStorable FontExtents -- | Fetches the extents for a font in a text segment of the specified direction. -- Calls the appropriate direction-specific variant (horizontal or vertical)@@ -831,7 +831,7 @@     -- Axes not included in coords will be effectively set to their default values.     optionVarNamedInstance :: Maybe Word     -- ^ Sets design coords of a font from a named instance index.-}+} deriving (Show, Ord, Eq) -- | `FontOptions` which has no effect on the newly-created `Font`. defaultFontOptions = FontOptions {     optionPPEm = Nothing, optionPtEm = Nothing, optionScale = Nothing,
harfbuzz-pure.cabal view
@@ -10,7 +10,7 @@ -- PVP summary:      +-+------- breaking API changes --                   | | +----- non-breaking API additions --                   | | | +--- code changes with no API change-version:             1.0.1.1+version:             1.0.2.0  -- A short (one-line) description of the package. synopsis:            Pure-functional Harfbuzz language bindings