Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.HarfBuzz.Enums
Description
Synopsis
- data BufferClusterLevelT
- data BufferContentTypeT
- data DirectionT
- data MemoryModeT
- data OtLayoutGlyphClassT
- data OtMathConstantT
- = OtMathConstantTScriptPercentScaleDown
- | OtMathConstantTScriptScriptPercentScaleDown
- | OtMathConstantTDelimitedSubFormulaMinHeight
- | OtMathConstantTDisplayOperatorMinHeight
- | OtMathConstantTMathLeading
- | OtMathConstantTAxisHeight
- | OtMathConstantTAccentBaseHeight
- | OtMathConstantTFlattenedAccentBaseHeight
- | OtMathConstantTSubscriptShiftDown
- | OtMathConstantTSubscriptTopMax
- | OtMathConstantTSubscriptBaselineDropMin
- | OtMathConstantTSuperscriptShiftUp
- | OtMathConstantTSuperscriptShiftUpCramped
- | OtMathConstantTSuperscriptBottomMin
- | OtMathConstantTSuperscriptBaselineDropMax
- | OtMathConstantTSubSuperscriptGapMin
- | OtMathConstantTSuperscriptBottomMaxWithSubscript
- | OtMathConstantTSpaceAfterScript
- | OtMathConstantTUpperLimitGapMin
- | OtMathConstantTUpperLimitBaselineRiseMin
- | OtMathConstantTLowerLimitGapMin
- | OtMathConstantTLowerLimitBaselineDropMin
- | OtMathConstantTStackTopShiftUp
- | OtMathConstantTStackTopDisplayStyleShiftUp
- | OtMathConstantTStackBottomShiftDown
- | OtMathConstantTStackBottomDisplayStyleShiftDown
- | OtMathConstantTStackGapMin
- | OtMathConstantTStackDisplayStyleGapMin
- | OtMathConstantTStretchStackTopShiftUp
- | OtMathConstantTStretchStackBottomShiftDown
- | OtMathConstantTStretchStackGapAboveMin
- | OtMathConstantTStretchStackGapBelowMin
- | OtMathConstantTFractionNumeratorShiftUp
- | OtMathConstantTFractionNumeratorDisplayStyleShiftUp
- | OtMathConstantTFractionDenominatorShiftDown
- | OtMathConstantTFractionDenominatorDisplayStyleShiftDown
- | OtMathConstantTFractionNumeratorGapMin
- | OtMathConstantTFractionNumDisplayStyleGapMin
- | OtMathConstantTFractionRuleThickness
- | OtMathConstantTFractionDenominatorGapMin
- | OtMathConstantTFractionDenomDisplayStyleGapMin
- | OtMathConstantTSkewedFractionHorizontalGap
- | OtMathConstantTSkewedFractionVerticalGap
- | OtMathConstantTOverbarVerticalGap
- | OtMathConstantTOverbarRuleThickness
- | OtMathConstantTOverbarExtraAscender
- | OtMathConstantTUnderbarVerticalGap
- | OtMathConstantTUnderbarRuleThickness
- | OtMathConstantTUnderbarExtraDescender
- | OtMathConstantTRadicalVerticalGap
- | OtMathConstantTRadicalDisplayStyleVerticalGap
- | OtMathConstantTRadicalRuleThickness
- | OtMathConstantTRadicalExtraAscender
- | OtMathConstantTRadicalKernBeforeDegree
- | OtMathConstantTRadicalKernAfterDegree
- | OtMathConstantTRadicalDegreeBottomRaisePercent
- | AnotherOtMathConstantT Int
- data OtMathKernT
- data OtNameIdPredefinedT
- = OtNameIdPredefinedTCopyright
- | OtNameIdPredefinedTFontFamily
- | OtNameIdPredefinedTFontSubfamily
- | OtNameIdPredefinedTUniqueId
- | OtNameIdPredefinedTFullName
- | OtNameIdPredefinedTVersionString
- | OtNameIdPredefinedTPostscriptName
- | OtNameIdPredefinedTTrademark
- | OtNameIdPredefinedTManufacturer
- | OtNameIdPredefinedTDesigner
- | OtNameIdPredefinedTDescription
- | OtNameIdPredefinedTVendorUrl
- | OtNameIdPredefinedTDesignerUrl
- | OtNameIdPredefinedTLicense
- | OtNameIdPredefinedTLicenseUrl
- | OtNameIdPredefinedTTypographicFamily
- | OtNameIdPredefinedTTypographicSubfamily
- | OtNameIdPredefinedTMacFullName
- | OtNameIdPredefinedTSampleText
- | OtNameIdPredefinedTCidFindfontName
- | OtNameIdPredefinedTWwsFamily
- | OtNameIdPredefinedTWwsSubfamily
- | OtNameIdPredefinedTLightBackground
- | OtNameIdPredefinedTDarkBackground
- | OtNameIdPredefinedTVariationsPsPrefix
- | OtNameIdPredefinedTInvalid
- | AnotherOtNameIdPredefinedT Int
- data PaintCompositeModeT
- = PaintCompositeModeTClear
- | PaintCompositeModeTSrc
- | PaintCompositeModeTDest
- | PaintCompositeModeTSrcOver
- | PaintCompositeModeTDestOver
- | PaintCompositeModeTSrcIn
- | PaintCompositeModeTDestIn
- | PaintCompositeModeTSrcOut
- | PaintCompositeModeTDestOut
- | PaintCompositeModeTSrcAtop
- | PaintCompositeModeTDestAtop
- | PaintCompositeModeTXor
- | PaintCompositeModeTPlus
- | PaintCompositeModeTScreen
- | PaintCompositeModeTOverlay
- | PaintCompositeModeTDarken
- | PaintCompositeModeTLighten
- | PaintCompositeModeTColorDodge
- | PaintCompositeModeTColorBurn
- | PaintCompositeModeTHardLight
- | PaintCompositeModeTSoftLight
- | PaintCompositeModeTDifference
- | PaintCompositeModeTExclusion
- | PaintCompositeModeTMultiply
- | PaintCompositeModeTHslHue
- | PaintCompositeModeTHslSaturation
- | PaintCompositeModeTHslColor
- | PaintCompositeModeTHslLuminosity
- | AnotherPaintCompositeModeT Int
- data PaintExtendT
- data UnicodeCombiningClassT
- = UnicodeCombiningClassTNotReordered
- | UnicodeCombiningClassTOverlay
- | UnicodeCombiningClassTNukta
- | UnicodeCombiningClassTKanaVoicing
- | UnicodeCombiningClassTVirama
- | UnicodeCombiningClassTCcc10
- | UnicodeCombiningClassTCcc11
- | UnicodeCombiningClassTCcc12
- | UnicodeCombiningClassTCcc13
- | UnicodeCombiningClassTCcc14
- | UnicodeCombiningClassTCcc15
- | UnicodeCombiningClassTCcc16
- | UnicodeCombiningClassTCcc17
- | UnicodeCombiningClassTCcc18
- | UnicodeCombiningClassTCcc19
- | UnicodeCombiningClassTCcc20
- | UnicodeCombiningClassTCcc21
- | UnicodeCombiningClassTCcc22
- | UnicodeCombiningClassTCcc23
- | UnicodeCombiningClassTCcc24
- | UnicodeCombiningClassTCcc25
- | UnicodeCombiningClassTCcc26
- | UnicodeCombiningClassTCcc27
- | UnicodeCombiningClassTCcc28
- | UnicodeCombiningClassTCcc29
- | UnicodeCombiningClassTCcc30
- | UnicodeCombiningClassTCcc31
- | UnicodeCombiningClassTCcc32
- | UnicodeCombiningClassTCcc33
- | UnicodeCombiningClassTCcc34
- | UnicodeCombiningClassTCcc35
- | UnicodeCombiningClassTCcc36
- | UnicodeCombiningClassTCcc84
- | UnicodeCombiningClassTCcc91
- | UnicodeCombiningClassTCcc103
- | UnicodeCombiningClassTCcc107
- | UnicodeCombiningClassTCcc118
- | UnicodeCombiningClassTCcc122
- | UnicodeCombiningClassTCcc129
- | UnicodeCombiningClassTCcc130
- | UnicodeCombiningClassTCcc132
- | UnicodeCombiningClassTAttachedBelowLeft
- | UnicodeCombiningClassTAttachedBelow
- | UnicodeCombiningClassTAttachedAbove
- | UnicodeCombiningClassTAttachedAboveRight
- | UnicodeCombiningClassTBelowLeft
- | UnicodeCombiningClassTBelow
- | UnicodeCombiningClassTBelowRight
- | UnicodeCombiningClassTLeft
- | UnicodeCombiningClassTRight
- | UnicodeCombiningClassTAboveLeft
- | UnicodeCombiningClassTAbove
- | UnicodeCombiningClassTAboveRight
- | UnicodeCombiningClassTDoubleBelow
- | UnicodeCombiningClassTDoubleAbove
- | UnicodeCombiningClassTIotaSubscript
- | UnicodeCombiningClassTInvalid
- | AnotherUnicodeCombiningClassT Int
- data UnicodeGeneralCategoryT
- = UnicodeGeneralCategoryTControl
- | UnicodeGeneralCategoryTFormat
- | UnicodeGeneralCategoryTUnassigned
- | UnicodeGeneralCategoryTPrivateUse
- | UnicodeGeneralCategoryTSurrogate
- | UnicodeGeneralCategoryTLowercaseLetter
- | UnicodeGeneralCategoryTModifierLetter
- | UnicodeGeneralCategoryTOtherLetter
- | UnicodeGeneralCategoryTTitlecaseLetter
- | UnicodeGeneralCategoryTUppercaseLetter
- | UnicodeGeneralCategoryTSpacingMark
- | UnicodeGeneralCategoryTEnclosingMark
- | UnicodeGeneralCategoryTNonSpacingMark
- | UnicodeGeneralCategoryTDecimalNumber
- | UnicodeGeneralCategoryTLetterNumber
- | UnicodeGeneralCategoryTOtherNumber
- | UnicodeGeneralCategoryTConnectPunctuation
- | UnicodeGeneralCategoryTDashPunctuation
- | UnicodeGeneralCategoryTClosePunctuation
- | UnicodeGeneralCategoryTFinalPunctuation
- | UnicodeGeneralCategoryTInitialPunctuation
- | UnicodeGeneralCategoryTOtherPunctuation
- | UnicodeGeneralCategoryTOpenPunctuation
- | UnicodeGeneralCategoryTCurrencySymbol
- | UnicodeGeneralCategoryTModifierSymbol
- | UnicodeGeneralCategoryTMathSymbol
- | UnicodeGeneralCategoryTOtherSymbol
- | UnicodeGeneralCategoryTLineSeparator
- | UnicodeGeneralCategoryTParagraphSeparator
- | UnicodeGeneralCategoryTSpaceSeparator
- | AnotherUnicodeGeneralCategoryT Int
Enumerations
BufferClusterLevelT
data BufferClusterLevelT Source #
Data type for holding HarfBuzz's clustering behavior options. The cluster level dictates one aspect of how HarfBuzz will treat non-base characters during shaping.
In hBBUFFERCLUSTERLEVELMONOTONEGRAPHEMES
, non-base
characters are merged into the cluster of the base character that precedes them.
In hBBUFFERCLUSTERLEVELMONOTONECHARACTERS
, non-base characters are initially
assigned their own cluster values, which are not merged into preceding base
clusters. This allows HarfBuzz to perform additional operations like reorder
sequences of adjacent marks.
hBBUFFERCLUSTERLEVELMONOTONEGRAPHEMES
is the default, because it maintains
backward compatibility with older versions of HarfBuzz. New client programs that
do not need to maintain such backward compatibility are recommended to use
hBBUFFERCLUSTERLEVELMONOTONECHARACTERS
instead of the default.
Since: 0.9.42
Constructors
BufferClusterLevelTMonotoneGraphemes | Return cluster values grouped by graphemes into monotone order. |
BufferClusterLevelTMonotoneCharacters | Return cluster values grouped into monotone order. |
BufferClusterLevelTCharacters | Don't group cluster values. |
BufferClusterLevelTDefault | Default cluster level,
equal to |
AnotherBufferClusterLevelT Int | Catch-all for unknown values |
Instances
BufferContentTypeT
data BufferContentTypeT Source #
The type of BufferT
contents.
Constructors
BufferContentTypeTInvalid | Initial value for new buffer. |
BufferContentTypeTUnicode | The buffer contains input characters (before shaping). |
BufferContentTypeTGlyphs | The buffer contains output glyphs (after shaping). |
AnotherBufferContentTypeT Int | Catch-all for unknown values |
Instances
DirectionT
data DirectionT Source #
The direction of a text segment or buffer.
A segment can also be tested for horizontal or vertical
orientation (irrespective of specific direction) with
HB_DIRECTION_IS_HORIZONTAL()
or HB_DIRECTION_IS_VERTICAL()
.
Constructors
DirectionTInvalid | Initial, unset direction. |
DirectionTLtr | Text is set horizontally from left to right. |
DirectionTRtl | Text is set horizontally from right to left. |
DirectionTTtb | Text is set vertically from top to bottom. |
DirectionTBtt | Text is set vertically from bottom to top. |
AnotherDirectionT Int | Catch-all for unknown values |
Instances
Enum DirectionT Source # | |
Defined in GI.HarfBuzz.Enums Methods succ :: DirectionT -> DirectionT pred :: DirectionT -> DirectionT toEnum :: Int -> DirectionT fromEnum :: DirectionT -> Int enumFrom :: DirectionT -> [DirectionT] enumFromThen :: DirectionT -> DirectionT -> [DirectionT] enumFromTo :: DirectionT -> DirectionT -> [DirectionT] enumFromThenTo :: DirectionT -> DirectionT -> DirectionT -> [DirectionT] | |
Show DirectionT Source # | |
Defined in GI.HarfBuzz.Enums Methods showsPrec :: Int -> DirectionT -> ShowS show :: DirectionT -> String showList :: [DirectionT] -> ShowS | |
Eq DirectionT Source # | |
Defined in GI.HarfBuzz.Enums | |
Ord DirectionT Source # | |
Defined in GI.HarfBuzz.Enums Methods compare :: DirectionT -> DirectionT -> Ordering (<) :: DirectionT -> DirectionT -> Bool (<=) :: DirectionT -> DirectionT -> Bool (>) :: DirectionT -> DirectionT -> Bool (>=) :: DirectionT -> DirectionT -> Bool max :: DirectionT -> DirectionT -> DirectionT min :: DirectionT -> DirectionT -> DirectionT |
MemoryModeT
data MemoryModeT Source #
Data type holding the memory modes available to client programs.
Regarding these various memory-modes:
- In no case shall the HarfBuzz client modify memory
that is passed to HarfBuzz in a blob. If there is
any such possibility,
hBMEMORYMODEDUPLICATE
should be used such that HarfBuzz makes a copy immediately, - Use
hBMEMORYMODEREADONLY
otherwise, unless you really really really know what you are doing, hBMEMORYMODEWRITABLE
is appropriate if you really made a copy of data solely for the purpose of passing to HarfBuzz and doing that just once (no reuse!),- If the font is
mmap()
ed, it's okay to usehBMEMORYMODEREADONLYMAYMAKEWRITABLE
, however, using that mode correctly is very tricky. UsehBMEMORYMODEREADONLY
instead.
Constructors
MemoryModeTDuplicate | HarfBuzz immediately makes a copy of the data. |
MemoryModeTReadonly | HarfBuzz client will never modify the data, and HarfBuzz will never modify the data. |
MemoryModeTWritable | HarfBuzz client made a copy of the data solely for HarfBuzz, so HarfBuzz may modify the data. |
MemoryModeTReadonlyMayMakeWritable | See above |
AnotherMemoryModeT Int | Catch-all for unknown values |
Instances
OtLayoutGlyphClassT
data OtLayoutGlyphClassT Source #
The GDEF classes defined for glyphs.
Constructors
OtLayoutGlyphClassTUnclassified | Glyphs not matching the other classifications |
OtLayoutGlyphClassTBaseGlyph | Spacing, single characters, capable of accepting marks |
OtLayoutGlyphClassTLigature | Glyphs that represent ligation of multiple characters |
OtLayoutGlyphClassTMark | Non-spacing, combining glyphs that represent marks |
OtLayoutGlyphClassTComponent | Spacing glyphs that represent part of a single character |
AnotherOtLayoutGlyphClassT Int | Catch-all for unknown values |
Instances
OtMathConstantT
data OtMathConstantT Source #
The 'MATH' table constants, refer to OpenType documentation For more explanations.
Since: 1.3.3
Constructors
Instances
OtMathKernT
data OtMathKernT Source #
The math kerning-table types defined for the four corners of a glyph.
Since: 1.3.3
Constructors
OtMathKernTTopRight | The top right corner of the glyph. |
OtMathKernTTopLeft | The top left corner of the glyph. |
OtMathKernTBottomRight | The bottom right corner of the glyph. |
OtMathKernTBottomLeft | The bottom left corner of the glyph. |
AnotherOtMathKernT Int | Catch-all for unknown values |
Instances
OtNameIdPredefinedT
data OtNameIdPredefinedT Source #
An enum type representing the pre-defined name IDs.
For more information on these fields, see the OpenType spec.
Since: 7.0.0
Constructors
Instances
PaintCompositeModeT
data PaintCompositeModeT Source #
The values of this enumeration describe the compositing modes that can be used when combining temporary redirected drawing with the backdrop.
See the OpenType spec COLR section for details.
Since: 7.0.0
Constructors
PaintCompositeModeTClear | clear destination layer (bounded) |
PaintCompositeModeTSrc | replace destination layer (bounded) |
PaintCompositeModeTDest | ignore the source |
PaintCompositeModeTSrcOver | draw source layer on top of destination layer (bounded) |
PaintCompositeModeTDestOver | draw destination on top of source |
PaintCompositeModeTSrcIn | draw source where there was destination content (unbounded) |
PaintCompositeModeTDestIn | leave destination only where there was source content (unbounded) |
PaintCompositeModeTSrcOut | draw source where there was no destination content (unbounded) |
PaintCompositeModeTDestOut | leave destination only where there was no source content |
PaintCompositeModeTSrcAtop | draw source on top of destination content and only there |
PaintCompositeModeTDestAtop | leave destination on top of source content and only there (unbounded) |
PaintCompositeModeTXor | source and destination are shown where there is only one of them |
PaintCompositeModeTPlus | source and destination layers are accumulated |
PaintCompositeModeTScreen | source and destination are complemented and multiplied. This causes the result to be at least as light as the lighter inputs. |
PaintCompositeModeTOverlay | multiplies or screens, depending on the lightness of the destination color. |
PaintCompositeModeTDarken | replaces the destination with the source if it is darker, otherwise keeps the source. |
PaintCompositeModeTLighten | replaces the destination with the source if it is lighter, otherwise keeps the source. |
PaintCompositeModeTColorDodge | brightens the destination color to reflect the source color. |
PaintCompositeModeTColorBurn | darkens the destination color to reflect the source color. |
PaintCompositeModeTHardLight | Multiplies or screens, dependent on source color. |
PaintCompositeModeTSoftLight | Darkens or lightens, dependent on source color. |
PaintCompositeModeTDifference | Takes the difference of the source and destination color. |
PaintCompositeModeTExclusion | Produces an effect similar to difference, but with lower contrast. |
PaintCompositeModeTMultiply | source and destination layers are multiplied. This causes the result to be at least as dark as the darker inputs. |
PaintCompositeModeTHslHue | Creates a color with the hue of the source and the saturation and luminosity of the target. |
PaintCompositeModeTHslSaturation | Creates a color with the saturation of the source and the hue and luminosity of the target. Painting with this mode onto a gray area produces no change. |
PaintCompositeModeTHslColor | Creates a color with the hue and saturation of the source and the luminosity of the target. This preserves the gray levels of the target and is useful for coloring monochrome images or tinting color images. |
PaintCompositeModeTHslLuminosity | Creates a color with the luminosity of
the source and the hue and saturation of the target. This produces an
inverse effect to |
AnotherPaintCompositeModeT Int | Catch-all for unknown values |
Instances
PaintExtendT
data PaintExtendT Source #
The values of this enumeration determine how color values
outside the minimum and maximum defined offset on a ColorLineT
are determined.
See the OpenType spec COLR section for details.
Since: 7.0.0
Constructors
PaintExtendTPad | Outside the defined interval, the color of the closest color stop is used. |
PaintExtendTRepeat | The color line is repeated over repeated multiples of the defined interval |
PaintExtendTReflect | The color line is repeated over repeated intervals, as for the repeat mode. However, in each repeated interval, the ordering of color stops is the reverse of the adjacent interval. |
AnotherPaintExtendT Int | Catch-all for unknown values |
Instances
UnicodeCombiningClassT
data UnicodeCombiningClassT Source #
Data type for the Canonical_Combining_Class (ccc) property from the Unicode Character Database.
<note>Note: newer versions of Unicode may add new values.
Client programs should be ready to handle any value in the 0..254 range
being returned from unicodeCombiningClass
.</note>
Constructors
Instances
UnicodeGeneralCategoryT
data UnicodeGeneralCategoryT Source #
Data type for the "General_Category" (gc) property from the Unicode Character Database.
Constructors