packages feed

FontyFruity 0.5.1 → 0.5.1.1

raw patch · 3 files changed

+9/−5 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Graphics.Text.TrueType: [_a] :: CompositeScaling -> {-# UNPACK #-} !Int16
- Graphics.Text.TrueType: [_b] :: CompositeScaling -> {-# UNPACK #-} !Int16
- Graphics.Text.TrueType: [_baselineHeight] :: BoundingBox -> {-# UNPACK #-} !Float
- Graphics.Text.TrueType: [_c] :: CompositeScaling -> {-# UNPACK #-} !Int16
- Graphics.Text.TrueType: [_d] :: CompositeScaling -> {-# UNPACK #-} !Int16
- Graphics.Text.TrueType: [_descriptorFamilyName] :: FontDescriptor -> Text
- Graphics.Text.TrueType: [_descriptorStyle] :: FontDescriptor -> FontStyle
- Graphics.Text.TrueType: [_e] :: CompositeScaling -> {-# UNPACK #-} !Int16
- Graphics.Text.TrueType: [_f] :: CompositeScaling -> {-# UNPACK #-} !Int16
- Graphics.Text.TrueType: [_fontStyleBold] :: FontStyle -> !Bool
- Graphics.Text.TrueType: [_fontStyleItalic] :: FontStyle -> !Bool
- Graphics.Text.TrueType: [_rawGlyphCompositionScale] :: RawGlyph -> ![CompositeScaling]
- Graphics.Text.TrueType: [_rawGlyphContour] :: RawGlyph -> ![Vector (Int16, Int16)]
- Graphics.Text.TrueType: [_rawGlyphIndex] :: RawGlyph -> !Int
- Graphics.Text.TrueType: [_xMax] :: BoundingBox -> {-# UNPACK #-} !Float
- Graphics.Text.TrueType: [_xMin] :: BoundingBox -> {-# UNPACK #-} !Float
- Graphics.Text.TrueType: [_yMax] :: BoundingBox -> {-# UNPACK #-} !Float
- Graphics.Text.TrueType: [_yMin] :: BoundingBox -> {-# UNPACK #-} !Float
- Graphics.Text.TrueType: [getPointSize] :: PointSize -> Float
- Graphics.Text.TrueType: instance GHC.Classes.Eq Graphics.Text.TrueType.BoundingBox
- Graphics.Text.TrueType: instance GHC.Classes.Eq Graphics.Text.TrueType.PointSize
- Graphics.Text.TrueType: instance GHC.Show.Show Graphics.Text.TrueType.PointSize
- Graphics.Text.TrueType.Internal: [_fHdrChecksumAdjust] :: FontHeader -> !Word32
- Graphics.Text.TrueType.Internal: [_fHdrCreateTime] :: FontHeader -> !Word64
- Graphics.Text.TrueType.Internal: [_fHdrFlags] :: FontHeader -> !HeaderFlags
- Graphics.Text.TrueType.Internal: [_fHdrFontDirectionHint] :: FontHeader -> !Int16
- Graphics.Text.TrueType.Internal: [_fHdrFontRevision] :: FontHeader -> !Fixed
- Graphics.Text.TrueType.Internal: [_fHdrGlyphDataFormat] :: FontHeader -> !Int16
- Graphics.Text.TrueType.Internal: [_fHdrIndexToLocFormat] :: FontHeader -> !Int16
- Graphics.Text.TrueType.Internal: [_fHdrLowestRecPPEM] :: FontHeader -> !Word16
- Graphics.Text.TrueType.Internal: [_fHdrMacStyle] :: FontHeader -> !FontStyle
- Graphics.Text.TrueType.Internal: [_fHdrMagicNumber] :: FontHeader -> !Word32
- Graphics.Text.TrueType.Internal: [_fHdrModificationTime] :: FontHeader -> !Word64
- Graphics.Text.TrueType.Internal: [_fHdrVersionNumber] :: FontHeader -> !Fixed
- Graphics.Text.TrueType.Internal: [_fHdrXMax] :: FontHeader -> !FWord
- Graphics.Text.TrueType.Internal: [_fHdrYMax] :: FontHeader -> !FWord
- Graphics.Text.TrueType.Internal: [_fHdrYMin] :: FontHeader -> !FWord
- Graphics.Text.TrueType.Internal: [_fHdrxMin] :: FontHeader -> !FWord
- Graphics.Text.TrueType.Internal: [_fUnitsPerEm] :: FontHeader -> !Word16
- Graphics.Text.TrueType.Internal: [_fontGlyph] :: Font -> Maybe (Vector Glyph)
- Graphics.Text.TrueType.Internal: [_fontHeader] :: Font -> Maybe FontHeader
- Graphics.Text.TrueType.Internal: [_fontHorizontalHeader] :: Font -> Maybe HorizontalHeader
- Graphics.Text.TrueType.Internal: [_fontHorizontalMetrics] :: Font -> Maybe HorizontalMetricsTable
- Graphics.Text.TrueType.Internal: [_fontLoca] :: Font -> Maybe (Vector Word32)
- Graphics.Text.TrueType.Internal: [_fontMap] :: Font -> Maybe CharacterMaps
- Graphics.Text.TrueType.Internal: [_fontMaxp] :: Font -> Maybe MaxpTable
- Graphics.Text.TrueType.Internal: [_fontNames] :: Font -> Maybe NameTable
- Graphics.Text.TrueType.Internal: [_fontOffsetTable] :: Font -> !OffsetTable
- Graphics.Text.TrueType.Internal: [_fontTables] :: Font -> ![(ByteString, ByteString)]
- Graphics.Text.TrueType.Internal: [_glyphMetrics] :: HorizontalMetricsTable -> !(Vector HorizontalMetric)
- Graphics.Text.TrueType.Internal: [_hfAlterAdvance] :: HeaderFlags -> !Bool
- Graphics.Text.TrueType.Internal: [_hfBaselineY0] :: HeaderFlags -> !Bool
- Graphics.Text.TrueType.Internal: [_hfForcePPEM] :: HeaderFlags -> !Bool
- Graphics.Text.TrueType.Internal: [_hfInstrDependPointSize] :: HeaderFlags -> !Bool
- Graphics.Text.TrueType.Internal: [_hfLeftSideBearing] :: HeaderFlags -> !Bool
- Graphics.Text.TrueType.Internal: [_hheaAdvanceWidthMax] :: HorizontalHeader -> {-# UNPACK #-} !FWord
- Graphics.Text.TrueType.Internal: [_hheaAscent] :: HorizontalHeader -> {-# UNPACK #-} !FWord
- Graphics.Text.TrueType.Internal: [_hheaCaretOffset] :: HorizontalHeader -> {-# UNPACK #-} !FWord
- Graphics.Text.TrueType.Internal: [_hheaCaretSlopeRise] :: HorizontalHeader -> {-# UNPACK #-} !Int16
- Graphics.Text.TrueType.Internal: [_hheaCaretSlopeRun] :: HorizontalHeader -> {-# UNPACK #-} !Int16
- Graphics.Text.TrueType.Internal: [_hheaDescent] :: HorizontalHeader -> {-# UNPACK #-} !FWord
- Graphics.Text.TrueType.Internal: [_hheaLineGap] :: HorizontalHeader -> {-# UNPACK #-} !FWord
- Graphics.Text.TrueType.Internal: [_hheaLongHorMetricCount] :: HorizontalHeader -> {-# UNPACK #-} !Word16
- Graphics.Text.TrueType.Internal: [_hheaMetricDataFormat] :: HorizontalHeader -> {-# UNPACK #-} !Int16
- Graphics.Text.TrueType.Internal: [_hheaMinLeftSideBearing] :: HorizontalHeader -> {-# UNPACK #-} !FWord
- Graphics.Text.TrueType.Internal: [_hheaMinRightSideBearing] :: HorizontalHeader -> {-# UNPACK #-} !FWord
- Graphics.Text.TrueType.Internal: [_hheaXmaxExtent] :: HorizontalHeader -> {-# UNPACK #-} !FWord
- Graphics.Text.TrueType.Internal: [_hmtxAdvanceWidth] :: HorizontalMetric -> {-# UNPACK #-} !Word16
- Graphics.Text.TrueType.Internal: [_hmtxLeftSideBearing] :: HorizontalMetric -> {-# UNPACK #-} !Int16
- Graphics.Text.TrueType.Internal: [_maxpTableVersion] :: MaxpTable -> !Fixed
- Graphics.Text.TrueType.Internal: [_maxpmaxComponentDepth] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxComponentElements] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxCompositeContours] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxCompositePoints] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxContours] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxFunctionDefs] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxInstructionDefs] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxPoints] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxSizeOfInstructions] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxStackElements] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxStorage] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxTwilightPoints] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpmaxZones] :: MaxpTable -> !Word16
- Graphics.Text.TrueType.Internal: [_maxpnumGlyphs] :: MaxpTable -> !Word16
+ Graphics.Text.TrueType: _a :: CompositeScaling -> {-# UNPACK #-} !Int16
+ Graphics.Text.TrueType: _b :: CompositeScaling -> {-# UNPACK #-} !Int16
+ Graphics.Text.TrueType: _baselineHeight :: BoundingBox -> {-# UNPACK #-} !Float
+ Graphics.Text.TrueType: _c :: CompositeScaling -> {-# UNPACK #-} !Int16
+ Graphics.Text.TrueType: _d :: CompositeScaling -> {-# UNPACK #-} !Int16
+ Graphics.Text.TrueType: _descriptorFamilyName :: FontDescriptor -> Text
+ Graphics.Text.TrueType: _descriptorStyle :: FontDescriptor -> FontStyle
+ Graphics.Text.TrueType: _e :: CompositeScaling -> {-# UNPACK #-} !Int16
+ Graphics.Text.TrueType: _f :: CompositeScaling -> {-# UNPACK #-} !Int16
+ Graphics.Text.TrueType: _fontStyleBold :: FontStyle -> !Bool
+ Graphics.Text.TrueType: _fontStyleItalic :: FontStyle -> !Bool
+ Graphics.Text.TrueType: _rawGlyphCompositionScale :: RawGlyph -> ![CompositeScaling]
+ Graphics.Text.TrueType: _rawGlyphContour :: RawGlyph -> ![Vector (Int16, Int16)]
+ Graphics.Text.TrueType: _rawGlyphIndex :: RawGlyph -> !Int
+ Graphics.Text.TrueType: _xMax :: BoundingBox -> {-# UNPACK #-} !Float
+ Graphics.Text.TrueType: _xMin :: BoundingBox -> {-# UNPACK #-} !Float
+ Graphics.Text.TrueType: _yMax :: BoundingBox -> {-# UNPACK #-} !Float
+ Graphics.Text.TrueType: _yMin :: BoundingBox -> {-# UNPACK #-} !Float
+ Graphics.Text.TrueType: getPointSize :: PointSize -> Float
+ Graphics.Text.TrueType: instance Eq BoundingBox
+ Graphics.Text.TrueType: instance Eq PointSize
+ Graphics.Text.TrueType: instance Show PointSize
+ Graphics.Text.TrueType.Internal: _fHdrChecksumAdjust :: FontHeader -> !Word32
+ Graphics.Text.TrueType.Internal: _fHdrCreateTime :: FontHeader -> !Word64
+ Graphics.Text.TrueType.Internal: _fHdrFlags :: FontHeader -> !HeaderFlags
+ Graphics.Text.TrueType.Internal: _fHdrFontDirectionHint :: FontHeader -> !Int16
+ Graphics.Text.TrueType.Internal: _fHdrFontRevision :: FontHeader -> !Fixed
+ Graphics.Text.TrueType.Internal: _fHdrGlyphDataFormat :: FontHeader -> !Int16
+ Graphics.Text.TrueType.Internal: _fHdrIndexToLocFormat :: FontHeader -> !Int16
+ Graphics.Text.TrueType.Internal: _fHdrLowestRecPPEM :: FontHeader -> !Word16
+ Graphics.Text.TrueType.Internal: _fHdrMacStyle :: FontHeader -> !FontStyle
+ Graphics.Text.TrueType.Internal: _fHdrMagicNumber :: FontHeader -> !Word32
+ Graphics.Text.TrueType.Internal: _fHdrModificationTime :: FontHeader -> !Word64
+ Graphics.Text.TrueType.Internal: _fHdrVersionNumber :: FontHeader -> !Fixed
+ Graphics.Text.TrueType.Internal: _fHdrXMax :: FontHeader -> !FWord
+ Graphics.Text.TrueType.Internal: _fHdrYMax :: FontHeader -> !FWord
+ Graphics.Text.TrueType.Internal: _fHdrYMin :: FontHeader -> !FWord
+ Graphics.Text.TrueType.Internal: _fHdrxMin :: FontHeader -> !FWord
+ Graphics.Text.TrueType.Internal: _fUnitsPerEm :: FontHeader -> !Word16
+ Graphics.Text.TrueType.Internal: _fontGlyph :: Font -> Maybe (Vector Glyph)
+ Graphics.Text.TrueType.Internal: _fontHeader :: Font -> Maybe FontHeader
+ Graphics.Text.TrueType.Internal: _fontHorizontalHeader :: Font -> Maybe HorizontalHeader
+ Graphics.Text.TrueType.Internal: _fontHorizontalMetrics :: Font -> Maybe HorizontalMetricsTable
+ Graphics.Text.TrueType.Internal: _fontLoca :: Font -> Maybe (Vector Word32)
+ Graphics.Text.TrueType.Internal: _fontMap :: Font -> Maybe CharacterMaps
+ Graphics.Text.TrueType.Internal: _fontMaxp :: Font -> Maybe MaxpTable
+ Graphics.Text.TrueType.Internal: _fontNames :: Font -> Maybe NameTable
+ Graphics.Text.TrueType.Internal: _fontOffsetTable :: Font -> !OffsetTable
+ Graphics.Text.TrueType.Internal: _fontTables :: Font -> ![(ByteString, ByteString)]
+ Graphics.Text.TrueType.Internal: _glyphMetrics :: HorizontalMetricsTable -> !(Vector HorizontalMetric)
+ Graphics.Text.TrueType.Internal: _hfAlterAdvance :: HeaderFlags -> !Bool
+ Graphics.Text.TrueType.Internal: _hfBaselineY0 :: HeaderFlags -> !Bool
+ Graphics.Text.TrueType.Internal: _hfForcePPEM :: HeaderFlags -> !Bool
+ Graphics.Text.TrueType.Internal: _hfInstrDependPointSize :: HeaderFlags -> !Bool
+ Graphics.Text.TrueType.Internal: _hfLeftSideBearing :: HeaderFlags -> !Bool
+ Graphics.Text.TrueType.Internal: _hheaAdvanceWidthMax :: HorizontalHeader -> {-# UNPACK #-} !FWord
+ Graphics.Text.TrueType.Internal: _hheaAscent :: HorizontalHeader -> {-# UNPACK #-} !FWord
+ Graphics.Text.TrueType.Internal: _hheaCaretOffset :: HorizontalHeader -> {-# UNPACK #-} !FWord
+ Graphics.Text.TrueType.Internal: _hheaCaretSlopeRise :: HorizontalHeader -> {-# UNPACK #-} !Int16
+ Graphics.Text.TrueType.Internal: _hheaCaretSlopeRun :: HorizontalHeader -> {-# UNPACK #-} !Int16
+ Graphics.Text.TrueType.Internal: _hheaDescent :: HorizontalHeader -> {-# UNPACK #-} !FWord
+ Graphics.Text.TrueType.Internal: _hheaLineGap :: HorizontalHeader -> {-# UNPACK #-} !FWord
+ Graphics.Text.TrueType.Internal: _hheaLongHorMetricCount :: HorizontalHeader -> {-# UNPACK #-} !Word16
+ Graphics.Text.TrueType.Internal: _hheaMetricDataFormat :: HorizontalHeader -> {-# UNPACK #-} !Int16
+ Graphics.Text.TrueType.Internal: _hheaMinLeftSideBearing :: HorizontalHeader -> {-# UNPACK #-} !FWord
+ Graphics.Text.TrueType.Internal: _hheaMinRightSideBearing :: HorizontalHeader -> {-# UNPACK #-} !FWord
+ Graphics.Text.TrueType.Internal: _hheaXmaxExtent :: HorizontalHeader -> {-# UNPACK #-} !FWord
+ Graphics.Text.TrueType.Internal: _hmtxAdvanceWidth :: HorizontalMetric -> {-# UNPACK #-} !Word16
+ Graphics.Text.TrueType.Internal: _hmtxLeftSideBearing :: HorizontalMetric -> {-# UNPACK #-} !Int16
+ Graphics.Text.TrueType.Internal: _maxpTableVersion :: MaxpTable -> !Fixed
+ Graphics.Text.TrueType.Internal: _maxpmaxComponentDepth :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxComponentElements :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxCompositeContours :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxCompositePoints :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxContours :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxFunctionDefs :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxInstructionDefs :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxPoints :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxSizeOfInstructions :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxStackElements :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxStorage :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxTwilightPoints :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpmaxZones :: MaxpTable -> !Word16
+ Graphics.Text.TrueType.Internal: _maxpnumGlyphs :: MaxpTable -> !Word16

Files

FontyFruity.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                FontyFruity-version:             0.5.1+version:             0.5.1.1 synopsis:            A true type file format loader description:              A haskell Truetype file parser.@@ -28,7 +28,7 @@ Source-Repository this     Type:      git     Location:  https://github.com/Twinside/FontyFruity.git-    Tag:       v0.5.1+    Tag:       v0.5.1.1  library   exposed-modules: Graphics.Text.TrueType
changelog view
@@ -1,8 +1,11 @@ -*-change-log-*- +v0.5.1.1 April 2015+ * Fix: compilation on older compilers+ v0.5.1 April 2015-  * Fix: Fixing the bounding box returned by stringBoundingBox -  * Fix: All warning of GHC 7.10 final+ * Fix: Fixing the bounding box returned by stringBoundingBox + * Fix: All warning of GHC 7.10 final  v0.5 January 2015  * BREAKING CHANGE: the point size is now Float!
src/Graphics/Text/TrueType.hs view
@@ -36,7 +36,8 @@     ) where  #if !MIN_VERSION_base(4,8,0)-import Data.Monoid( (<$>), mempty )+import Data.Monoid( mempty )+import Control.Applicative((<$>)) #endif  import Control.Monad( foldM, forM )