Documentation
¶
Overview ¶
Package coretext provides Go bindings for the CoreText framework.
Create text layouts, optimize font handling, and access font metrics and glyph data.
Core Text provides a low-level programming interface for laying out text and handling fonts. The Core Text layout engine is designed for high performance, ease of use, and close integration with Core Foundation. The text layout API provides high-quality typesetting, including character-to-glyph conversion, with ligatures, kerning, and so on. The complementary Core Text font technology provides automatic font substitution (cascading), font descriptors and collections, easy access to font metrics and glyph data, and many other features.
Opaque Types ¶
- CTFontRef: A font object. (CTFontUIFontType, CTFontTableTag, CTFontTableOptions, CTFontOptions)
- CTFontCollectionRef: A font collection. (CTFontCollectionSortDescriptorsCallback, CTFontCollectionCopyOptions)
- CTFontDescriptorRef: A font descriptor. (CTFontOrientation, CTFontFormat, CTFontPriority, CTFontSymbolicTraits, CTFontStylisticClass)
- CTFrameRef: A frame. (CTFramePathFillRule, CTFrameProgression)
- CTFramesetterRef: Generate text frames.
- CTGlyphInfoRef: Override a font’s specified mapping from Unicode to the glyph ID. (CTCharacterCollection)
- CTLineRef: A line of text. (CTLineTruncationType)
- CTParagraphStyleRef: Paragraph or ruler attributes in an attributed string. (CTParagraphStyleSetting, CTTextAlignment, CTLineBreakMode, CTWritingDirection, CTParagraphStyleSpecifier)
- CTRunRef: A glyph run. (CTRunStatus)
- CTRunDelegateRef: A run delegate. (CTRunDelegateGetAscentCallback, CTRunDelegateGetDescentCallback, CTRunDelegateGetWidthCallback, CTRunDelegateDeallocateCallback, CTRunDelegateCallbacks)
- CTTextTabRef: A tab in a paragraph style, storing an alignment type and location.
- CTTypesetterRef: A typesetter which performs line layout.
Protocols ¶
Variables ¶
Functions ¶
Type Aliases ¶
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func BindFunc(fptr any, name string) (err error)
- func CTFontCollectionCopyExclusionDescriptors(collection CTFontCollectionRef) corefoundation.CFArrayRef
- func CTFontCollectionCopyFontAttribute(collection CTFontCollectionRef, attributeName corefoundation.CFStringRef, ...) corefoundation.CFArrayRef
- func CTFontCollectionCopyFontAttributes(collection CTFontCollectionRef, attributeNames corefoundation.CFSetRef, ...) corefoundation.CFArrayRef
- func CTFontCollectionCopyQueryDescriptors(collection CTFontCollectionRef) corefoundation.CFArrayRef
- func CTFontCollectionCreateMatchingFontDescriptors(collection CTFontCollectionRef) corefoundation.CFArrayRef
- func CTFontCollectionCreateMatchingFontDescriptorsForFamily(collection CTFontCollectionRef, familyName corefoundation.CFStringRef, ...) corefoundation.CFArrayRef
- func CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(collection CTFontCollectionRef, ...) corefoundation.CFArrayRef
- func CTFontCollectionCreateMatchingFontDescriptorsWithOptions(collection CTFontCollectionRef, options corefoundation.CFDictionaryRef) corefoundation.CFArrayRef
- func CTFontCollectionGetTypeID() uint
- func CTFontCollectionSetExclusionDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef)
- func CTFontCollectionSetQueryDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef)
- func CTFontCopyAttribute(font CTFontRef, attribute corefoundation.CFStringRef) corefoundation.CFTypeRef
- func CTFontCopyAvailableTables(font CTFontRef, options CTFontTableOptions) corefoundation.CFArrayRef
- func CTFontCopyCharacterSet(font CTFontRef) corefoundation.CFCharacterSet
- func CTFontCopyDefaultCascadeListForLanguages(font CTFontRef, languagePrefList corefoundation.CFArrayRef) corefoundation.CFArrayRef
- func CTFontCopyDisplayName(font CTFontRef) corefoundation.CFStringRef
- func CTFontCopyFamilyName(font CTFontRef) corefoundation.CFStringRef
- func CTFontCopyFeatureSettings(font CTFontRef) corefoundation.CFArrayRef
- func CTFontCopyFeatures(font CTFontRef) corefoundation.CFArrayRef
- func CTFontCopyFullName(font CTFontRef) corefoundation.CFStringRef
- func CTFontCopyGraphicsFont(font CTFontRef, attributes *CTFontDescriptorRef) coregraphics.CGFont
- func CTFontCopyLocalizedName(font CTFontRef, nameKey corefoundation.CFStringRef, ...) corefoundation.CFStringRef
- func CTFontCopyName(font CTFontRef, nameKey corefoundation.CFStringRef) corefoundation.CFStringRef
- func CTFontCopyNameForGlyph(font CTFontRef, glyph uint16) corefoundation.CFStringRef
- func CTFontCopyPostScriptName(font CTFontRef) corefoundation.CFStringRef
- func CTFontCopySupportedLanguages(font CTFontRef) corefoundation.CFArrayRef
- func CTFontCopyTable(font CTFontRef, table CTFontTableTag, options CTFontTableOptions) corefoundation.CFDataRef
- func CTFontCopyTraits(font CTFontRef) corefoundation.CFDictionaryRef
- func CTFontCopyVariation(font CTFontRef) corefoundation.CFDictionaryRef
- func CTFontCopyVariationAxes(font CTFontRef) corefoundation.CFArrayRef
- func CTFontCreatePathForGlyph(font CTFontRef, glyph uint16, matrix *corefoundation.CGAffineTransform) coregraphics.CGPathRef
- func CTFontDescriptorCopyAttribute(descriptor CTFontDescriptorRef, attribute corefoundation.CFStringRef) corefoundation.CFTypeRef
- func CTFontDescriptorCopyAttributes(descriptor CTFontDescriptorRef) corefoundation.CFDictionaryRef
- func CTFontDescriptorCopyLocalizedAttribute(descriptor CTFontDescriptorRef, attribute corefoundation.CFStringRef, ...) corefoundation.CFTypeRef
- func CTFontDescriptorCreateMatchingFontDescriptors(descriptor CTFontDescriptorRef, mandatoryAttributes corefoundation.CFSetRef) corefoundation.CFArrayRef
- func CTFontDescriptorGetTypeID() uint
- func CTFontDescriptorMatchFontDescriptorsWithProgressHandler(descriptors corefoundation.CFArrayRef, ...) bool
- func CTFontDrawGlyphs(font CTFontRef, glyphs unsafe.Pointer, positions *corefoundation.CGPoint, ...)
- func CTFontDrawImageFromAdaptiveImageProviderAtPoint(font CTFontRef, provider CTAdaptiveImageProvidingObject, ...)
- func CTFontGetAdvancesForGlyphs(font CTFontRef, orientation CTFontOrientation, glyphs unsafe.Pointer, ...) float64
- func CTFontGetAscent(font CTFontRef) float64
- func CTFontGetBoundingBox(font CTFontRef) corefoundation.CGRect
- func CTFontGetBoundingRectsForGlyphs(font CTFontRef, orientation CTFontOrientation, glyphs unsafe.Pointer, ...) corefoundation.CGRect
- func CTFontGetCapHeight(font CTFontRef) float64
- func CTFontGetDescent(font CTFontRef) float64
- func CTFontGetGlyphCount(font CTFontRef) int
- func CTFontGetGlyphWithName(font CTFontRef, glyphName corefoundation.CFStringRef) uint16
- func CTFontGetGlyphsForCharacters(font CTFontRef, characters *uint16, glyphs unsafe.Pointer, count int) bool
- func CTFontGetLeading(font CTFontRef) float64
- func CTFontGetLigatureCaretPositions(font CTFontRef, glyph uint16, positions *float64, maxPositions int) int
- func CTFontGetMatrix(font CTFontRef) corefoundation.CGAffineTransform
- func CTFontGetOpticalBoundsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, boundingRects *corefoundation.CGRect, ...) corefoundation.CGRect
- func CTFontGetSize(font CTFontRef) float64
- func CTFontGetSlantAngle(font CTFontRef) float64
- func CTFontGetStringEncoding(font CTFontRef) uint32
- func CTFontGetTypeID() uint
- func CTFontGetTypographicBoundsForAdaptiveImageProvider(font CTFontRef, provider CTAdaptiveImageProvidingObject) corefoundation.CGRect
- func CTFontGetUnderlinePosition(font CTFontRef) float64
- func CTFontGetUnderlineThickness(font CTFontRef) float64
- func CTFontGetUnitsPerEm(font CTFontRef) uint32
- func CTFontGetVerticalTranslationsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, translations *corefoundation.CGSize, ...)
- func CTFontGetXHeight(font CTFontRef) float64
- func CTFontHasTable(font CTFontRef, tag CTFontTableTag) bool
- func CTFontManagerCompareFontFamilyNames(family1 unsafe.Pointer, family2 unsafe.Pointer, context unsafe.Pointer) corefoundation.CFComparisonResult
- func CTFontManagerCopyAvailableFontFamilyNames() corefoundation.CFArrayRef
- func CTFontManagerCopyAvailableFontURLs() corefoundation.CFArrayRef
- func CTFontManagerCopyAvailablePostScriptNames() corefoundation.CFArrayRef
- func CTFontManagerCreateFontDescriptorsFromData(data corefoundation.CFDataRef) corefoundation.CFArrayRef
- func CTFontManagerCreateFontDescriptorsFromURL(fileURL corefoundation.CFURLRef) corefoundation.CFArrayRef
- func CTFontManagerCreateFontRequestRunLoopSource(sourceOrder int, createMatchesCallback corefoundation.CFArrayRef) corefoundation.CFRunLoopSourceRefdeprecated
- func CTFontManagerEnableFontDescriptors(descriptors corefoundation.CFArrayRef, enable bool)
- func CTFontManagerIsSupportedFont(fontURL corefoundation.CFURLRef) bool
- func CTFontManagerRegisterFontDescriptors(fontDescriptors corefoundation.CFArrayRef, scope CTFontManagerScope, ...)
- func CTFontManagerRegisterFontURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, enabled bool, ...)
- func CTFontManagerRegisterFontsForURL(fontURL corefoundation.CFURLRef, scope CTFontManagerScope, ...) bool
- func CTFontManagerRegisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, ...) booldeprecated
- func CTFontManagerRegisterGraphicsFont(font coregraphics.CGFont, err *corefoundation.CFErrorRef) booldeprecated
- func CTFontManagerSetAutoActivationSetting(bundleIdentifier corefoundation.CFStringRef, ...)
- func CTFontManagerUnregisterFontDescriptors(fontDescriptors corefoundation.CFArrayRef, scope CTFontManagerScope, ...)
- func CTFontManagerUnregisterFontURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, ...)
- func CTFontManagerUnregisterFontsForURL(fontURL corefoundation.CFURLRef, scope CTFontManagerScope, ...) bool
- func CTFontManagerUnregisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, ...) booldeprecated
- func CTFontManagerUnregisterGraphicsFont(font coregraphics.CGFont, err *corefoundation.CFErrorRef) booldeprecated
- func CTFrameDraw(frame CTFrameRef, context coregraphics.CGContextRef)
- func CTFrameGetFrameAttributes(frame CTFrameRef) corefoundation.CFDictionaryRef
- func CTFrameGetLineOrigins(frame CTFrameRef, range_ corefoundation.CFRange, ...)
- func CTFrameGetLines(frame CTFrameRef) corefoundation.CFArrayRef
- func CTFrameGetPath(frame CTFrameRef) coregraphics.CGPathRef
- func CTFrameGetStringRange(frame CTFrameRef) corefoundation.CFRange
- func CTFrameGetTypeID() uint
- func CTFrameGetVisibleStringRange(frame CTFrameRef) corefoundation.CFRange
- func CTFramesetterGetTypeID() uint
- func CTFramesetterSuggestFrameSizeWithConstraints(framesetter CTFramesetterRef, stringRange corefoundation.CFRange, ...) corefoundation.CGSize
- func CTGetCoreTextVersion() uint32deprecated
- func CTGlyphInfoGetCharacterIdentifier(glyphInfo CTGlyphInfoRef) uint16
- func CTGlyphInfoGetGlyph(glyphInfo CTGlyphInfoRef) uint16
- func CTGlyphInfoGetGlyphName(glyphInfo CTGlyphInfoRef) corefoundation.CFStringRef
- func CTGlyphInfoGetTypeID() uint
- func CTLineDraw(line CTLineRef, context coregraphics.CGContextRef)
- func CTLineEnumerateCaretOffsets(line CTLineRef)
- func CTLineGetBoundsWithOptions(line CTLineRef, options CTLineBoundsOptions) corefoundation.CGRect
- func CTLineGetGlyphCount(line CTLineRef) int
- func CTLineGetGlyphRuns(line CTLineRef) corefoundation.CFArrayRef
- func CTLineGetImageBounds(line CTLineRef, context coregraphics.CGContextRef) corefoundation.CGRect
- func CTLineGetOffsetForStringIndex(line CTLineRef, charIndex int, secondaryOffset *float64) float64
- func CTLineGetPenOffsetForFlush(line CTLineRef, flushFactor float64, flushWidth float64) float64
- func CTLineGetStringIndexForPosition(line CTLineRef, position corefoundation.CGPoint) int
- func CTLineGetStringRange(line CTLineRef) corefoundation.CFRange
- func CTLineGetTrailingWhitespaceWidth(line CTLineRef) float64
- func CTLineGetTypeID() uint
- func CTLineGetTypographicBounds(line CTLineRef, ascent *float64, descent *float64, leading *float64) float64
- func CTParagraphStyleGetTypeID() uint
- func CTParagraphStyleGetValueForSpecifier(paragraphStyle CTParagraphStyleRef, spec CTParagraphStyleSpecifier, ...) bool
- func CTRubyAnnotationGetSizeFactor(rubyAnnotation CTRubyAnnotationRef) float64
- func CTRubyAnnotationGetTextForPosition(rubyAnnotation CTRubyAnnotationRef, position CTRubyPosition) corefoundation.CFStringRef
- func CTRubyAnnotationGetTypeID() uint
- func CTRunDelegateGetRefCon(runDelegate CTRunDelegateRef) unsafe.Pointer
- func CTRunDelegateGetTypeID() uint
- func CTRunDraw(run CTRunRef, context coregraphics.CGContextRef, range_ corefoundation.CFRange)
- func CTRunGetAdvances(run CTRunRef, range_ corefoundation.CFRange, buffer *corefoundation.CGSize)
- func CTRunGetAdvancesPtr(run CTRunRef) *corefoundation.CGSize
- func CTRunGetAttributes(run CTRunRef) corefoundation.CFDictionaryRef
- func CTRunGetBaseAdvancesAndOrigins(runRef CTRunRef, range_ corefoundation.CFRange, ...)
- func CTRunGetGlyphCount(run CTRunRef) int
- func CTRunGetGlyphs(run CTRunRef, range_ corefoundation.CFRange, buffer unsafe.Pointer)
- func CTRunGetGlyphsPtr(run CTRunRef) unsafe.Pointer
- func CTRunGetImageBounds(run CTRunRef, context coregraphics.CGContextRef, range_ corefoundation.CFRange) corefoundation.CGRect
- func CTRunGetPositions(run CTRunRef, range_ corefoundation.CFRange, buffer *corefoundation.CGPoint)
- func CTRunGetPositionsPtr(run CTRunRef) *corefoundation.CGPoint
- func CTRunGetStringIndices(run CTRunRef, range_ corefoundation.CFRange, buffer *int)
- func CTRunGetStringIndicesPtr(run CTRunRef) *int
- func CTRunGetStringRange(run CTRunRef) corefoundation.CFRange
- func CTRunGetTextMatrix(run CTRunRef) corefoundation.CGAffineTransform
- func CTRunGetTypeID() uint
- func CTRunGetTypographicBounds(run CTRunRef, range_ corefoundation.CFRange, ascent *float64, descent *float64, ...) float64
- func CTTextTabGetLocation(tab CTTextTabRef) float64
- func CTTextTabGetOptions(tab CTTextTabRef) corefoundation.CFDictionaryRef
- func CTTextTabGetTypeID() uint
- func CTTypesetterGetTypeID() uint
- func CTTypesetterSuggestClusterBreak(typesetter CTTypesetterRef, startIndex int, width float64) int
- func CTTypesetterSuggestClusterBreakWithOffset(typesetter CTTypesetterRef, startIndex int, width float64, offset float64) int
- func CTTypesetterSuggestLineBreak(typesetter CTTypesetterRef, startIndex int, width float64) int
- func CTTypesetterSuggestLineBreakWithOffset(typesetter CTTypesetterRef, startIndex int, width float64, offset float64) int
- func SymbolAddress(name string) (uintptr, error)
- func TryCTFontCollectionCopyExclusionDescriptors(collection CTFontCollectionRef) (corefoundation.CFArrayRef, error)
- func TryCTFontCollectionCopyFontAttribute(collection CTFontCollectionRef, attributeName corefoundation.CFStringRef, ...) (corefoundation.CFArrayRef, error)
- func TryCTFontCollectionCopyFontAttributes(collection CTFontCollectionRef, attributeNames corefoundation.CFSetRef, ...) (corefoundation.CFArrayRef, error)
- func TryCTFontCollectionCopyQueryDescriptors(collection CTFontCollectionRef) (corefoundation.CFArrayRef, error)
- func TryCTFontCollectionCreateMatchingFontDescriptors(collection CTFontCollectionRef) (corefoundation.CFArrayRef, error)
- func TryCTFontCollectionCreateMatchingFontDescriptorsForFamily(collection CTFontCollectionRef, familyName corefoundation.CFStringRef, ...) (corefoundation.CFArrayRef, error)
- func TryCTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(collection CTFontCollectionRef, ...) (corefoundation.CFArrayRef, error)
- func TryCTFontCollectionCreateMatchingFontDescriptorsWithOptions(collection CTFontCollectionRef, options corefoundation.CFDictionaryRef) (corefoundation.CFArrayRef, error)
- func TryCTFontCollectionGetTypeID() (uint, error)
- func TryCTFontCollectionSetExclusionDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef) error
- func TryCTFontCollectionSetQueryDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef) error
- func TryCTFontCopyAttribute(font CTFontRef, attribute corefoundation.CFStringRef) (corefoundation.CFTypeRef, error)
- func TryCTFontCopyAvailableTables(font CTFontRef, options CTFontTableOptions) (corefoundation.CFArrayRef, error)
- func TryCTFontCopyCharacterSet(font CTFontRef) (corefoundation.CFCharacterSet, error)
- func TryCTFontCopyDefaultCascadeListForLanguages(font CTFontRef, languagePrefList corefoundation.CFArrayRef) (corefoundation.CFArrayRef, error)
- func TryCTFontCopyDisplayName(font CTFontRef) (corefoundation.CFStringRef, error)
- func TryCTFontCopyFamilyName(font CTFontRef) (corefoundation.CFStringRef, error)
- func TryCTFontCopyFeatureSettings(font CTFontRef) (corefoundation.CFArrayRef, error)
- func TryCTFontCopyFeatures(font CTFontRef) (corefoundation.CFArrayRef, error)
- func TryCTFontCopyFullName(font CTFontRef) (corefoundation.CFStringRef, error)
- func TryCTFontCopyGraphicsFont(font CTFontRef, attributes *CTFontDescriptorRef) (coregraphics.CGFont, error)
- func TryCTFontCopyLocalizedName(font CTFontRef, nameKey corefoundation.CFStringRef, ...) (corefoundation.CFStringRef, error)
- func TryCTFontCopyName(font CTFontRef, nameKey corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
- func TryCTFontCopyNameForGlyph(font CTFontRef, glyph uint16) (corefoundation.CFStringRef, error)
- func TryCTFontCopyPostScriptName(font CTFontRef) (corefoundation.CFStringRef, error)
- func TryCTFontCopySupportedLanguages(font CTFontRef) (corefoundation.CFArrayRef, error)
- func TryCTFontCopyTable(font CTFontRef, table CTFontTableTag, options CTFontTableOptions) (corefoundation.CFDataRef, error)
- func TryCTFontCopyTraits(font CTFontRef) (corefoundation.CFDictionaryRef, error)
- func TryCTFontCopyVariation(font CTFontRef) (corefoundation.CFDictionaryRef, error)
- func TryCTFontCopyVariationAxes(font CTFontRef) (corefoundation.CFArrayRef, error)
- func TryCTFontCreatePathForGlyph(font CTFontRef, glyph uint16, matrix *corefoundation.CGAffineTransform) (coregraphics.CGPathRef, error)
- func TryCTFontDescriptorCopyAttribute(descriptor CTFontDescriptorRef, attribute corefoundation.CFStringRef) (corefoundation.CFTypeRef, error)
- func TryCTFontDescriptorCopyAttributes(descriptor CTFontDescriptorRef) (corefoundation.CFDictionaryRef, error)
- func TryCTFontDescriptorCopyLocalizedAttribute(descriptor CTFontDescriptorRef, attribute corefoundation.CFStringRef, ...) (corefoundation.CFTypeRef, error)
- func TryCTFontDescriptorCreateMatchingFontDescriptors(descriptor CTFontDescriptorRef, mandatoryAttributes corefoundation.CFSetRef) (corefoundation.CFArrayRef, error)
- func TryCTFontDescriptorGetTypeID() (uint, error)
- func TryCTFontDescriptorMatchFontDescriptorsWithProgressHandler(descriptors corefoundation.CFArrayRef, ...) (bool, error)
- func TryCTFontDrawGlyphs(font CTFontRef, glyphs unsafe.Pointer, positions *corefoundation.CGPoint, ...) error
- func TryCTFontDrawImageFromAdaptiveImageProviderAtPoint(font CTFontRef, provider CTAdaptiveImageProvidingObject, ...) error
- func TryCTFontGetAdvancesForGlyphs(font CTFontRef, orientation CTFontOrientation, glyphs unsafe.Pointer, ...) (float64, error)
- func TryCTFontGetAscent(font CTFontRef) (float64, error)
- func TryCTFontGetBoundingBox(font CTFontRef) (corefoundation.CGRect, error)
- func TryCTFontGetBoundingRectsForGlyphs(font CTFontRef, orientation CTFontOrientation, glyphs unsafe.Pointer, ...) (corefoundation.CGRect, error)
- func TryCTFontGetCapHeight(font CTFontRef) (float64, error)
- func TryCTFontGetDescent(font CTFontRef) (float64, error)
- func TryCTFontGetGlyphCount(font CTFontRef) (int, error)
- func TryCTFontGetGlyphWithName(font CTFontRef, glyphName corefoundation.CFStringRef) (uint16, error)
- func TryCTFontGetGlyphsForCharacters(font CTFontRef, characters *uint16, glyphs unsafe.Pointer, count int) (bool, error)
- func TryCTFontGetLeading(font CTFontRef) (float64, error)
- func TryCTFontGetLigatureCaretPositions(font CTFontRef, glyph uint16, positions *float64, maxPositions int) (int, error)
- func TryCTFontGetMatrix(font CTFontRef) (corefoundation.CGAffineTransform, error)
- func TryCTFontGetOpticalBoundsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, boundingRects *corefoundation.CGRect, ...) (corefoundation.CGRect, error)
- func TryCTFontGetSize(font CTFontRef) (float64, error)
- func TryCTFontGetSlantAngle(font CTFontRef) (float64, error)
- func TryCTFontGetStringEncoding(font CTFontRef) (uint32, error)
- func TryCTFontGetTypeID() (uint, error)
- func TryCTFontGetTypographicBoundsForAdaptiveImageProvider(font CTFontRef, provider CTAdaptiveImageProvidingObject) (corefoundation.CGRect, error)
- func TryCTFontGetUnderlinePosition(font CTFontRef) (float64, error)
- func TryCTFontGetUnderlineThickness(font CTFontRef) (float64, error)
- func TryCTFontGetUnitsPerEm(font CTFontRef) (uint32, error)
- func TryCTFontGetVerticalTranslationsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, translations *corefoundation.CGSize, ...) error
- func TryCTFontGetXHeight(font CTFontRef) (float64, error)
- func TryCTFontHasTable(font CTFontRef, tag CTFontTableTag) (bool, error)
- func TryCTFontManagerCompareFontFamilyNames(family1 unsafe.Pointer, family2 unsafe.Pointer, context unsafe.Pointer) (corefoundation.CFComparisonResult, error)
- func TryCTFontManagerCopyAvailableFontFamilyNames() (corefoundation.CFArrayRef, error)
- func TryCTFontManagerCopyAvailableFontURLs() (corefoundation.CFArrayRef, error)
- func TryCTFontManagerCopyAvailablePostScriptNames() (corefoundation.CFArrayRef, error)
- func TryCTFontManagerCreateFontDescriptorsFromData(data corefoundation.CFDataRef) (corefoundation.CFArrayRef, error)
- func TryCTFontManagerCreateFontDescriptorsFromURL(fileURL corefoundation.CFURLRef) (corefoundation.CFArrayRef, error)
- func TryCTFontManagerCreateFontRequestRunLoopSource(sourceOrder int, createMatchesCallback corefoundation.CFArrayRef) (corefoundation.CFRunLoopSourceRef, error)
- func TryCTFontManagerEnableFontDescriptors(descriptors corefoundation.CFArrayRef, enable bool) error
- func TryCTFontManagerIsSupportedFont(fontURL corefoundation.CFURLRef) (bool, error)
- func TryCTFontManagerRegisterFontDescriptors(fontDescriptors corefoundation.CFArrayRef, scope CTFontManagerScope, ...) error
- func TryCTFontManagerRegisterFontURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, enabled bool, ...) error
- func TryCTFontManagerRegisterFontsForURL(fontURL corefoundation.CFURLRef, scope CTFontManagerScope, ...) (bool, error)
- func TryCTFontManagerRegisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, ...) (bool, error)
- func TryCTFontManagerRegisterGraphicsFont(font coregraphics.CGFont, err *corefoundation.CFErrorRef) (bool, error)
- func TryCTFontManagerSetAutoActivationSetting(bundleIdentifier corefoundation.CFStringRef, ...) error
- func TryCTFontManagerUnregisterFontDescriptors(fontDescriptors corefoundation.CFArrayRef, scope CTFontManagerScope, ...) error
- func TryCTFontManagerUnregisterFontURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, ...) error
- func TryCTFontManagerUnregisterFontsForURL(fontURL corefoundation.CFURLRef, scope CTFontManagerScope, ...) (bool, error)
- func TryCTFontManagerUnregisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, ...) (bool, error)
- func TryCTFontManagerUnregisterGraphicsFont(font coregraphics.CGFont, err *corefoundation.CFErrorRef) (bool, error)
- func TryCTFrameDraw(frame CTFrameRef, context coregraphics.CGContextRef) error
- func TryCTFrameGetFrameAttributes(frame CTFrameRef) (corefoundation.CFDictionaryRef, error)
- func TryCTFrameGetLineOrigins(frame CTFrameRef, range_ corefoundation.CFRange, ...) error
- func TryCTFrameGetLines(frame CTFrameRef) (corefoundation.CFArrayRef, error)
- func TryCTFrameGetPath(frame CTFrameRef) (coregraphics.CGPathRef, error)
- func TryCTFrameGetStringRange(frame CTFrameRef) (corefoundation.CFRange, error)
- func TryCTFrameGetTypeID() (uint, error)
- func TryCTFrameGetVisibleStringRange(frame CTFrameRef) (corefoundation.CFRange, error)
- func TryCTFramesetterGetTypeID() (uint, error)
- func TryCTFramesetterSuggestFrameSizeWithConstraints(framesetter CTFramesetterRef, stringRange corefoundation.CFRange, ...) (corefoundation.CGSize, error)
- func TryCTGetCoreTextVersion() (uint32, error)
- func TryCTGlyphInfoGetCharacterIdentifier(glyphInfo CTGlyphInfoRef) (uint16, error)
- func TryCTGlyphInfoGetGlyph(glyphInfo CTGlyphInfoRef) (uint16, error)
- func TryCTGlyphInfoGetGlyphName(glyphInfo CTGlyphInfoRef) (corefoundation.CFStringRef, error)
- func TryCTGlyphInfoGetTypeID() (uint, error)
- func TryCTLineDraw(line CTLineRef, context coregraphics.CGContextRef) error
- func TryCTLineEnumerateCaretOffsets(line CTLineRef) error
- func TryCTLineGetBoundsWithOptions(line CTLineRef, options CTLineBoundsOptions) (corefoundation.CGRect, error)
- func TryCTLineGetGlyphCount(line CTLineRef) (int, error)
- func TryCTLineGetGlyphRuns(line CTLineRef) (corefoundation.CFArrayRef, error)
- func TryCTLineGetImageBounds(line CTLineRef, context coregraphics.CGContextRef) (corefoundation.CGRect, error)
- func TryCTLineGetOffsetForStringIndex(line CTLineRef, charIndex int, secondaryOffset *float64) (float64, error)
- func TryCTLineGetPenOffsetForFlush(line CTLineRef, flushFactor float64, flushWidth float64) (float64, error)
- func TryCTLineGetStringIndexForPosition(line CTLineRef, position corefoundation.CGPoint) (int, error)
- func TryCTLineGetStringRange(line CTLineRef) (corefoundation.CFRange, error)
- func TryCTLineGetTrailingWhitespaceWidth(line CTLineRef) (float64, error)
- func TryCTLineGetTypeID() (uint, error)
- func TryCTLineGetTypographicBounds(line CTLineRef, ascent *float64, descent *float64, leading *float64) (float64, error)
- func TryCTParagraphStyleGetTypeID() (uint, error)
- func TryCTParagraphStyleGetValueForSpecifier(paragraphStyle CTParagraphStyleRef, spec CTParagraphStyleSpecifier, ...) (bool, error)
- func TryCTRubyAnnotationGetSizeFactor(rubyAnnotation CTRubyAnnotationRef) (float64, error)
- func TryCTRubyAnnotationGetTextForPosition(rubyAnnotation CTRubyAnnotationRef, position CTRubyPosition) (corefoundation.CFStringRef, error)
- func TryCTRubyAnnotationGetTypeID() (uint, error)
- func TryCTRunDelegateGetRefCon(runDelegate CTRunDelegateRef) (unsafe.Pointer, error)
- func TryCTRunDelegateGetTypeID() (uint, error)
- func TryCTRunDraw(run CTRunRef, context coregraphics.CGContextRef, range_ corefoundation.CFRange) error
- func TryCTRunGetAdvances(run CTRunRef, range_ corefoundation.CFRange, buffer *corefoundation.CGSize) error
- func TryCTRunGetAdvancesPtr(run CTRunRef) (*corefoundation.CGSize, error)
- func TryCTRunGetAttributes(run CTRunRef) (corefoundation.CFDictionaryRef, error)
- func TryCTRunGetBaseAdvancesAndOrigins(runRef CTRunRef, range_ corefoundation.CFRange, ...) error
- func TryCTRunGetGlyphCount(run CTRunRef) (int, error)
- func TryCTRunGetGlyphs(run CTRunRef, range_ corefoundation.CFRange, buffer unsafe.Pointer) error
- func TryCTRunGetGlyphsPtr(run CTRunRef) (unsafe.Pointer, error)
- func TryCTRunGetImageBounds(run CTRunRef, context coregraphics.CGContextRef, range_ corefoundation.CFRange) (corefoundation.CGRect, error)
- func TryCTRunGetPositions(run CTRunRef, range_ corefoundation.CFRange, buffer *corefoundation.CGPoint) error
- func TryCTRunGetPositionsPtr(run CTRunRef) (*corefoundation.CGPoint, error)
- func TryCTRunGetStringIndices(run CTRunRef, range_ corefoundation.CFRange, buffer *int) error
- func TryCTRunGetStringIndicesPtr(run CTRunRef) (*int, error)
- func TryCTRunGetStringRange(run CTRunRef) (corefoundation.CFRange, error)
- func TryCTRunGetTextMatrix(run CTRunRef) (corefoundation.CGAffineTransform, error)
- func TryCTRunGetTypeID() (uint, error)
- func TryCTRunGetTypographicBounds(run CTRunRef, range_ corefoundation.CFRange, ascent *float64, descent *float64, ...) (float64, error)
- func TryCTTextTabGetLocation(tab CTTextTabRef) (float64, error)
- func TryCTTextTabGetOptions(tab CTTextTabRef) (corefoundation.CFDictionaryRef, error)
- func TryCTTextTabGetTypeID() (uint, error)
- func TryCTTypesetterGetTypeID() (uint, error)
- func TryCTTypesetterSuggestClusterBreak(typesetter CTTypesetterRef, startIndex int, width float64) (int, error)
- func TryCTTypesetterSuggestClusterBreakWithOffset(typesetter CTTypesetterRef, startIndex int, width float64, offset float64) (int, error)
- func TryCTTypesetterSuggestLineBreak(typesetter CTTypesetterRef, startIndex int, width float64) (int, error)
- func TryCTTypesetterSuggestLineBreakWithOffset(typesetter CTTypesetterRef, startIndex int, width float64, offset float64) (int, error)
- type ALMXGlyphEntry
- type ALMXHeader
- func (s *ALMXHeader) FirstGlyph() uint16
- func (s *ALMXHeader) Flags() uint16
- func (s *ALMXHeader) LastGlyph() uint16
- func (s *ALMXHeader) Lookup() SFNTLookupTable
- func (s *ALMXHeader) NMasters() uint16
- func (s *ALMXHeader) SetFirstGlyph(v uint16)
- func (s *ALMXHeader) SetFlags(v uint16)
- func (s *ALMXHeader) SetLastGlyph(v uint16)
- func (s *ALMXHeader) SetLookup(v SFNTLookupTable)
- func (s *ALMXHeader) SetNMasters(v uint16)
- func (s *ALMXHeader) SetVersion(v int32)
- func (s *ALMXHeader) Version() int32
- type ATSFontRef
- type AnchorPoint
- type AnchorPointTable
- type AnkrTable
- func (s *AnkrTable) AnchorPointTableOffset() uint32
- func (s *AnkrTable) Flags() uint16
- func (s *AnkrTable) LookupTableOffset() uint32
- func (s *AnkrTable) SetAnchorPointTableOffset(v uint32)
- func (s *AnkrTable) SetFlags(v uint16)
- func (s *AnkrTable) SetLookupTableOffset(v uint32)
- func (s *AnkrTable) SetVersion(v uint16)
- func (s *AnkrTable) Version() uint16
- type BslnBaselineClass
- type BslnBaselineRecord
- type BslnFormat0Part
- type BslnFormat1Part
- type BslnFormat2Part
- type BslnFormat3Part
- type BslnFormatUnion
- type BslnTable
- func (s *BslnTable) DefaultBaseline() uint16
- func (s *BslnTable) Format() BslnTableFormat
- func (s *BslnTable) Parts() BslnFormatUnion
- func (s *BslnTable) SetDefaultBaseline(v uint16)
- func (s *BslnTable) SetFormat(v BslnTableFormat)
- func (s *BslnTable) SetParts(v BslnFormatUnion)
- func (s *BslnTable) SetVersion(v int32)
- func (s *BslnTable) Version() int32
- type BslnTableFormat
- type BslnTablePtr
- type CTAdaptiveImageProviding
- type CTAdaptiveImageProvidingObject
- type CTCharacterCollection
- type CTFontCollectionCopyOptions
- type CTFontCollectionRef
- func CTFontCollectionCreateCopyWithFontDescriptors(original CTFontCollectionRef, queryDescriptors corefoundation.CFArrayRef, ...) CTFontCollectionRef
- func CTFontCollectionCreateFromAvailableFonts(options corefoundation.CFDictionaryRef) CTFontCollectionRef
- func CTFontCollectionCreateWithFontDescriptors(queryDescriptors corefoundation.CFArrayRef, ...) CTFontCollectionRef
- func TryCTFontCollectionCreateCopyWithFontDescriptors(original CTFontCollectionRef, queryDescriptors corefoundation.CFArrayRef, ...) (CTFontCollectionRef, error)
- func TryCTFontCollectionCreateFromAvailableFonts(options corefoundation.CFDictionaryRef) (CTFontCollectionRef, error)
- func TryCTFontCollectionCreateWithFontDescriptors(queryDescriptors corefoundation.CFArrayRef, ...) (CTFontCollectionRef, error)
- type CTFontCollectionSortDescriptorsCallback
- type CTFontDescriptorMatchingState
- type CTFontDescriptorProgressHandler
- type CTFontDescriptorRef
- func CTFontCopyFontDescriptor(font CTFontRef) CTFontDescriptorRef
- func CTFontDescriptorCreateCopyWithAttributes(original CTFontDescriptorRef, attributes corefoundation.CFDictionaryRef) CTFontDescriptorRef
- func CTFontDescriptorCreateCopyWithFamily(original CTFontDescriptorRef, family corefoundation.CFStringRef) CTFontDescriptorRef
- func CTFontDescriptorCreateCopyWithFeature(original CTFontDescriptorRef, featureTypeIdentifier corefoundation.CFNumberRef, ...) CTFontDescriptorRef
- func CTFontDescriptorCreateCopyWithSymbolicTraits(original CTFontDescriptorRef, symTraitValue CTFontSymbolicTraits, ...) CTFontDescriptorRef
- func CTFontDescriptorCreateCopyWithVariation(original CTFontDescriptorRef, variationIdentifier corefoundation.CFNumberRef, ...) CTFontDescriptorRef
- func CTFontDescriptorCreateMatchingFontDescriptor(descriptor CTFontDescriptorRef, mandatoryAttributes corefoundation.CFSetRef) CTFontDescriptorRef
- func CTFontDescriptorCreateWithAttributes(attributes corefoundation.CFDictionaryRef) CTFontDescriptorRef
- func CTFontDescriptorCreateWithNameAndSize(name corefoundation.CFStringRef, size float64) CTFontDescriptorRef
- func CTFontManagerCreateFontDescriptorFromData(data corefoundation.CFDataRef) CTFontDescriptorRef
- func TryCTFontCopyFontDescriptor(font CTFontRef) (CTFontDescriptorRef, error)
- func TryCTFontDescriptorCreateCopyWithAttributes(original CTFontDescriptorRef, attributes corefoundation.CFDictionaryRef) (CTFontDescriptorRef, error)
- func TryCTFontDescriptorCreateCopyWithFamily(original CTFontDescriptorRef, family corefoundation.CFStringRef) (CTFontDescriptorRef, error)
- func TryCTFontDescriptorCreateCopyWithFeature(original CTFontDescriptorRef, featureTypeIdentifier corefoundation.CFNumberRef, ...) (CTFontDescriptorRef, error)
- func TryCTFontDescriptorCreateCopyWithSymbolicTraits(original CTFontDescriptorRef, symTraitValue CTFontSymbolicTraits, ...) (CTFontDescriptorRef, error)
- func TryCTFontDescriptorCreateCopyWithVariation(original CTFontDescriptorRef, variationIdentifier corefoundation.CFNumberRef, ...) (CTFontDescriptorRef, error)
- func TryCTFontDescriptorCreateMatchingFontDescriptor(descriptor CTFontDescriptorRef, mandatoryAttributes corefoundation.CFSetRef) (CTFontDescriptorRef, error)
- func TryCTFontDescriptorCreateWithAttributes(attributes corefoundation.CFDictionaryRef) (CTFontDescriptorRef, error)
- func TryCTFontDescriptorCreateWithNameAndSize(name corefoundation.CFStringRef, size float64) (CTFontDescriptorRef, error)
- func TryCTFontManagerCreateFontDescriptorFromData(data corefoundation.CFDataRef) (CTFontDescriptorRef, error)
- type CTFontFormat
- type CTFontManagerAutoActivationSetting
- type CTFontManagerError
- type CTFontManagerScope
- type CTFontOptions
- type CTFontOrientation
- type CTFontPriority
- type CTFontRef
- func CTFontCreateCopyWithAttributes(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, ...) CTFontRef
- func CTFontCreateCopyWithFamily(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, ...) CTFontRef
- func CTFontCreateCopyWithSymbolicTraits(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, ...) CTFontRef
- func CTFontCreateForString(currentFont CTFontRef, string_ corefoundation.CFStringRef, ...) CTFontRef
- func CTFontCreateForStringWithLanguage(currentFont CTFontRef, string_ corefoundation.CFStringRef, ...) CTFontRef
- func CTFontCreateUIFontForLanguage(uiType CTFontUIFontType, size float64, language corefoundation.CFStringRef) CTFontRef
- func CTFontCreateWithFontDescriptor(descriptor CTFontDescriptorRef, size float64, ...) CTFontRef
- func CTFontCreateWithFontDescriptorAndOptions(descriptor CTFontDescriptorRef, size float64, ...) CTFontRef
- func CTFontCreateWithGraphicsFont(graphicsFont coregraphics.CGFont, size float64, ...) CTFontRef
- func CTFontCreateWithName(name corefoundation.CFStringRef, size float64, ...) CTFontRef
- func CTFontCreateWithNameAndOptions(name corefoundation.CFStringRef, size float64, ...) CTFontRef
- func CTFontCreateWithPlatformFont(platformFont ATSFontRef, size float64, ...) CTFontRefdeprecated
- func CTFontCreateWithQuickdrawInstance(name unsafe.Pointer, identifier int16, style uint8, size float64) CTFontRefdeprecated
- func TryCTFontCreateCopyWithAttributes(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, ...) (CTFontRef, error)
- func TryCTFontCreateCopyWithFamily(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, ...) (CTFontRef, error)
- func TryCTFontCreateCopyWithSymbolicTraits(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, ...) (CTFontRef, error)
- func TryCTFontCreateForString(currentFont CTFontRef, string_ corefoundation.CFStringRef, ...) (CTFontRef, error)
- func TryCTFontCreateForStringWithLanguage(currentFont CTFontRef, string_ corefoundation.CFStringRef, ...) (CTFontRef, error)
- func TryCTFontCreateUIFontForLanguage(uiType CTFontUIFontType, size float64, language corefoundation.CFStringRef) (CTFontRef, error)
- func TryCTFontCreateWithFontDescriptor(descriptor CTFontDescriptorRef, size float64, ...) (CTFontRef, error)
- func TryCTFontCreateWithFontDescriptorAndOptions(descriptor CTFontDescriptorRef, size float64, ...) (CTFontRef, error)
- func TryCTFontCreateWithGraphicsFont(graphicsFont coregraphics.CGFont, size float64, ...) (CTFontRef, error)
- func TryCTFontCreateWithName(name corefoundation.CFStringRef, size float64, ...) (CTFontRef, error)
- func TryCTFontCreateWithNameAndOptions(name corefoundation.CFStringRef, size float64, ...) (CTFontRef, error)
- func TryCTFontCreateWithPlatformFont(platformFont ATSFontRef, size float64, ...) (CTFontRef, error)
- func TryCTFontCreateWithQuickdrawInstance(name unsafe.Pointer, identifier int16, style uint8, size float64) (CTFontRef, error)
- type CTFontStylisticClass
- type CTFontSymbolicTraits
- type CTFontTableOptions
- type CTFontTableTag
- type CTFontUIFontType
- type CTFramePathFillRule
- type CTFrameProgression
- type CTFrameRef
- type CTFramesetterRef
- func CTFramesetterCreateWithAttributedString(attrString corefoundation.CFAttributedStringRef) CTFramesetterRef
- func CTFramesetterCreateWithTypesetter(typesetter CTTypesetterRef) CTFramesetterRef
- func TryCTFramesetterCreateWithAttributedString(attrString corefoundation.CFAttributedStringRef) (CTFramesetterRef, error)
- func TryCTFramesetterCreateWithTypesetter(typesetter CTTypesetterRef) (CTFramesetterRef, error)
- type CTGlyphInfoRef
- func CTGlyphInfoCreateWithCharacterIdentifier(cid uint16, collection CTCharacterCollection, ...) CTGlyphInfoRef
- func CTGlyphInfoCreateWithGlyph(glyph uint16, font CTFontRef, baseString corefoundation.CFStringRef) CTGlyphInfoRef
- func CTGlyphInfoCreateWithGlyphName(glyphName corefoundation.CFStringRef, font CTFontRef, ...) CTGlyphInfoRef
- func TryCTGlyphInfoCreateWithCharacterIdentifier(cid uint16, collection CTCharacterCollection, ...) (CTGlyphInfoRef, error)
- func TryCTGlyphInfoCreateWithGlyph(glyph uint16, font CTFontRef, baseString corefoundation.CFStringRef) (CTGlyphInfoRef, error)
- func TryCTGlyphInfoCreateWithGlyphName(glyphName corefoundation.CFStringRef, font CTFontRef, ...) (CTGlyphInfoRef, error)
- type CTLineBoundsOptions
- type CTLineBreakMode
- type CTLineRef
- func CTLineCreateJustifiedLine(line CTLineRef, justificationFactor float64, justificationWidth float64) CTLineRef
- func CTLineCreateTruncatedLine(line CTLineRef, width float64, truncationType CTLineTruncationType, ...) CTLineRef
- func CTLineCreateWithAttributedString(attrString corefoundation.CFAttributedStringRef) CTLineRef
- func CTTypesetterCreateLine(typesetter CTTypesetterRef, stringRange corefoundation.CFRange) CTLineRef
- func CTTypesetterCreateLineWithOffset(typesetter CTTypesetterRef, stringRange corefoundation.CFRange, offset float64) CTLineRef
- func TryCTLineCreateJustifiedLine(line CTLineRef, justificationFactor float64, justificationWidth float64) (CTLineRef, error)
- func TryCTLineCreateTruncatedLine(line CTLineRef, width float64, truncationType CTLineTruncationType, ...) (CTLineRef, error)
- func TryCTLineCreateWithAttributedString(attrString corefoundation.CFAttributedStringRef) (CTLineRef, error)
- func TryCTTypesetterCreateLine(typesetter CTTypesetterRef, stringRange corefoundation.CFRange) (CTLineRef, error)
- func TryCTTypesetterCreateLineWithOffset(typesetter CTTypesetterRef, stringRange corefoundation.CFRange, offset float64) (CTLineRef, error)
- type CTLineTruncationType
- type CTMutableFontCollectionRef
- type CTParagraphStyleRef
- func CTParagraphStyleCreate(settings *CTParagraphStyleSetting, settingCount uintptr) CTParagraphStyleRef
- func CTParagraphStyleCreateCopy(paragraphStyle CTParagraphStyleRef) CTParagraphStyleRef
- func TryCTParagraphStyleCreate(settings *CTParagraphStyleSetting, settingCount uintptr) (CTParagraphStyleRef, error)
- func TryCTParagraphStyleCreateCopy(paragraphStyle CTParagraphStyleRef) (CTParagraphStyleRef, error)
- type CTParagraphStyleSetting
- type CTParagraphStyleSpecifier
- type CTRubyAlignment
- type CTRubyAnnotationRef
- func CTRubyAnnotationCreate(alignment CTRubyAlignment, overhang CTRubyOverhang, sizeFactor float64, ...) CTRubyAnnotationRef
- func CTRubyAnnotationCreateCopy(rubyAnnotation CTRubyAnnotationRef) CTRubyAnnotationRef
- func CTRubyAnnotationCreateWithAttributes(alignment CTRubyAlignment, overhang CTRubyOverhang, position CTRubyPosition, ...) CTRubyAnnotationRef
- func TryCTRubyAnnotationCreate(alignment CTRubyAlignment, overhang CTRubyOverhang, sizeFactor float64, ...) (CTRubyAnnotationRef, error)
- func TryCTRubyAnnotationCreateCopy(rubyAnnotation CTRubyAnnotationRef) (CTRubyAnnotationRef, error)
- func TryCTRubyAnnotationCreateWithAttributes(alignment CTRubyAlignment, overhang CTRubyOverhang, position CTRubyPosition, ...) (CTRubyAnnotationRef, error)
- type CTRubyOverhang
- type CTRubyPosition
- type CTRunDelegateCallbacks
- type CTRunDelegateDeallocateCallback
- type CTRunDelegateGetAscentCallback
- type CTRunDelegateGetDescentCallback
- type CTRunDelegateGetWidthCallback
- type CTRunDelegateRef
- type CTRunRef
- type CTRunStatus
- type CTTextAlignment
- type CTTextTabRef
- type CTTypesetterRef
- func CTFramesetterGetTypesetter(framesetter CTFramesetterRef) CTTypesetterRef
- func CTTypesetterCreateWithAttributedString(string_ corefoundation.CFAttributedStringRef) CTTypesetterRef
- func CTTypesetterCreateWithAttributedStringAndOptions(string_ corefoundation.CFAttributedStringRef, ...) CTTypesetterRef
- func TryCTFramesetterGetTypesetter(framesetter CTFramesetterRef) (CTTypesetterRef, error)
- func TryCTTypesetterCreateWithAttributedString(string_ corefoundation.CFAttributedStringRef) (CTTypesetterRef, error)
- func TryCTTypesetterCreateWithAttributedStringAndOptions(string_ corefoundation.CFAttributedStringRef, ...) (CTTypesetterRef, error)
- type CTUnderlineStyle
- type CTUnderlineStyleModifiers
- type CTWritingDirection
- type FontLanguageCode
- type FontNameCode
- type FontPlatformCode
- type FontScriptCode
- type FontVariation
- type JustDirectionTable
- type JustPCAction
- type JustPCActionSubrecord
- func (s *JustPCActionSubrecord) Data() uint32
- func (s *JustPCActionSubrecord) Length() uint32
- func (s *JustPCActionSubrecord) SetData(v uint32)
- func (s *JustPCActionSubrecord) SetLength(v uint32)
- func (s *JustPCActionSubrecord) SetTheClass(v uint16)
- func (s *JustPCActionSubrecord) SetTheType(v JustPCActionType)
- func (s *JustPCActionSubrecord) TheClass() uint16
- func (s *JustPCActionSubrecord) TheType() JustPCActionType
- type JustPCActionType
- type JustPCConditionalAddAction
- func (s *JustPCConditionalAddAction) AddGlyph() uint16
- func (s *JustPCConditionalAddAction) SetAddGlyph(v uint16)
- func (s *JustPCConditionalAddAction) SetSubstGlyph(v uint16)
- func (s *JustPCConditionalAddAction) SetSubstThreshold(v int32)
- func (s *JustPCConditionalAddAction) SubstGlyph() uint16
- func (s *JustPCConditionalAddAction) SubstThreshold() int32
- type JustPCDecompositionAction
- func (s *JustPCDecompositionAction) Count() uint16
- func (s *JustPCDecompositionAction) Glyphs() [1]uint16
- func (s *JustPCDecompositionAction) LowerLimit() int32
- func (s *JustPCDecompositionAction) Order() uint16
- func (s *JustPCDecompositionAction) SetCount(v uint16)
- func (s *JustPCDecompositionAction) SetGlyphs(v [1]uint16)
- func (s *JustPCDecompositionAction) SetLowerLimit(v int32)
- func (s *JustPCDecompositionAction) SetOrder(v uint16)
- func (s *JustPCDecompositionAction) SetUpperLimit(v int32)
- func (s *JustPCDecompositionAction) UpperLimit() int32
- type JustPCDuctilityAction
- func (s *JustPCDuctilityAction) DuctilityAxis() uint32
- func (s *JustPCDuctilityAction) MaximumLimit() int32
- func (s *JustPCDuctilityAction) MinimumLimit() int32
- func (s *JustPCDuctilityAction) NoStretchValue() int32
- func (s *JustPCDuctilityAction) SetDuctilityAxis(v uint32)
- func (s *JustPCDuctilityAction) SetMaximumLimit(v int32)
- func (s *JustPCDuctilityAction) SetMinimumLimit(v int32)
- func (s *JustPCDuctilityAction) SetNoStretchValue(v int32)
- type JustPCGlyphRepeatAddAction
- type JustPCUnconditionalAddAction
- type JustPostcompTable
- type JustTable
- func (s *JustTable) Format() uint16
- func (s *JustTable) HorizHeaderOffset() uint16
- func (s *JustTable) SetFormat(v uint16)
- func (s *JustTable) SetHorizHeaderOffset(v uint16)
- func (s *JustTable) SetVersion(v int32)
- func (s *JustTable) SetVertHeaderOffset(v uint16)
- func (s *JustTable) Version() int32
- func (s *JustTable) VertHeaderOffset() uint16
- type JustWidthDeltaEntry
- func (s *JustWidthDeltaEntry) AfterGrowLimit() int32
- func (s *JustWidthDeltaEntry) AfterShrinkLimit() int32
- func (s *JustWidthDeltaEntry) BeforeGrowLimit() int32
- func (s *JustWidthDeltaEntry) BeforeShrinkLimit() int32
- func (s *JustWidthDeltaEntry) GrowFlags() JustificationFlags
- func (s *JustWidthDeltaEntry) JustClass() uint32
- func (s *JustWidthDeltaEntry) SetAfterGrowLimit(v int32)
- func (s *JustWidthDeltaEntry) SetAfterShrinkLimit(v int32)
- func (s *JustWidthDeltaEntry) SetBeforeGrowLimit(v int32)
- func (s *JustWidthDeltaEntry) SetBeforeShrinkLimit(v int32)
- func (s *JustWidthDeltaEntry) SetGrowFlags(v JustificationFlags)
- func (s *JustWidthDeltaEntry) SetJustClass(v uint32)
- func (s *JustWidthDeltaEntry) SetShrinkFlags(v JustificationFlags)
- func (s *JustWidthDeltaEntry) ShrinkFlags() JustificationFlags
- type JustWidthDeltaGroup
- type JustificationFlags
- type KAllTypeFeatures
- type KAllTypographicFeaturesTypeConstants
- type KAlternate
- type KBSLNRomanBaselineConstants
- type KBSLNTagConstants
- type KCJKVerticalRoman
- type KCTFontPriority
- type KCTFontTable
- type KCTRunDelegate
- type KCTWritingDirection
- type KCanonicalCompositionOnSelectorConstants
- type KCaseSensitive
- type KContextualAlternatesOnSelectorConstants
- type KDefaultLowerCaseSelectorConstants
- type KDefaultUpperCaseSelectorConstants
- type KDesign
- type KFontCopyrightNameConstants
- type KFontCustom8BitScriptConstants
- type KFontEnglishLanguageConstants
- type KFontMicrosoft
- type KFontNo
- type KFontRomanScriptConstants
- type KFontUnicodeDefaultSemanticsConstants
- type KFontUnicodePlatformConstants
- type KFullWidthIdeographsSelectorConstants
- type KFullWidthKanaSelectorConstants
- type KHalfWidthCJKRomanSelectorConstants
- type KHyphenToMinusOnSelectorConstants
- type KHyphensToEmDashOnSelectorConstants
- type KJUS
- type KJUSTKashidaPriorityConstants
- type KJUSTOverridePriorityConstants
- type KKERNLineStartConstants
- type KKERNOrderedListConstants
- type KKERNTagConstants
- type KKERXActionTypeMaskConstants
- type KKERXLineStartConstants
- type KKERXOrderedListConstants
- type KKERXTagConstants
- type KLCAR
- type KLinguisticRearrangement
- type KLowerCaseNumbersSelectorConstants
- type KMOR
- type KMORX
- type KMonospacedNumbersSelectorConstants
- type KNoAnnotationSelectorConstants
- type KNoCJKItalicRomanSelectorConstants
- type KNoCJKSymbolAlternativesSelectorConstants
- type KNoFractionsSelectorConstants
- type KNoIdeographicAlternativesSelectorConstants
- type KNoOrnamentsSelectorConstants
- type KNoRubyKanaSelectorConstants
- type KNoStyleOptionsSelectorConstants
- type KNoStylisticAlternatesSelectorConstants
- type KNoTransliterationSelectorConstants
- type KNormalPositionSelectorConstants
- type KOPBD
- type KPROPLDirectionClassConstants
- type KPROPTagConstants
- type KPreventOverlap
- type KProportionalTextSelectorConstants
- type KRequiredLigaturesOnSelectorConstants
- type KSFNTLookup
- type KST
- type KShowDiacriticsSelectorConstants
- type KSubstituteVerticalForms
- type KTRAK
- type KTraditionalCharactersSelectorConstants
- type KUnconnectedSelectorConstants
- type KUpperAndLowerCaseSelectorConstants
- type KWordInitialSwashesOnSelectorConstants
- type KernArrayOffset
- type KernFormatSpecificHeader
- type KernIndexArrayHeader
- type KernKerningPair
- type KernKerningValue
- type KernOffsetTable
- type KernOffsetTablePtr
- type KernOrderedListEntry
- type KernOrderedListEntryPtr
- type KernOrderedListHeader
- type KernSimpleArrayHeader
- type KernStateEntry
- type KernStateHeader
- type KernSubtableHeader
- func (s *KernSubtableHeader) FsHeader() KernFormatSpecificHeader
- func (s *KernSubtableHeader) Length() int32
- func (s *KernSubtableHeader) SetFsHeader(v KernFormatSpecificHeader)
- func (s *KernSubtableHeader) SetLength(v int32)
- func (s *KernSubtableHeader) SetStInfo(v KernSubtableInfo)
- func (s *KernSubtableHeader) SetTupleIndex(v int16)
- func (s *KernSubtableHeader) StInfo() KernSubtableInfo
- func (s *KernSubtableHeader) TupleIndex() int16
- type KernSubtableHeaderPtr
- type KernSubtableInfo
- type KernTableFormat
- type KernTableHeader
- type KernTableHeaderHandle
- type KernTableHeaderPtr
- type KernVersion0Header
- type KernVersion0SubtableHeader
- type KerxAnchorPointAction
- type KerxArrayOffset
- type KerxControlPointAction
- type KerxControlPointEntry
- type KerxControlPointHeader
- func (s *KerxControlPointHeader) FirstTable() [1]uint8
- func (s *KerxControlPointHeader) Flags() uint32
- func (s *KerxControlPointHeader) Header() STXHeader
- func (s *KerxControlPointHeader) SetFirstTable(v [1]uint8)
- func (s *KerxControlPointHeader) SetFlags(v uint32)
- func (s *KerxControlPointHeader) SetHeader(v STXHeader)
- type KerxCoordinateAction
- type KerxFormatSpecificHeader
- func (u *KerxFormatSpecificHeader) ControlPoint() *KerxControlPointHeader
- func (u *KerxFormatSpecificHeader) IndexArray() *KerxIndexArrayHeader
- func (u *KerxFormatSpecificHeader) OrderedList() *KerxOrderedListHeader
- func (u *KerxFormatSpecificHeader) SimpleArray() *KerxSimpleArrayHeader
- func (u *KerxFormatSpecificHeader) StateTable() *KerxStateHeader
- type KerxIndexArrayHeader
- func (s *KerxIndexArrayHeader) ColumnCount() uint16
- func (s *KerxIndexArrayHeader) ColumnIndexTableOffset() uint32
- func (s *KerxIndexArrayHeader) Flags() uint32
- func (s *KerxIndexArrayHeader) KerningArrayOffset() uint32
- func (s *KerxIndexArrayHeader) KerningVectorOffset() uint32
- func (s *KerxIndexArrayHeader) RowCount() uint16
- func (s *KerxIndexArrayHeader) RowIndexTableOffset() uint32
- func (s *KerxIndexArrayHeader) SetColumnCount(v uint16)
- func (s *KerxIndexArrayHeader) SetColumnIndexTableOffset(v uint32)
- func (s *KerxIndexArrayHeader) SetFlags(v uint32)
- func (s *KerxIndexArrayHeader) SetKerningArrayOffset(v uint32)
- func (s *KerxIndexArrayHeader) SetKerningVectorOffset(v uint32)
- func (s *KerxIndexArrayHeader) SetRowCount(v uint16)
- func (s *KerxIndexArrayHeader) SetRowIndexTableOffset(v uint32)
- type KerxKerningPair
- type KerxOrderedListEntry
- type KerxOrderedListEntryPtr
- type KerxOrderedListHeader
- func (s *KerxOrderedListHeader) EntrySelector() uint32
- func (s *KerxOrderedListHeader) NPairs() uint32
- func (s *KerxOrderedListHeader) RangeShift() uint32
- func (s *KerxOrderedListHeader) SearchRange() uint32
- func (s *KerxOrderedListHeader) SetEntrySelector(v uint32)
- func (s *KerxOrderedListHeader) SetNPairs(v uint32)
- func (s *KerxOrderedListHeader) SetRangeShift(v uint32)
- func (s *KerxOrderedListHeader) SetSearchRange(v uint32)
- func (s *KerxOrderedListHeader) SetTable(v [1]uint32)
- func (s *KerxOrderedListHeader) Table() [1]uint32
- type KerxSimpleArrayHeader
- func (s *KerxSimpleArrayHeader) FirstTable() [1]uint32
- func (s *KerxSimpleArrayHeader) LeftOffsetTable() uint32
- func (s *KerxSimpleArrayHeader) RightOffsetTable() uint32
- func (s *KerxSimpleArrayHeader) RowWidth() uint32
- func (s *KerxSimpleArrayHeader) SetFirstTable(v [1]uint32)
- func (s *KerxSimpleArrayHeader) SetLeftOffsetTable(v uint32)
- func (s *KerxSimpleArrayHeader) SetRightOffsetTable(v uint32)
- func (s *KerxSimpleArrayHeader) SetRowWidth(v uint32)
- func (s *KerxSimpleArrayHeader) SetTheArray(v KerxArrayOffset)
- func (s *KerxSimpleArrayHeader) TheArray() KerxArrayOffset
- type KerxStateEntry
- type KerxStateHeader
- type KerxSubtableCoverage
- type KerxSubtableHeader
- func (s *KerxSubtableHeader) FsHeader() KerxFormatSpecificHeader
- func (s *KerxSubtableHeader) Length() uint32
- func (s *KerxSubtableHeader) SetFsHeader(v KerxFormatSpecificHeader)
- func (s *KerxSubtableHeader) SetLength(v uint32)
- func (s *KerxSubtableHeader) SetStInfo(v KerxSubtableCoverage)
- func (s *KerxSubtableHeader) SetTupleCount(v uint32)
- func (s *KerxSubtableHeader) StInfo() KerxSubtableCoverage
- func (s *KerxSubtableHeader) TupleCount() uint32
- type KerxSubtableHeaderPtr
- type KerxTableHeader
- type KerxTableHeaderHandle
- type KerxTableHeaderPtr
- type LcarCaretClassEntry
- type LcarCaretTable
- type LcarCaretTablePtr
- type LtagStringRange
- type LtagTable
- func (s *LtagTable) Flags() uint32
- func (s *LtagTable) NumTags() uint32
- func (s *LtagTable) SetFlags(v uint32)
- func (s *LtagTable) SetNumTags(v uint32)
- func (s *LtagTable) SetTagRange(v [1]LtagStringRange)
- func (s *LtagTable) SetVersion(v uint32)
- func (s *LtagTable) TagRange() [1]LtagStringRange
- func (s *LtagTable) Version() uint32
- type MortChain
- func (s *MortChain) DefaultFlags() MortSubtableMaskFlags
- func (s *MortChain) FeatureEntries() [1]MortFeatureEntry
- func (s *MortChain) Length() uint32
- func (s *MortChain) NFeatures() uint16
- func (s *MortChain) NSubtables() uint16
- func (s *MortChain) SetDefaultFlags(v MortSubtableMaskFlags)
- func (s *MortChain) SetFeatureEntries(v [1]MortFeatureEntry)
- func (s *MortChain) SetLength(v uint32)
- func (s *MortChain) SetNFeatures(v uint16)
- func (s *MortChain) SetNSubtables(v uint16)
- type MortContextualSubtable
- type MortFeatureEntry
- func (s *MortFeatureEntry) DisableFlags() MortSubtableMaskFlags
- func (s *MortFeatureEntry) EnableFlags() MortSubtableMaskFlags
- func (s *MortFeatureEntry) FeatureSelector() uint16
- func (s *MortFeatureEntry) FeatureType() uint16
- func (s *MortFeatureEntry) SetDisableFlags(v MortSubtableMaskFlags)
- func (s *MortFeatureEntry) SetEnableFlags(v MortSubtableMaskFlags)
- func (s *MortFeatureEntry) SetFeatureSelector(v uint16)
- func (s *MortFeatureEntry) SetFeatureType(v uint16)
- type MortInsertionSubtable
- type MortLigatureActionEntry
- type MortLigatureSubtable
- type MortRearrangementSubtable
- type MortSpecificSubtable
- func (u *MortSpecificSubtable) Contextual() *MortContextualSubtable
- func (u *MortSpecificSubtable) Insertion() *MortInsertionSubtable
- func (u *MortSpecificSubtable) Ligature() *MortLigatureSubtable
- func (u *MortSpecificSubtable) Rearrangement() *MortRearrangementSubtable
- func (u *MortSpecificSubtable) Swash() *MortSwashSubtable
- type MortSubtable
- func (s *MortSubtable) Coverage() uint16
- func (s *MortSubtable) Flags() MortSubtableMaskFlags
- func (s *MortSubtable) Length() uint16
- func (s *MortSubtable) SetCoverage(v uint16)
- func (s *MortSubtable) SetFlags(v MortSubtableMaskFlags)
- func (s *MortSubtable) SetLength(v uint16)
- func (s *MortSubtable) SetU(v MortSpecificSubtable)
- func (s *MortSubtable) U() MortSpecificSubtable
- type MortSubtableMaskFlags
- type MortSwashSubtable
- type MortTable
- type MorxChain
- func (s *MorxChain) DefaultFlags() MortSubtableMaskFlags
- func (s *MorxChain) FeatureEntries() [1]MortFeatureEntry
- func (s *MorxChain) Length() uint32
- func (s *MorxChain) NFeatures() uint32
- func (s *MorxChain) NSubtables() uint32
- func (s *MorxChain) SetDefaultFlags(v MortSubtableMaskFlags)
- func (s *MorxChain) SetFeatureEntries(v [1]MortFeatureEntry)
- func (s *MorxChain) SetLength(v uint32)
- func (s *MorxChain) SetNFeatures(v uint32)
- func (s *MorxChain) SetNSubtables(v uint32)
- type MorxContextualSubtable
- type MorxInsertionSubtable
- type MorxLigatureSubtable
- func (s *MorxLigatureSubtable) ComponentTableOffset() uint32
- func (s *MorxLigatureSubtable) Header() STXHeader
- func (s *MorxLigatureSubtable) LigatureActionTableOffset() uint32
- func (s *MorxLigatureSubtable) LigatureTableOffset() uint32
- func (s *MorxLigatureSubtable) SetComponentTableOffset(v uint32)
- func (s *MorxLigatureSubtable) SetHeader(v STXHeader)
- func (s *MorxLigatureSubtable) SetLigatureActionTableOffset(v uint32)
- func (s *MorxLigatureSubtable) SetLigatureTableOffset(v uint32)
- type MorxRearrangementSubtable
- type MorxSpecificSubtable
- func (u *MorxSpecificSubtable) Contextual() *MorxContextualSubtable
- func (u *MorxSpecificSubtable) Insertion() *MorxInsertionSubtable
- func (u *MorxSpecificSubtable) Ligature() *MorxLigatureSubtable
- func (u *MorxSpecificSubtable) Rearrangement() *MorxRearrangementSubtable
- func (u *MorxSpecificSubtable) Swash() *MortSwashSubtable
- type MorxSubtable
- func (s *MorxSubtable) Coverage() uint32
- func (s *MorxSubtable) Flags() MortSubtableMaskFlags
- func (s *MorxSubtable) Length() uint32
- func (s *MorxSubtable) SetCoverage(v uint32)
- func (s *MorxSubtable) SetFlags(v MortSubtableMaskFlags)
- func (s *MorxSubtable) SetLength(v uint32)
- func (s *MorxSubtable) SetU(v MorxSpecificSubtable)
- func (s *MorxSubtable) U() MorxSpecificSubtable
- type MorxTable
- type OpbdSideValues
- type OpbdTable
- type OpbdTableFormat
- type PropCharProperties
- type PropLookupSegment
- type PropLookupSingle
- type PropTable
- func (s *PropTable) DefaultProps() PropCharProperties
- func (s *PropTable) Format() uint16
- func (s *PropTable) Lookup() SFNTLookupTable
- func (s *PropTable) SetDefaultProps(v PropCharProperties)
- func (s *PropTable) SetFormat(v uint16)
- func (s *PropTable) SetLookup(v SFNTLookupTable)
- func (s *PropTable) SetVersion(v int32)
- func (s *PropTable) Version() int32
- type ROTAGlyphEntry
- type ROTAHeader
- func (s *ROTAHeader) FirstGlyph() uint16
- func (s *ROTAHeader) Flags() uint16
- func (s *ROTAHeader) LastGlyph() uint16
- func (s *ROTAHeader) Lookup() SFNTLookupTable
- func (s *ROTAHeader) NMasters() uint16
- func (s *ROTAHeader) SetFirstGlyph(v uint16)
- func (s *ROTAHeader) SetFlags(v uint16)
- func (s *ROTAHeader) SetLastGlyph(v uint16)
- func (s *ROTAHeader) SetLookup(v SFNTLookupTable)
- func (s *ROTAHeader) SetNMasters(v uint16)
- func (s *ROTAHeader) SetVersion(v int32)
- func (s *ROTAHeader) Version() int32
- type SFNTLookupArrayHeader
- type SFNTLookupBinarySearchHeader
- type SFNTLookupFormatSpecificHeader
- func (u *SFNTLookupFormatSpecificHeader) Segment() *SFNTLookupSegmentHeader
- func (u *SFNTLookupFormatSpecificHeader) Single() *SFNTLookupSingleHeader
- func (u *SFNTLookupFormatSpecificHeader) TheArray() *SFNTLookupArrayHeader
- func (u *SFNTLookupFormatSpecificHeader) TrimmedArray() *SFNTLookupTrimmedArrayHeader
- func (u *SFNTLookupFormatSpecificHeader) Vector() *SFNTLookupVectorHeader
- type SFNTLookupKind
- type SFNTLookupOffset
- type SFNTLookupSegment
- type SFNTLookupSegmentHeader
- type SFNTLookupSingle
- type SFNTLookupSingleHeader
- type SFNTLookupTable
- type SFNTLookupTableFormat
- type SFNTLookupTableHandle
- type SFNTLookupTablePtr
- type SFNTLookupTrimmedArrayHeader
- type SFNTLookupValue
- type SFNTLookupVectorHeader
- type STClass
- type STClassTable
- type STEntryIndex
- type STEntryOne
- type STEntryTwo
- type STEntryZero
- type STHeader
- type STXClass
- type STXClassTable
- type STXEntryIndex
- type STXEntryOne
- type STXEntryTwo
- type STXEntryZero
- type STXHeader
- func (s *STXHeader) ClassTableOffset() uint32
- func (s *STXHeader) EntryTableOffset() uint32
- func (s *STXHeader) NClasses() uint32
- func (s *STXHeader) SetClassTableOffset(v uint32)
- func (s *STXHeader) SetEntryTableOffset(v uint32)
- func (s *STXHeader) SetNClasses(v uint32)
- func (s *STXHeader) SetStateArrayOffset(v uint32)
- func (s *STXHeader) StateArrayOffset() uint32
- type STXStateIndex
- type SfntCMapEncoding
- type SfntCMapExtendedSubHeader
- func (s *SfntCMapExtendedSubHeader) Format() uint16
- func (s *SfntCMapExtendedSubHeader) Language() uint32
- func (s *SfntCMapExtendedSubHeader) Length() uint32
- func (s *SfntCMapExtendedSubHeader) Reserved() uint16
- func (s *SfntCMapExtendedSubHeader) SetFormat(v uint16)
- func (s *SfntCMapExtendedSubHeader) SetLanguage(v uint32)
- func (s *SfntCMapExtendedSubHeader) SetLength(v uint32)
- func (s *SfntCMapExtendedSubHeader) SetReserved(v uint16)
- type SfntCMapHeader
- type SfntCMapSubHeader
- type SfntDescriptorHeader
- func (s *SfntDescriptorHeader) Descriptor() [1]SfntFontDescriptor
- func (s *SfntDescriptorHeader) DescriptorCount() int32
- func (s *SfntDescriptorHeader) SetDescriptor(v [1]SfntFontDescriptor)
- func (s *SfntDescriptorHeader) SetDescriptorCount(v int32)
- func (s *SfntDescriptorHeader) SetVersion(v int32)
- func (s *SfntDescriptorHeader) Version() int32
- type SfntDirectory
- func (s *SfntDirectory) EntrySelector() uint16
- func (s *SfntDirectory) Format() uint32
- func (s *SfntDirectory) NumOffsets() uint16
- func (s *SfntDirectory) RangeShift() uint16
- func (s *SfntDirectory) SearchRange() uint16
- func (s *SfntDirectory) SetEntrySelector(v uint16)
- func (s *SfntDirectory) SetFormat(v uint32)
- func (s *SfntDirectory) SetNumOffsets(v uint16)
- func (s *SfntDirectory) SetRangeShift(v uint16)
- func (s *SfntDirectory) SetSearchRange(v uint16)
- func (s *SfntDirectory) SetTable(v [1]SfntDirectoryEntry)
- func (s *SfntDirectory) Table() [1]SfntDirectoryEntry
- type SfntDirectoryEntry
- func (s *SfntDirectoryEntry) CheckSum() uint32
- func (s *SfntDirectoryEntry) Length() uint32
- func (s *SfntDirectoryEntry) Offset() uint32
- func (s *SfntDirectoryEntry) SetCheckSum(v uint32)
- func (s *SfntDirectoryEntry) SetLength(v uint32)
- func (s *SfntDirectoryEntry) SetOffset(v uint32)
- func (s *SfntDirectoryEntry) SetTableTag(v uint32)
- func (s *SfntDirectoryEntry) TableTag() uint32
- type SfntFeatureHeader
- func (s *SfntFeatureHeader) FeatureNameCount() uint16
- func (s *SfntFeatureHeader) FeatureSetCount() uint16
- func (s *SfntFeatureHeader) Names() [1]SfntFeatureName
- func (s *SfntFeatureHeader) Reserved() int32
- func (s *SfntFeatureHeader) Runs() [1]SfntFontRunFeature
- func (s *SfntFeatureHeader) SetFeatureNameCount(v uint16)
- func (s *SfntFeatureHeader) SetFeatureSetCount(v uint16)
- func (s *SfntFeatureHeader) SetNames(v [1]SfntFeatureName)
- func (s *SfntFeatureHeader) SetReserved(v int32)
- func (s *SfntFeatureHeader) SetRuns(v [1]SfntFontRunFeature)
- func (s *SfntFeatureHeader) SetSettings(v [1]SfntFontFeatureSetting)
- func (s *SfntFeatureHeader) SetVersion(v int32)
- func (s *SfntFeatureHeader) Settings() [1]SfntFontFeatureSetting
- func (s *SfntFeatureHeader) Version() int32
- type SfntFeatureName
- func (s *SfntFeatureName) FeatureFlags() uint16
- func (s *SfntFeatureName) FeatureType() uint16
- func (s *SfntFeatureName) NameID() int16
- func (s *SfntFeatureName) OffsetToSettings() int32
- func (s *SfntFeatureName) SetFeatureFlags(v uint16)
- func (s *SfntFeatureName) SetFeatureType(v uint16)
- func (s *SfntFeatureName) SetNameID(v int16)
- func (s *SfntFeatureName) SetOffsetToSettings(v int32)
- func (s *SfntFeatureName) SetSettingCount(v uint16)
- func (s *SfntFeatureName) SettingCount() uint16
- type SfntFontDescriptor
- type SfntFontFeatureSetting
- type SfntFontRunFeature
- type SfntInstance
- type SfntNameHeader
- type SfntNameRecord
- type SfntVariationAxis
- func (s *SfntVariationAxis) AxisTag() uint32
- func (s *SfntVariationAxis) DefaultValue() int32
- func (s *SfntVariationAxis) Flags() int16
- func (s *SfntVariationAxis) MaxValue() int32
- func (s *SfntVariationAxis) MinValue() int32
- func (s *SfntVariationAxis) NameID() int16
- func (s *SfntVariationAxis) SetAxisTag(v uint32)
- func (s *SfntVariationAxis) SetDefaultValue(v int32)
- func (s *SfntVariationAxis) SetFlags(v int16)
- func (s *SfntVariationAxis) SetMaxValue(v int32)
- func (s *SfntVariationAxis) SetMinValue(v int32)
- func (s *SfntVariationAxis) SetNameID(v int16)
- type SfntVariationHeader
- func (s *SfntVariationHeader) Axis() [1]SfntVariationAxis
- func (s *SfntVariationHeader) AxisCount() uint16
- func (s *SfntVariationHeader) AxisSize() uint16
- func (s *SfntVariationHeader) CountSizePairs() uint16
- func (s *SfntVariationHeader) Instance() [1]SfntInstance
- func (s *SfntVariationHeader) InstanceCount() uint16
- func (s *SfntVariationHeader) InstanceSize() uint16
- func (s *SfntVariationHeader) OffsetToData() uint16
- func (s *SfntVariationHeader) SetAxis(v [1]SfntVariationAxis)
- func (s *SfntVariationHeader) SetAxisCount(v uint16)
- func (s *SfntVariationHeader) SetAxisSize(v uint16)
- func (s *SfntVariationHeader) SetCountSizePairs(v uint16)
- func (s *SfntVariationHeader) SetInstance(v [1]SfntInstance)
- func (s *SfntVariationHeader) SetInstanceCount(v uint16)
- func (s *SfntVariationHeader) SetInstanceSize(v uint16)
- func (s *SfntVariationHeader) SetOffsetToData(v uint16)
- func (s *SfntVariationHeader) SetVersion(v int32)
- func (s *SfntVariationHeader) Version() int32
- type SizeofSfntcmapencoding
- type SizeofSfntcmapextendedsubheader
- type SizeofSfntcmapheader
- type SizeofSfntcmapsubheader
- type SizeofSfntdescriptorheader
- type SizeofSfntdirectory
- type SizeofSfntinstance
- type SizeofSfntnameheader
- type SizeofSfntnamerecord
- type SizeofSfntvariationaxis
- type SizeofSfntvariationheader
- type TrakTable
- func (s *TrakTable) Format() uint16
- func (s *TrakTable) HorizOffset() uint16
- func (s *TrakTable) SetFormat(v uint16)
- func (s *TrakTable) SetHorizOffset(v uint16)
- func (s *TrakTable) SetVersion(v int32)
- func (s *TrakTable) SetVertOffset(v uint16)
- func (s *TrakTable) Version() int32
- func (s *TrakTable) VertOffset() uint16
- type TrakTableData
- func (s *TrakTableData) NSizes() uint16
- func (s *TrakTableData) NTracks() uint16
- func (s *TrakTableData) SetNSizes(v uint16)
- func (s *TrakTableData) SetNTracks(v uint16)
- func (s *TrakTableData) SetSizeTableOffset(v uint32)
- func (s *TrakTableData) SetTrakTable(v [1]TrakTableEntry)
- func (s *TrakTableData) SizeTableOffset() uint32
- func (s *TrakTableData) TrakTable() [1]TrakTableEntry
- type TrakTableEntry
- type TrakValue
Constants ¶
const CmapFontTableTag uint32 = 0x636d6170
const DescriptorFontTableTag uint32 = 0x66647363
const FeatureFontTableTag uint32 = 0x66656174
const KANKRCurrentVersion uint32 = 0
const KCTFontClassMaskShift uint32 = 28
const KFontNoNameCode uint32 = 4294967295
const KKERXValuesAreLong uint32 = 0x1
const KLTAGCurrentVersion uint32 = 1
const KNoAlternatesSelector uint32 = 0
const KSTKCrossStreamReset uint32 = 0x2000
const KSTXHasLigAction uint32 = 0x2000
const NameFontTableTag uint32 = 0x6e616d65
const NonGlyphID uint32 = 65535
const Os2FontTableTag uint32 = 0x4f532f32
const VariationFontTableTag uint32 = 0x66766172
Variables ¶
var ( // See: https://developer.apple.com/documentation/CoreText/kCTAdaptiveImageProviderAttributeName KCTAdaptiveImageProviderAttributeName string // See: https://developer.apple.com/documentation/CoreText/kCTBackgroundColorAttributeName KCTBackgroundColorAttributeName string // See: https://developer.apple.com/documentation/CoreText/kCTBaselineClassAttributeName KCTBaselineClassAttributeName string // See: https://developer.apple.com/documentation/CoreText/kCTBaselineClassHanging KCTBaselineClassHanging string // See: https://developer.apple.com/documentation/CoreText/kCTBaselineClassIdeographicCentered KCTBaselineClassIdeographicCentered string // See: https://developer.apple.com/documentation/CoreText/kCTBaselineClassIdeographicHigh KCTBaselineClassIdeographicHigh string // See: https://developer.apple.com/documentation/CoreText/kCTBaselineClassIdeographicLow KCTBaselineClassIdeographicLow string // See: https://developer.apple.com/documentation/CoreText/kCTBaselineClassMath KCTBaselineClassMath string // See: https://developer.apple.com/documentation/CoreText/kCTBaselineClassRoman KCTBaselineClassRoman string // See: https://developer.apple.com/documentation/CoreText/kCTBaselineInfoAttributeName KCTBaselineInfoAttributeName string // KCTBaselineOffsetAttributeName is vertical offset for text position. // // See: https://developer.apple.com/documentation/CoreText/kCTBaselineOffsetAttributeName KCTBaselineOffsetAttributeName string // See: https://developer.apple.com/documentation/CoreText/kCTBaselineOriginalFont KCTBaselineOriginalFont string // See: https://developer.apple.com/documentation/CoreText/kCTBaselineReferenceFont KCTBaselineReferenceFont string // See: https://developer.apple.com/documentation/CoreText/kCTBaselineReferenceInfoAttributeName KCTBaselineReferenceInfoAttributeName string // KCTCharacterShapeAttributeName is controls glyph selection. // // Deprecated: Deprecated since macOS 10.11. Use feature type kCharacterShapeType with the appropriate selector // // See: https://developer.apple.com/documentation/CoreText/kCTCharacterShapeAttributeName KCTCharacterShapeAttributeName string // KCTFontAttributeName is the font of the text to which this attribute applies. // // See: https://developer.apple.com/documentation/CoreText/kCTFontAttributeName KCTFontAttributeName string // KCTFontBaselineAdjustAttribute is the baseline adjustment for a font reference. // // See: https://developer.apple.com/documentation/CoreText/kCTFontBaselineAdjustAttribute KCTFontBaselineAdjustAttribute string // KCTFontCascadeListAttribute is the cascade list used for a font reference. // // See: https://developer.apple.com/documentation/CoreText/kCTFontCascadeListAttribute KCTFontCascadeListAttribute string // KCTFontCharacterSetAttribute is the Unicode character coverage set for a font reference. // // See: https://developer.apple.com/documentation/CoreText/kCTFontCharacterSetAttribute KCTFontCharacterSetAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontCollectionDisallowAutoActivationOption KCTFontCollectionDisallowAutoActivationOption string // See: https://developer.apple.com/documentation/CoreText/kCTFontCollectionIncludeDisabledFontsOption KCTFontCollectionIncludeDisabledFontsOption string // See: https://developer.apple.com/documentation/CoreText/kCTFontCollectionRemoveDuplicatesOption KCTFontCollectionRemoveDuplicatesOption string // See: https://developer.apple.com/documentation/CoreText/kCTFontCopyrightNameKey KCTFontCopyrightNameKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontDescriptionNameKey KCTFontDescriptionNameKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontDescriptorLanguageAttribute KCTFontDescriptorLanguageAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontDescriptorMatchingCurrentAssetSize KCTFontDescriptorMatchingCurrentAssetSize string // See: https://developer.apple.com/documentation/CoreText/kCTFontDescriptorMatchingDescriptors KCTFontDescriptorMatchingDescriptors string // See: https://developer.apple.com/documentation/CoreText/kCTFontDescriptorMatchingError KCTFontDescriptorMatchingError string // See: https://developer.apple.com/documentation/CoreText/kCTFontDescriptorMatchingPercentage KCTFontDescriptorMatchingPercentage string // See: https://developer.apple.com/documentation/CoreText/kCTFontDescriptorMatchingResult KCTFontDescriptorMatchingResult string // See: https://developer.apple.com/documentation/CoreText/kCTFontDescriptorMatchingSourceDescriptor KCTFontDescriptorMatchingSourceDescriptor string // See: https://developer.apple.com/documentation/CoreText/kCTFontDescriptorMatchingTotalAssetSize KCTFontDescriptorMatchingTotalAssetSize string // See: https://developer.apple.com/documentation/CoreText/kCTFontDescriptorMatchingTotalDownloadedSize KCTFontDescriptorMatchingTotalDownloadedSize string // See: https://developer.apple.com/documentation/CoreText/kCTFontDesignerNameKey KCTFontDesignerNameKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontDesignerURLNameKey KCTFontDesignerURLNameKey string // KCTFontDisplayNameAttribute is the name used to display the font. // // See: https://developer.apple.com/documentation/CoreText/kCTFontDisplayNameAttribute KCTFontDisplayNameAttribute string // KCTFontDownloadableAttribute is the font downloadable state. // // See: https://developer.apple.com/documentation/CoreText/kCTFontDownloadableAttribute KCTFontDownloadableAttribute string // KCTFontDownloadedAttribute is the download state. // // See: https://developer.apple.com/documentation/CoreText/kCTFontDownloadedAttribute KCTFontDownloadedAttribute string // KCTFontEnabledAttribute is the font enabled state. // // See: https://developer.apple.com/documentation/CoreText/kCTFontEnabledAttribute KCTFontEnabledAttribute string // KCTFontFamilyNameAttribute is the font family name from the font descriptor. // // See: https://developer.apple.com/documentation/CoreText/kCTFontFamilyNameAttribute KCTFontFamilyNameAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontFamilyNameKey KCTFontFamilyNameKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontFeatureSampleTextKey KCTFontFeatureSampleTextKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontFeatureSelectorDefaultKey KCTFontFeatureSelectorDefaultKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontFeatureSelectorIdentifierKey KCTFontFeatureSelectorIdentifierKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontFeatureSelectorNameKey KCTFontFeatureSelectorNameKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontFeatureSelectorSettingKey KCTFontFeatureSelectorSettingKey string // KCTFontFeatureSettingsAttribute is the font features settings for a font reference. // // See: https://developer.apple.com/documentation/CoreText/kCTFontFeatureSettingsAttribute KCTFontFeatureSettingsAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontFeatureTooltipTextKey KCTFontFeatureTooltipTextKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontFeatureTypeExclusiveKey KCTFontFeatureTypeExclusiveKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontFeatureTypeIdentifierKey KCTFontFeatureTypeIdentifierKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontFeatureTypeNameKey KCTFontFeatureTypeNameKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontFeatureTypeSelectorsKey KCTFontFeatureTypeSelectorsKey string // KCTFontFeaturesAttribute is the font features for a font reference. // // See: https://developer.apple.com/documentation/CoreText/kCTFontFeaturesAttribute KCTFontFeaturesAttribute string // KCTFontFixedAdvanceAttribute is a fixed advance to be used for a font reference. // // See: https://developer.apple.com/documentation/CoreText/kCTFontFixedAdvanceAttribute KCTFontFixedAdvanceAttribute string // KCTFontFormatAttribute is the recognized format of the font. // // See: https://developer.apple.com/documentation/CoreText/kCTFontFormatAttribute KCTFontFormatAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontFullNameKey KCTFontFullNameKey string // KCTFontLanguagesAttribute is a list of covered languages for a font reference. // // See: https://developer.apple.com/documentation/CoreText/kCTFontLanguagesAttribute KCTFontLanguagesAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontLicenseNameKey KCTFontLicenseNameKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontLicenseURLNameKey KCTFontLicenseURLNameKey string // KCTFontMacintoshEncodingsAttribute is the Macintosh encodings for a font reference. // // See: https://developer.apple.com/documentation/CoreText/kCTFontMacintoshEncodingsAttribute KCTFontMacintoshEncodingsAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontManagerBundleIdentifier KCTFontManagerBundleIdentifier string // See: https://developer.apple.com/documentation/CoreText/kCTFontManagerErrorDomain KCTFontManagerErrorDomain string // See: https://developer.apple.com/documentation/CoreText/kCTFontManagerErrorFontURLsKey KCTFontManagerErrorFontURLsKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontManagerRegisteredFontsChangedNotification KCTFontManagerRegisteredFontsChangedNotification string // See: https://developer.apple.com/documentation/CoreText/kCTFontManufacturerNameKey KCTFontManufacturerNameKey string // KCTFontMatrixAttribute is the font transformation matrix when creating a font. // // See: https://developer.apple.com/documentation/CoreText/kCTFontMatrixAttribute KCTFontMatrixAttribute string // KCTFontNameAttribute is the PostScript name from the font descriptor. // // See: https://developer.apple.com/documentation/CoreText/kCTFontNameAttribute KCTFontNameAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontOpenTypeFeatureTag KCTFontOpenTypeFeatureTag string // See: https://developer.apple.com/documentation/CoreText/kCTFontOpenTypeFeatureValue KCTFontOpenTypeFeatureValue string // See: https://developer.apple.com/documentation/CoreText/kCTFontOpticalSizeAttribute KCTFontOpticalSizeAttribute string // KCTFontOrientationAttribute is the orientation for the glyphs of the font. // // See: https://developer.apple.com/documentation/CoreText/kCTFontOrientationAttribute KCTFontOrientationAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontPostScriptCIDNameKey KCTFontPostScriptCIDNameKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontPostScriptNameKey KCTFontPostScriptNameKey string // KCTFontPriorityAttribute is the font priority used by font descriptors when resolving duplicates and sorting match results. // // See: https://developer.apple.com/documentation/CoreText/kCTFontPriorityAttribute KCTFontPriorityAttribute string // KCTFontRegistrationScopeAttribute is the font descriptor’s registration scope. // // See: https://developer.apple.com/documentation/CoreText/kCTFontRegistrationScopeAttribute KCTFontRegistrationScopeAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontSampleTextNameKey KCTFontSampleTextNameKey string // KCTFontSizeAttribute is the font point size. // // See: https://developer.apple.com/documentation/CoreText/kCTFontSizeAttribute KCTFontSizeAttribute string // KCTFontSlantTrait is the normalized slant angle from the font traits dictionary. // // See: https://developer.apple.com/documentation/CoreText/kCTFontSlantTrait KCTFontSlantTrait string // KCTFontStyleNameAttribute is the style name of the font. // // See: https://developer.apple.com/documentation/CoreText/kCTFontStyleNameAttribute KCTFontStyleNameAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontStyleNameKey KCTFontStyleNameKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontSubFamilyNameKey KCTFontSubFamilyNameKey string // KCTFontSymbolicTrait is the symbolic traits value from the font traits dictionary. // // See: https://developer.apple.com/documentation/CoreText/kCTFontSymbolicTrait KCTFontSymbolicTrait string // See: https://developer.apple.com/documentation/CoreText/kCTFontTrademarkNameKey KCTFontTrademarkNameKey string // KCTFontTraitsAttribute is the dictionary of font traits for stylistic information. // // See: https://developer.apple.com/documentation/CoreText/kCTFontTraitsAttribute KCTFontTraitsAttribute string // KCTFontURLAttribute is the font URL from the font descriptor. // // See: https://developer.apple.com/documentation/CoreText/kCTFontURLAttribute KCTFontURLAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontUniqueNameKey KCTFontUniqueNameKey string // KCTFontVariationAttribute is the dictionary of font variation. // // See: https://developer.apple.com/documentation/CoreText/kCTFontVariationAttribute KCTFontVariationAttribute string // See: https://developer.apple.com/documentation/CoreText/kCTFontVariationAxesAttribute KCTFontVariationAxesAttribute string // KCTFontVariationAxisDefaultValueKey is key to get the variation axis default value. // // See: https://developer.apple.com/documentation/CoreText/kCTFontVariationAxisDefaultValueKey KCTFontVariationAxisDefaultValueKey string // KCTFontVariationAxisHiddenKey is the key to find out if the axis is hidden. // // See: https://developer.apple.com/documentation/CoreText/kCTFontVariationAxisHiddenKey KCTFontVariationAxisHiddenKey string // KCTFontVariationAxisIdentifierKey is key to get the variation axis identifier. // // See: https://developer.apple.com/documentation/CoreText/kCTFontVariationAxisIdentifierKey KCTFontVariationAxisIdentifierKey string // KCTFontVariationAxisMaximumValueKey is key to get the variation axis maximum value. // // See: https://developer.apple.com/documentation/CoreText/kCTFontVariationAxisMaximumValueKey KCTFontVariationAxisMaximumValueKey string // KCTFontVariationAxisMinimumValueKey is key to get the variation axis minimum value. // // See: https://developer.apple.com/documentation/CoreText/kCTFontVariationAxisMinimumValueKey KCTFontVariationAxisMinimumValueKey string // KCTFontVariationAxisNameKey is key to get the localized variation axis name string. // // See: https://developer.apple.com/documentation/CoreText/kCTFontVariationAxisNameKey KCTFontVariationAxisNameKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontVendorURLNameKey KCTFontVendorURLNameKey string // See: https://developer.apple.com/documentation/CoreText/kCTFontVersionNameKey KCTFontVersionNameKey string // KCTFontWeightTrait is the normalized weight trait from the font traits dictionary. // // See: https://developer.apple.com/documentation/CoreText/kCTFontWeightTrait KCTFontWeightTrait string // KCTFontWidthTrait is the normalized proportion (width condense or expand) trait from the font traits dictionary. // // See: https://developer.apple.com/documentation/CoreText/kCTFontWidthTrait KCTFontWidthTrait string // KCTForegroundColorAttributeName is the foreground color of the text to which this attribute applies. // // See: https://developer.apple.com/documentation/CoreText/kCTForegroundColorAttributeName KCTForegroundColorAttributeName string // KCTForegroundColorFromContextAttributeName is sets a foreground color using the context’s fill color. // // See: https://developer.apple.com/documentation/CoreText/kCTForegroundColorFromContextAttributeName KCTForegroundColorFromContextAttributeName string // KCTFrameClippingPathsAttributeName is specifies array of paths to clip frame. // // See: https://developer.apple.com/documentation/CoreText/kCTFrameClippingPathsAttributeName KCTFrameClippingPathsAttributeName string // KCTFramePathClippingPathAttributeName is specifies clipping path. // // See: https://developer.apple.com/documentation/CoreText/kCTFramePathClippingPathAttributeName KCTFramePathClippingPathAttributeName string // KCTFramePathFillRuleAttributeName is the key used to specify the fill rule for a frame. // // See: https://developer.apple.com/documentation/CoreText/kCTFramePathFillRuleAttributeName KCTFramePathFillRuleAttributeName string // KCTFramePathWidthAttributeName is the key used to specify the frame width. // // See: https://developer.apple.com/documentation/CoreText/kCTFramePathWidthAttributeName KCTFramePathWidthAttributeName string // KCTFrameProgressionAttributeName is specifies progression for a frame. // // See: https://developer.apple.com/documentation/CoreText/kCTFrameProgressionAttributeName KCTFrameProgressionAttributeName string // KCTGlyphInfoAttributeName is the glyph info object to apply to the text associated with this attribute. // // See: https://developer.apple.com/documentation/CoreText/kCTGlyphInfoAttributeName KCTGlyphInfoAttributeName string // KCTHorizontalInVerticalFormsAttributeName is setting text in tate-chu-yoko form (horizontal numerals in vertical text). // // See: https://developer.apple.com/documentation/CoreText/kCTHorizontalInVerticalFormsAttributeName KCTHorizontalInVerticalFormsAttributeName string // KCTKernAttributeName is the amount to kern the next character. // // See: https://developer.apple.com/documentation/CoreText/kCTKernAttributeName KCTKernAttributeName string // KCTLanguageAttributeName is the name of the text language. // // See: https://developer.apple.com/documentation/CoreText/kCTLanguageAttributeName KCTLanguageAttributeName string // KCTLigatureAttributeName is the type of ligatures to use. // // See: https://developer.apple.com/documentation/CoreText/kCTLigatureAttributeName KCTLigatureAttributeName string // KCTParagraphStyleAttributeName is the paragraph style of the text to which this attribute applies. // // See: https://developer.apple.com/documentation/CoreText/kCTParagraphStyleAttributeName KCTParagraphStyleAttributeName string // See: https://developer.apple.com/documentation/CoreText/kCTRubyAnnotationAttributeName KCTRubyAnnotationAttributeName string // See: https://developer.apple.com/documentation/CoreText/kCTRubyAnnotationScaleToFitAttributeName KCTRubyAnnotationScaleToFitAttributeName string // See: https://developer.apple.com/documentation/CoreText/kCTRubyAnnotationSizeFactorAttributeName KCTRubyAnnotationSizeFactorAttributeName string // KCTRunDelegateAttributeName is the run-delegate object to apply to an attribute range of the string. // // See: https://developer.apple.com/documentation/CoreText/kCTRunDelegateAttributeName KCTRunDelegateAttributeName string // KCTStrokeColorAttributeName is the stroke color. // // See: https://developer.apple.com/documentation/CoreText/kCTStrokeColorAttributeName KCTStrokeColorAttributeName string // KCTStrokeWidthAttributeName is the stroke width. // // See: https://developer.apple.com/documentation/CoreText/kCTStrokeWidthAttributeName KCTStrokeWidthAttributeName string // KCTSuperscriptAttributeName is controls vertical text positioning. // // See: https://developer.apple.com/documentation/CoreText/kCTSuperscriptAttributeName KCTSuperscriptAttributeName string // See: https://developer.apple.com/documentation/CoreText/kCTTabColumnTerminatorsAttributeName KCTTabColumnTerminatorsAttributeName string // KCTTrackingAttributeName is the tracking for the text. // // See: https://developer.apple.com/documentation/CoreText/kCTTrackingAttributeName KCTTrackingAttributeName string // KCTTypesetterOptionAllowUnboundedLayout is a key that specifies whether the text system lays out text that requires unreasonable effort. // // See: https://developer.apple.com/documentation/CoreText/kCTTypesetterOptionAllowUnboundedLayout KCTTypesetterOptionAllowUnboundedLayout string // KCTTypesetterOptionForcedEmbeddingLevel is a key that specifies the embedding level of the typesetter’s text. // // See: https://developer.apple.com/documentation/CoreText/kCTTypesetterOptionForcedEmbeddingLevel KCTTypesetterOptionForcedEmbeddingLevel string // KCTUnderlineColorAttributeName is the underline color. // // See: https://developer.apple.com/documentation/CoreText/kCTUnderlineColorAttributeName KCTUnderlineColorAttributeName string // KCTUnderlineStyleAttributeName is the style of underlining, to be applied at render time, for the text to which this attribute applies. // // See: https://developer.apple.com/documentation/CoreText/kCTUnderlineStyleAttributeName KCTUnderlineStyleAttributeName string // KCTVerticalFormsAttributeName is the orientation of the glyphs in the text to which this attribute applies. // // See: https://developer.apple.com/documentation/CoreText/kCTVerticalFormsAttributeName KCTVerticalFormsAttributeName string // See: https://developer.apple.com/documentation/CoreText/kCTWritingDirectionAttributeName KCTWritingDirectionAttributeName string )
Functions ¶
func BindFunc ¶
BindFunc binds the CoreText symbol name into fptr, which must be a pointer to a func variable.
The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.
func CTFontCollectionCopyExclusionDescriptors ¶
func CTFontCollectionCopyExclusionDescriptors(collection CTFontCollectionRef) corefoundation.CFArrayRef
CTFontCollectionCopyExclusionDescriptors retrieves the array of descriptors to exclude from the match.
It panics if CTFontCollectionCopyExclusionDescriptors is unavailable at run time; use TryCTFontCollectionCopyExclusionDescriptors to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionCopyExclusionDescriptors(_:)
func CTFontCollectionCopyFontAttribute ¶
func CTFontCollectionCopyFontAttribute(collection CTFontCollectionRef, attributeName corefoundation.CFStringRef, options CTFontCollectionCopyOptions) corefoundation.CFArrayRef
CTFontCollectionCopyFontAttribute retrieves an array of font descriptor attribute values.
It panics if CTFontCollectionCopyFontAttribute is unavailable at run time; use TryCTFontCollectionCopyFontAttribute to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionCopyFontAttribute(_:_:_:)
func CTFontCollectionCopyFontAttributes ¶
func CTFontCollectionCopyFontAttributes(collection CTFontCollectionRef, attributeNames corefoundation.CFSetRef, options CTFontCollectionCopyOptions) corefoundation.CFArrayRef
CTFontCollectionCopyFontAttributes retrieves an array of dictionaries containing font descriptor attribute values.
It panics if CTFontCollectionCopyFontAttributes is unavailable at run time; use TryCTFontCollectionCopyFontAttributes to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionCopyFontAttributes(_:_:_:)
func CTFontCollectionCopyQueryDescriptors ¶
func CTFontCollectionCopyQueryDescriptors(collection CTFontCollectionRef) corefoundation.CFArrayRef
CTFontCollectionCopyQueryDescriptors retrieves the array of descriptors for font matching.
It panics if CTFontCollectionCopyQueryDescriptors is unavailable at run time; use TryCTFontCollectionCopyQueryDescriptors to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionCopyQueryDescriptors(_:)
func CTFontCollectionCreateMatchingFontDescriptors ¶
func CTFontCollectionCreateMatchingFontDescriptors(collection CTFontCollectionRef) corefoundation.CFArrayRef
CTFontCollectionCreateMatchingFontDescriptors returns an array of font descriptors matching the collection.
It panics if CTFontCollectionCreateMatchingFontDescriptors is unavailable at run time; use TryCTFontCollectionCreateMatchingFontDescriptors to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionCreateMatchingFontDescriptors(_:)
func CTFontCollectionCreateMatchingFontDescriptorsForFamily ¶
func CTFontCollectionCreateMatchingFontDescriptorsForFamily(collection CTFontCollectionRef, familyName corefoundation.CFStringRef, options corefoundation.CFDictionaryRef) corefoundation.CFArrayRef
CTFontCollectionCreateMatchingFontDescriptorsForFamily retrieves an array of font descriptors that match the specified family, one descriptor for each style in the collection.
It panics if CTFontCollectionCreateMatchingFontDescriptorsForFamily is unavailable at run time; use TryCTFontCollectionCreateMatchingFontDescriptorsForFamily to get an error instead.
func CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback ¶
func CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(collection CTFontCollectionRef, sortCallback CTFontCollectionSortDescriptorsCallback, refCon uintptr) corefoundation.CFArrayRef
CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback returns the array of matching font descriptors sorted with the callback function.
It panics if CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback is unavailable at run time; use TryCTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback to get an error instead.
func CTFontCollectionCreateMatchingFontDescriptorsWithOptions ¶
func CTFontCollectionCreateMatchingFontDescriptorsWithOptions(collection CTFontCollectionRef, options corefoundation.CFDictionaryRef) corefoundation.CFArrayRef
CTFontCollectionCreateMatchingFontDescriptorsWithOptions creates an array of font descriptors that match the specified collection.
It panics if CTFontCollectionCreateMatchingFontDescriptorsWithOptions is unavailable at run time; use TryCTFontCollectionCreateMatchingFontDescriptorsWithOptions to get an error instead.
func CTFontCollectionGetTypeID ¶
func CTFontCollectionGetTypeID() uint
CTFontCollectionGetTypeID returns the type identifier for Core Text font collection references.
It panics if CTFontCollectionGetTypeID is unavailable at run time; use TryCTFontCollectionGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionGetTypeID()
func CTFontCollectionSetExclusionDescriptors ¶
func CTFontCollectionSetExclusionDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef)
CTFontCollectionSetExclusionDescriptors replaces the array of descriptors to exclude from the match.
It panics if CTFontCollectionSetExclusionDescriptors is unavailable at run time; use TryCTFontCollectionSetExclusionDescriptors to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionSetExclusionDescriptors(_:_:)
func CTFontCollectionSetQueryDescriptors ¶
func CTFontCollectionSetQueryDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef)
CTFontCollectionSetQueryDescriptors replaces the array of descriptors for font matching.
It panics if CTFontCollectionSetQueryDescriptors is unavailable at run time; use TryCTFontCollectionSetQueryDescriptors to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionSetQueryDescriptors(_:_:)
func CTFontCopyAttribute ¶
func CTFontCopyAttribute(font CTFontRef, attribute corefoundation.CFStringRef) corefoundation.CFTypeRef
CTFontCopyAttribute returns the value associated with an arbitrary attribute of the given font.
It panics if CTFontCopyAttribute is unavailable at run time; use TryCTFontCopyAttribute to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyAttribute(_:_:)
func CTFontCopyAvailableTables ¶
func CTFontCopyAvailableTables(font CTFontRef, options CTFontTableOptions) corefoundation.CFArrayRef
CTFontCopyAvailableTables returns an array of font table tags.
It panics if CTFontCopyAvailableTables is unavailable at run time; use TryCTFontCopyAvailableTables to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyAvailableTables(_:_:)
func CTFontCopyCharacterSet ¶
func CTFontCopyCharacterSet(font CTFontRef) corefoundation.CFCharacterSet
CTFontCopyCharacterSet returns the Unicode character set of the font.
It panics if CTFontCopyCharacterSet is unavailable at run time; use TryCTFontCopyCharacterSet to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyCharacterSet(_:)
func CTFontCopyDefaultCascadeListForLanguages ¶
func CTFontCopyDefaultCascadeListForLanguages(font CTFontRef, languagePrefList corefoundation.CFArrayRef) corefoundation.CFArrayRef
CTFontCopyDefaultCascadeListForLanguages retrieves an ordered list of font substitution preferences.
It panics if CTFontCopyDefaultCascadeListForLanguages is unavailable at run time; use TryCTFontCopyDefaultCascadeListForLanguages to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyDefaultCascadeListForLanguages(_:_:)
func CTFontCopyDisplayName ¶
func CTFontCopyDisplayName(font CTFontRef) corefoundation.CFStringRef
CTFontCopyDisplayName returns the display name of the given font.
It panics if CTFontCopyDisplayName is unavailable at run time; use TryCTFontCopyDisplayName to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyDisplayName(_:)
func CTFontCopyFamilyName ¶
func CTFontCopyFamilyName(font CTFontRef) corefoundation.CFStringRef
CTFontCopyFamilyName returns the family name of the given font.
It panics if CTFontCopyFamilyName is unavailable at run time; use TryCTFontCopyFamilyName to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyFamilyName(_:)
func CTFontCopyFeatureSettings ¶
func CTFontCopyFeatureSettings(font CTFontRef) corefoundation.CFArrayRef
CTFontCopyFeatureSettings returns an array of font feature-setting tuples.
It panics if CTFontCopyFeatureSettings is unavailable at run time; use TryCTFontCopyFeatureSettings to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyFeatureSettings(_:)
func CTFontCopyFeatures ¶
func CTFontCopyFeatures(font CTFontRef) corefoundation.CFArrayRef
CTFontCopyFeatures returns an array of font features.
It panics if CTFontCopyFeatures is unavailable at run time; use TryCTFontCopyFeatures to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyFeatures(_:)
func CTFontCopyFullName ¶
func CTFontCopyFullName(font CTFontRef) corefoundation.CFStringRef
CTFontCopyFullName returns the full name of the given font.
It panics if CTFontCopyFullName is unavailable at run time; use TryCTFontCopyFullName to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyFullName(_:)
func CTFontCopyGraphicsFont ¶
func CTFontCopyGraphicsFont(font CTFontRef, attributes *CTFontDescriptorRef) coregraphics.CGFont
CTFontCopyGraphicsFont returns a Core Graphics font reference and attributes.
It panics if CTFontCopyGraphicsFont is unavailable at run time; use TryCTFontCopyGraphicsFont to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyGraphicsFont(_:_:)
func CTFontCopyLocalizedName ¶
func CTFontCopyLocalizedName(font CTFontRef, nameKey corefoundation.CFStringRef, actualLanguage *corefoundation.CFStringRef) corefoundation.CFStringRef
CTFontCopyLocalizedName returns a reference to a localized name for the given font.
It panics if CTFontCopyLocalizedName is unavailable at run time; use TryCTFontCopyLocalizedName to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyLocalizedName(_:_:_:)
func CTFontCopyName ¶
func CTFontCopyName(font CTFontRef, nameKey corefoundation.CFStringRef) corefoundation.CFStringRef
CTFontCopyName returns a reference to the requested name of the given font.
It panics if CTFontCopyName is unavailable at run time; use TryCTFontCopyName to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyName(_:_:)
func CTFontCopyNameForGlyph ¶
func CTFontCopyNameForGlyph(font CTFontRef, glyph uint16) corefoundation.CFStringRef
CTFontCopyNameForGlyph retrieves the name for the specified glyph.
It panics if CTFontCopyNameForGlyph is unavailable at run time; use TryCTFontCopyNameForGlyph to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyNameForGlyph(_:_:)
func CTFontCopyPostScriptName ¶
func CTFontCopyPostScriptName(font CTFontRef) corefoundation.CFStringRef
CTFontCopyPostScriptName returns the PostScript name of the given font.
It panics if CTFontCopyPostScriptName is unavailable at run time; use TryCTFontCopyPostScriptName to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyPostScriptName(_:)
func CTFontCopySupportedLanguages ¶
func CTFontCopySupportedLanguages(font CTFontRef) corefoundation.CFArrayRef
CTFontCopySupportedLanguages returns an array of languages supported by the font.
It panics if CTFontCopySupportedLanguages is unavailable at run time; use TryCTFontCopySupportedLanguages to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopySupportedLanguages(_:)
func CTFontCopyTable ¶
func CTFontCopyTable(font CTFontRef, table CTFontTableTag, options CTFontTableOptions) corefoundation.CFDataRef
CTFontCopyTable returns a reference to the font table data.
It panics if CTFontCopyTable is unavailable at run time; use TryCTFontCopyTable to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyTable(_:_:_:)
func CTFontCopyTraits ¶
func CTFontCopyTraits(font CTFontRef) corefoundation.CFDictionaryRef
CTFontCopyTraits returns the traits dictionary of the given font.
It panics if CTFontCopyTraits is unavailable at run time; use TryCTFontCopyTraits to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyTraits(_:)
func CTFontCopyVariation ¶
func CTFontCopyVariation(font CTFontRef) corefoundation.CFDictionaryRef
CTFontCopyVariation returns a variation dictionary from the font reference.
It panics if CTFontCopyVariation is unavailable at run time; use TryCTFontCopyVariation to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyVariation(_:)
func CTFontCopyVariationAxes ¶
func CTFontCopyVariationAxes(font CTFontRef) corefoundation.CFArrayRef
CTFontCopyVariationAxes returns an array of variation axes.
It panics if CTFontCopyVariationAxes is unavailable at run time; use TryCTFontCopyVariationAxes to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyVariationAxes(_:)
func CTFontCreatePathForGlyph ¶
func CTFontCreatePathForGlyph(font CTFontRef, glyph uint16, matrix *corefoundation.CGAffineTransform) coregraphics.CGPathRef
CTFontCreatePathForGlyph creates a path for the specified glyph.
It panics if CTFontCreatePathForGlyph is unavailable at run time; use TryCTFontCreatePathForGlyph to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCreatePathForGlyph(_:_:_:)
func CTFontDescriptorCopyAttribute ¶
func CTFontDescriptorCopyAttribute(descriptor CTFontDescriptorRef, attribute corefoundation.CFStringRef) corefoundation.CFTypeRef
CTFontDescriptorCopyAttribute returns the value associated with an arbitrary attribute.
It panics if CTFontDescriptorCopyAttribute is unavailable at run time; use TryCTFontDescriptorCopyAttribute to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorCopyAttribute(_:_:)
func CTFontDescriptorCopyAttributes ¶
func CTFontDescriptorCopyAttributes(descriptor CTFontDescriptorRef) corefoundation.CFDictionaryRef
CTFontDescriptorCopyAttributes returns the attributes dictionary of the font descriptor.
It panics if CTFontDescriptorCopyAttributes is unavailable at run time; use TryCTFontDescriptorCopyAttributes to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorCopyAttributes(_:)
func CTFontDescriptorCopyLocalizedAttribute ¶
func CTFontDescriptorCopyLocalizedAttribute(descriptor CTFontDescriptorRef, attribute corefoundation.CFStringRef, language *corefoundation.CFStringRef) corefoundation.CFTypeRef
CTFontDescriptorCopyLocalizedAttribute returns a localized value for the requested attribute, if available.
It panics if CTFontDescriptorCopyLocalizedAttribute is unavailable at run time; use TryCTFontDescriptorCopyLocalizedAttribute to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorCopyLocalizedAttribute(_:_:_:)
func CTFontDescriptorCreateMatchingFontDescriptors ¶
func CTFontDescriptorCreateMatchingFontDescriptors(descriptor CTFontDescriptorRef, mandatoryAttributes corefoundation.CFSetRef) corefoundation.CFArrayRef
CTFontDescriptorCreateMatchingFontDescriptors returns an array of normalized font descriptors matching the provided descriptor.
It panics if CTFontDescriptorCreateMatchingFontDescriptors is unavailable at run time; use TryCTFontDescriptorCreateMatchingFontDescriptors to get an error instead.
func CTFontDescriptorGetTypeID ¶
func CTFontDescriptorGetTypeID() uint
CTFontDescriptorGetTypeID returns the type identifier for Core Text font descriptor references.
It panics if CTFontDescriptorGetTypeID is unavailable at run time; use TryCTFontDescriptorGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorGetTypeID()
func CTFontDescriptorMatchFontDescriptorsWithProgressHandler ¶
func CTFontDescriptorMatchFontDescriptorsWithProgressHandler(descriptors corefoundation.CFArrayRef, mandatoryAttributes corefoundation.CFSetRef, progressBlock CTFontDescriptorProgressHandler) bool
CTFontDescriptorMatchFontDescriptorsWithProgressHandler matches font descriptors and tracks progress with a progress handler.
It panics if CTFontDescriptorMatchFontDescriptorsWithProgressHandler is unavailable at run time; use TryCTFontDescriptorMatchFontDescriptorsWithProgressHandler to get an error instead.
func CTFontDrawGlyphs ¶
func CTFontDrawGlyphs(font CTFontRef, glyphs unsafe.Pointer, positions *corefoundation.CGPoint, count uintptr, context coregraphics.CGContextRef)
CTFontDrawGlyphs renders the given glyphs of a font at the specified positions in the supplied graphics context.
It panics if CTFontDrawGlyphs is unavailable at run time; use TryCTFontDrawGlyphs to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontDrawGlyphs(_:_:_:_:_:)
func CTFontDrawImageFromAdaptiveImageProviderAtPoint ¶
func CTFontDrawImageFromAdaptiveImageProviderAtPoint(font CTFontRef, provider CTAdaptiveImageProvidingObject, point corefoundation.CGPoint, context coregraphics.CGContextRef)
CTFontDrawImageFromAdaptiveImageProviderAtPoint.
It panics if CTFontDrawImageFromAdaptiveImageProviderAtPoint is unavailable at run time; use TryCTFontDrawImageFromAdaptiveImageProviderAtPoint to get an error instead.
func CTFontGetAdvancesForGlyphs ¶
func CTFontGetAdvancesForGlyphs(font CTFontRef, orientation CTFontOrientation, glyphs unsafe.Pointer, advances *corefoundation.CGSize, count int) float64
CTFontGetAdvancesForGlyphs calculates the advances for an array of glyphs and returns the summed advance.
It panics if CTFontGetAdvancesForGlyphs is unavailable at run time; use TryCTFontGetAdvancesForGlyphs to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetAdvancesForGlyphs(_:_:_:_:_:)
func CTFontGetAscent ¶
CTFontGetAscent returns the scaled font-ascent metric of the given font.
It panics if CTFontGetAscent is unavailable at run time; use TryCTFontGetAscent to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetAscent(_:)
func CTFontGetBoundingBox ¶
func CTFontGetBoundingBox(font CTFontRef) corefoundation.CGRect
CTFontGetBoundingBox returns the scaled bounding box of the given font.
It panics if CTFontGetBoundingBox is unavailable at run time; use TryCTFontGetBoundingBox to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetBoundingBox(_:)
func CTFontGetBoundingRectsForGlyphs ¶
func CTFontGetBoundingRectsForGlyphs(font CTFontRef, orientation CTFontOrientation, glyphs unsafe.Pointer, boundingRects *corefoundation.CGRect, count int) corefoundation.CGRect
CTFontGetBoundingRectsForGlyphs calculates the bounding rects for an array of glyphs and returns the overall bounding rectangle for the glyph run.
It panics if CTFontGetBoundingRectsForGlyphs is unavailable at run time; use TryCTFontGetBoundingRectsForGlyphs to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetBoundingRectsForGlyphs(_:_:_:_:_:)
func CTFontGetCapHeight ¶
CTFontGetCapHeight returns the cap-height metric of the given font.
It panics if CTFontGetCapHeight is unavailable at run time; use TryCTFontGetCapHeight to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetCapHeight(_:)
func CTFontGetDescent ¶
CTFontGetDescent returns the scaled font-descent metric of the given font.
It panics if CTFontGetDescent is unavailable at run time; use TryCTFontGetDescent to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetDescent(_:)
func CTFontGetGlyphCount ¶
CTFontGetGlyphCount returns the number of glyphs of the given font.
It panics if CTFontGetGlyphCount is unavailable at run time; use TryCTFontGetGlyphCount to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetGlyphCount(_:)
func CTFontGetGlyphWithName ¶
func CTFontGetGlyphWithName(font CTFontRef, glyphName corefoundation.CFStringRef) uint16
CTFontGetGlyphWithName returns the glyph for the specified name.
It panics if CTFontGetGlyphWithName is unavailable at run time; use TryCTFontGetGlyphWithName to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetGlyphWithName(_:_:)
func CTFontGetGlyphsForCharacters ¶
func CTFontGetGlyphsForCharacters(font CTFontRef, characters *uint16, glyphs unsafe.Pointer, count int) bool
CTFontGetGlyphsForCharacters performs basic character-to-glyph mapping.
It panics if CTFontGetGlyphsForCharacters is unavailable at run time; use TryCTFontGetGlyphsForCharacters to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetGlyphsForCharacters(_:_:_:_:)
func CTFontGetLeading ¶
CTFontGetLeading returns the scaled font-leading metric of the given font.
It panics if CTFontGetLeading is unavailable at run time; use TryCTFontGetLeading to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetLeading(_:)
func CTFontGetLigatureCaretPositions ¶
func CTFontGetLigatureCaretPositions(font CTFontRef, glyph uint16, positions *float64, maxPositions int) int
CTFontGetLigatureCaretPositions returns caret positions within a glyph.
It panics if CTFontGetLigatureCaretPositions is unavailable at run time; use TryCTFontGetLigatureCaretPositions to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetLigatureCaretPositions(_:_:_:_:)
func CTFontGetMatrix ¶
func CTFontGetMatrix(font CTFontRef) corefoundation.CGAffineTransform
CTFontGetMatrix returns the transformation matrix of the given font.
It panics if CTFontGetMatrix is unavailable at run time; use TryCTFontGetMatrix to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetMatrix(_:)
func CTFontGetOpticalBoundsForGlyphs ¶
func CTFontGetOpticalBoundsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, boundingRects *corefoundation.CGRect, count int, options uint) corefoundation.CGRect
CTFontGetOpticalBoundsForGlyphs calculates the optical bounds for an array of glyphs and returns the overall optical bounds for the run.
It panics if CTFontGetOpticalBoundsForGlyphs is unavailable at run time; use TryCTFontGetOpticalBoundsForGlyphs to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetOpticalBoundsForGlyphs(_:_:_:_:_:)
func CTFontGetSize ¶
CTFontGetSize returns the point size of the given font.
It panics if CTFontGetSize is unavailable at run time; use TryCTFontGetSize to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetSize(_:)
func CTFontGetSlantAngle ¶
CTFontGetSlantAngle returns the slant angle of the given font.
It panics if CTFontGetSlantAngle is unavailable at run time; use TryCTFontGetSlantAngle to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetSlantAngle(_:)
func CTFontGetStringEncoding ¶
CTFontGetStringEncoding returns the best string encoding for legacy format support.
It panics if CTFontGetStringEncoding is unavailable at run time; use TryCTFontGetStringEncoding to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetStringEncoding(_:)
func CTFontGetTypeID ¶
func CTFontGetTypeID() uint
CTFontGetTypeID returns the type identifier for Core Text font references.
It panics if CTFontGetTypeID is unavailable at run time; use TryCTFontGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetTypeID()
func CTFontGetTypographicBoundsForAdaptiveImageProvider ¶
func CTFontGetTypographicBoundsForAdaptiveImageProvider(font CTFontRef, provider CTAdaptiveImageProvidingObject) corefoundation.CGRect
CTFontGetTypographicBoundsForAdaptiveImageProvider.
It panics if CTFontGetTypographicBoundsForAdaptiveImageProvider is unavailable at run time; use TryCTFontGetTypographicBoundsForAdaptiveImageProvider to get an error instead.
func CTFontGetUnderlinePosition ¶
CTFontGetUnderlinePosition returns the scaled underline position of the given font.
It panics if CTFontGetUnderlinePosition is unavailable at run time; use TryCTFontGetUnderlinePosition to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetUnderlinePosition(_:)
func CTFontGetUnderlineThickness ¶
CTFontGetUnderlineThickness returns the scaled underline-thickness metric of the given font.
It panics if CTFontGetUnderlineThickness is unavailable at run time; use TryCTFontGetUnderlineThickness to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetUnderlineThickness(_:)
func CTFontGetUnitsPerEm ¶
CTFontGetUnitsPerEm returns the units-per-em metric of the given font.
It panics if CTFontGetUnitsPerEm is unavailable at run time; use TryCTFontGetUnitsPerEm to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetUnitsPerEm(_:)
func CTFontGetVerticalTranslationsForGlyphs ¶
func CTFontGetVerticalTranslationsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, translations *corefoundation.CGSize, count int)
CTFontGetVerticalTranslationsForGlyphs calculates the offset from the default (horizontal) origin to the vertical origin for an array of glyphs.
It panics if CTFontGetVerticalTranslationsForGlyphs is unavailable at run time; use TryCTFontGetVerticalTranslationsForGlyphs to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetVerticalTranslationsForGlyphs(_:_:_:_:)
func CTFontGetXHeight ¶
CTFontGetXHeight returns the x-height metric of the given font.
It panics if CTFontGetXHeight is unavailable at run time; use TryCTFontGetXHeight to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetXHeight(_:)
func CTFontHasTable ¶
func CTFontHasTable(font CTFontRef, tag CTFontTableTag) bool
CTFontHasTable.
It panics if CTFontHasTable is unavailable at run time; use TryCTFontHasTable to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontHasTable(_:_:)
func CTFontManagerCompareFontFamilyNames ¶
func CTFontManagerCompareFontFamilyNames(family1 unsafe.Pointer, family2 unsafe.Pointer, context unsafe.Pointer) corefoundation.CFComparisonResult
CTFontManagerCompareFontFamilyNames a comparator function to compare font family names and sort them according to Apple guidelines.
It panics if CTFontManagerCompareFontFamilyNames is unavailable at run time; use TryCTFontManagerCompareFontFamilyNames to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerCompareFontFamilyNames(_:_:_:)
func CTFontManagerCopyAvailableFontFamilyNames ¶
func CTFontManagerCopyAvailableFontFamilyNames() corefoundation.CFArrayRef
CTFontManagerCopyAvailableFontFamilyNames returns an array of visible font family names sorted for user interface display.
It panics if CTFontManagerCopyAvailableFontFamilyNames is unavailable at run time; use TryCTFontManagerCopyAvailableFontFamilyNames to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerCopyAvailableFontFamilyNames()
func CTFontManagerCopyAvailableFontURLs ¶
func CTFontManagerCopyAvailableFontURLs() corefoundation.CFArrayRef
CTFontManagerCopyAvailableFontURLs returns an array of font URLs.
It panics if CTFontManagerCopyAvailableFontURLs is unavailable at run time; use TryCTFontManagerCopyAvailableFontURLs to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerCopyAvailableFontURLs()
func CTFontManagerCopyAvailablePostScriptNames ¶
func CTFontManagerCopyAvailablePostScriptNames() corefoundation.CFArrayRef
CTFontManagerCopyAvailablePostScriptNames returns an array of unique PostScript font names for the fonts.
It panics if CTFontManagerCopyAvailablePostScriptNames is unavailable at run time; use TryCTFontManagerCopyAvailablePostScriptNames to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerCopyAvailablePostScriptNames()
func CTFontManagerCreateFontDescriptorsFromData ¶
func CTFontManagerCreateFontDescriptorsFromData(data corefoundation.CFDataRef) corefoundation.CFArrayRef
CTFontManagerCreateFontDescriptorsFromData creates an array of font descriptors for the fonts in the supplied data.
It panics if CTFontManagerCreateFontDescriptorsFromData is unavailable at run time; use TryCTFontManagerCreateFontDescriptorsFromData to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerCreateFontDescriptorsFromData(_:)
func CTFontManagerCreateFontDescriptorsFromURL ¶
func CTFontManagerCreateFontDescriptorsFromURL(fileURL corefoundation.CFURLRef) corefoundation.CFArrayRef
CTFontManagerCreateFontDescriptorsFromURL returns an array of font descriptors representing each of the fonts in the specified URL.
It panics if CTFontManagerCreateFontDescriptorsFromURL is unavailable at run time; use TryCTFontManagerCreateFontDescriptorsFromURL to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerCreateFontDescriptorsFromURL(_:)
func CTFontManagerCreateFontRequestRunLoopSource
deprecated
func CTFontManagerCreateFontRequestRunLoopSource(sourceOrder int, createMatchesCallback corefoundation.CFArrayRef) corefoundation.CFRunLoopSourceRef
CTFontManagerCreateFontRequestRunLoopSource creates a reference to a run loop source used to convey font requests from the Font Manager.
It panics if CTFontManagerCreateFontRequestRunLoopSource is unavailable at run time; use TryCTFontManagerCreateFontRequestRunLoopSource to get an error instead.
Deprecated: Deprecated since macOS 11.0. This functionality will be removed in a future release
See: https://developer.apple.com/documentation/CoreText/CTFontManagerCreateFontRequestRunLoopSource(_:_:)
func CTFontManagerEnableFontDescriptors ¶
func CTFontManagerEnableFontDescriptors(descriptors corefoundation.CFArrayRef, enable bool)
CTFontManagerEnableFontDescriptors enables or disables the matching font descriptors for font descriptor matching.
It panics if CTFontManagerEnableFontDescriptors is unavailable at run time; use TryCTFontManagerEnableFontDescriptors to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerEnableFontDescriptors(_:_:)
func CTFontManagerIsSupportedFont ¶
func CTFontManagerIsSupportedFont(fontURL corefoundation.CFURLRef) bool
CTFontManagerIsSupportedFont determines whether a file is in a supported font format.
It panics if CTFontManagerIsSupportedFont is unavailable at run time; use TryCTFontManagerIsSupportedFont to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerIsSupportedFont(_:)
func CTFontManagerRegisterFontDescriptors ¶
func CTFontManagerRegisterFontDescriptors(fontDescriptors corefoundation.CFArrayRef, scope CTFontManagerScope, enabled bool, registrationHandler bool)
CTFontManagerRegisterFontDescriptors registers font descriptors with the font manager.
It panics if CTFontManagerRegisterFontDescriptors is unavailable at run time; use TryCTFontManagerRegisterFontDescriptors to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerRegisterFontDescriptors(_:_:_:_:)
func CTFontManagerRegisterFontURLs ¶
func CTFontManagerRegisterFontURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, enabled bool, registrationHandler bool)
CTFontManagerRegisterFontURLs registers fonts from the specified font URLs with the font manager.
It panics if CTFontManagerRegisterFontURLs is unavailable at run time; use TryCTFontManagerRegisterFontURLs to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerRegisterFontURLs(_:_:_:_:)
func CTFontManagerRegisterFontsForURL ¶
func CTFontManagerRegisterFontsForURL(fontURL corefoundation.CFURLRef, scope CTFontManagerScope, err *corefoundation.CFErrorRef) bool
CTFontManagerRegisterFontsForURL registers fonts from the specified font URL with the Font Manager.
It panics if CTFontManagerRegisterFontsForURL is unavailable at run time; use TryCTFontManagerRegisterFontsForURL to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerRegisterFontsForURL(_:_:_:)
func CTFontManagerRegisterFontsForURLs
deprecated
func CTFontManagerRegisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, errors *corefoundation.CFArrayRef) bool
CTFontManagerRegisterFontsForURLs registers fonts from the specified array of font URLs with the Font Manager.
It panics if CTFontManagerRegisterFontsForURLs is unavailable at run time; use TryCTFontManagerRegisterFontsForURLs to get an error instead.
Deprecated: Deprecated since macOS 10.15.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerRegisterFontsForURLs(_:_:_:)
func CTFontManagerRegisterGraphicsFont
deprecated
func CTFontManagerRegisterGraphicsFont(font coregraphics.CGFont, err *corefoundation.CFErrorRef) bool
CTFontManagerRegisterGraphicsFont registers the specified graphics font with the font manager.
It panics if CTFontManagerRegisterGraphicsFont is unavailable at run time; use TryCTFontManagerRegisterGraphicsFont to get an error instead.
Deprecated: Deprecated since macOS 15.0. Use CTFontManagerCreateFontDescriptorsFromData or CTFontManagerRegisterFontsForURL
See: https://developer.apple.com/documentation/CoreText/CTFontManagerRegisterGraphicsFont(_:_:)
func CTFontManagerSetAutoActivationSetting ¶
func CTFontManagerSetAutoActivationSetting(bundleIdentifier corefoundation.CFStringRef, setting CTFontManagerAutoActivationSetting)
CTFontManagerSetAutoActivationSetting sets the auto-activation setting for the specified bundle identifier.
It panics if CTFontManagerSetAutoActivationSetting is unavailable at run time; use TryCTFontManagerSetAutoActivationSetting to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerSetAutoActivationSetting(_:_:)
func CTFontManagerUnregisterFontDescriptors ¶
func CTFontManagerUnregisterFontDescriptors(fontDescriptors corefoundation.CFArrayRef, scope CTFontManagerScope, registrationHandler bool)
CTFontManagerUnregisterFontDescriptors unregisters font descriptors with the font manager.
It panics if CTFontManagerUnregisterFontDescriptors is unavailable at run time; use TryCTFontManagerUnregisterFontDescriptors to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerUnregisterFontDescriptors(_:_:_:)
func CTFontManagerUnregisterFontURLs ¶
func CTFontManagerUnregisterFontURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, registrationHandler bool)
CTFontManagerUnregisterFontURLs unregisters fonts from the specified font URLs with the font manager.
It panics if CTFontManagerUnregisterFontURLs is unavailable at run time; use TryCTFontManagerUnregisterFontURLs to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerUnregisterFontURLs(_:_:_:)
func CTFontManagerUnregisterFontsForURL ¶
func CTFontManagerUnregisterFontsForURL(fontURL corefoundation.CFURLRef, scope CTFontManagerScope, err *corefoundation.CFErrorRef) bool
CTFontManagerUnregisterFontsForURL unregisters fonts from the specified font URL with the Font Manager.
It panics if CTFontManagerUnregisterFontsForURL is unavailable at run time; use TryCTFontManagerUnregisterFontsForURL to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerUnregisterFontsForURL(_:_:_:)
func CTFontManagerUnregisterFontsForURLs
deprecated
func CTFontManagerUnregisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, errors *corefoundation.CFArrayRef) bool
CTFontManagerUnregisterFontsForURLs unregisters fonts from the specified array of font URLs with the Font Manager.
It panics if CTFontManagerUnregisterFontsForURLs is unavailable at run time; use TryCTFontManagerUnregisterFontsForURLs to get an error instead.
Deprecated: Deprecated since macOS 10.15.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerUnregisterFontsForURLs(_:_:_:)
func CTFontManagerUnregisterGraphicsFont
deprecated
func CTFontManagerUnregisterGraphicsFont(font coregraphics.CGFont, err *corefoundation.CFErrorRef) bool
CTFontManagerUnregisterGraphicsFont unregisters the specified graphics font with the font manager.
It panics if CTFontManagerUnregisterGraphicsFont is unavailable at run time; use TryCTFontManagerUnregisterGraphicsFont to get an error instead.
Deprecated: Deprecated since macOS 15.0. Use the API corresponding to the one used to register the font
See: https://developer.apple.com/documentation/CoreText/CTFontManagerUnregisterGraphicsFont(_:_:)
func CTFrameDraw ¶
func CTFrameDraw(frame CTFrameRef, context coregraphics.CGContextRef)
CTFrameDraw draws an entire frame into a context.
It panics if CTFrameDraw is unavailable at run time; use TryCTFrameDraw to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFrameDraw(_:_:)
func CTFrameGetFrameAttributes ¶
func CTFrameGetFrameAttributes(frame CTFrameRef) corefoundation.CFDictionaryRef
CTFrameGetFrameAttributes returns the frame attributes used to create the frame.
It panics if CTFrameGetFrameAttributes is unavailable at run time; use TryCTFrameGetFrameAttributes to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFrameGetFrameAttributes(_:)
func CTFrameGetLineOrigins ¶
func CTFrameGetLineOrigins(frame CTFrameRef, range_ corefoundation.CFRange, origins *corefoundation.CGPoint)
CTFrameGetLineOrigins copies a range of line origins for a frame.
It panics if CTFrameGetLineOrigins is unavailable at run time; use TryCTFrameGetLineOrigins to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFrameGetLineOrigins(_:_:_:)
func CTFrameGetLines ¶
func CTFrameGetLines(frame CTFrameRef) corefoundation.CFArrayRef
CTFrameGetLines returns an array of lines stored in the frame.
It panics if CTFrameGetLines is unavailable at run time; use TryCTFrameGetLines to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFrameGetLines(_:)
func CTFrameGetPath ¶
func CTFrameGetPath(frame CTFrameRef) coregraphics.CGPathRef
CTFrameGetPath returns the path used to create the frame.
It panics if CTFrameGetPath is unavailable at run time; use TryCTFrameGetPath to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFrameGetPath(_:)
func CTFrameGetStringRange ¶
func CTFrameGetStringRange(frame CTFrameRef) corefoundation.CFRange
CTFrameGetStringRange returns the range of characters originally requested to fill the frame.
It panics if CTFrameGetStringRange is unavailable at run time; use TryCTFrameGetStringRange to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFrameGetStringRange(_:)
func CTFrameGetTypeID ¶
func CTFrameGetTypeID() uint
CTFrameGetTypeID returns the type identifier for the CTFrame opaque type.
It panics if CTFrameGetTypeID is unavailable at run time; use TryCTFrameGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFrameGetTypeID()
func CTFrameGetVisibleStringRange ¶
func CTFrameGetVisibleStringRange(frame CTFrameRef) corefoundation.CFRange
CTFrameGetVisibleStringRange returns the range of characters that actually fit in the frame.
It panics if CTFrameGetVisibleStringRange is unavailable at run time; use TryCTFrameGetVisibleStringRange to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFrameGetVisibleStringRange(_:)
func CTFramesetterGetTypeID ¶
func CTFramesetterGetTypeID() uint
CTFramesetterGetTypeID returns the Core Foundation type identifier of the framesetter object.
It panics if CTFramesetterGetTypeID is unavailable at run time; use TryCTFramesetterGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFramesetterGetTypeID()
func CTFramesetterSuggestFrameSizeWithConstraints ¶
func CTFramesetterSuggestFrameSizeWithConstraints(framesetter CTFramesetterRef, stringRange corefoundation.CFRange, frameAttributes corefoundation.CFDictionaryRef, constraints corefoundation.CGSize, fitRange *corefoundation.CFRange) corefoundation.CGSize
CTFramesetterSuggestFrameSizeWithConstraints determines the frame size needed for a string range.
It panics if CTFramesetterSuggestFrameSizeWithConstraints is unavailable at run time; use TryCTFramesetterSuggestFrameSizeWithConstraints to get an error instead.
func CTGetCoreTextVersion
deprecated
func CTGetCoreTextVersion() uint32
CTGetCoreTextVersion returns the version of the Core Text framework.
It panics if CTGetCoreTextVersion is unavailable at run time; use TryCTGetCoreTextVersion to get an error instead.
Deprecated: Deprecated since macOS 11.0. Use -[NSProcessInfo operatingSystemVersion]
See: https://developer.apple.com/documentation/CoreText/CTGetCoreTextVersion()
func CTGlyphInfoGetCharacterIdentifier ¶
func CTGlyphInfoGetCharacterIdentifier(glyphInfo CTGlyphInfoRef) uint16
CTGlyphInfoGetCharacterIdentifier gets the character identifier for a glyph info object.
It panics if CTGlyphInfoGetCharacterIdentifier is unavailable at run time; use TryCTGlyphInfoGetCharacterIdentifier to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTGlyphInfoGetCharacterIdentifier(_:)
func CTGlyphInfoGetGlyph ¶
func CTGlyphInfoGetGlyph(glyphInfo CTGlyphInfoRef) uint16
CTGlyphInfoGetGlyph retrieves the glyph for a glyph info, if that object exists.
It panics if CTGlyphInfoGetGlyph is unavailable at run time; use TryCTGlyphInfoGetGlyph to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTGlyphInfoGetGlyph(_:)
func CTGlyphInfoGetGlyphName ¶
func CTGlyphInfoGetGlyphName(glyphInfo CTGlyphInfoRef) corefoundation.CFStringRef
CTGlyphInfoGetGlyphName retrieves the glyph name for a glyph info object, if that object exists.
It panics if CTGlyphInfoGetGlyphName is unavailable at run time; use TryCTGlyphInfoGetGlyphName to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTGlyphInfoGetGlyphName(_:)
func CTGlyphInfoGetTypeID ¶
func CTGlyphInfoGetTypeID() uint
CTGlyphInfoGetTypeID returns the Core Foundation type identifier of the glyph info object
It panics if CTGlyphInfoGetTypeID is unavailable at run time; use TryCTGlyphInfoGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTGlyphInfoGetTypeID()
func CTLineDraw ¶
func CTLineDraw(line CTLineRef, context coregraphics.CGContextRef)
CTLineDraw draws a complete line.
It panics if CTLineDraw is unavailable at run time; use TryCTLineDraw to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineDraw(_:_:)
func CTLineEnumerateCaretOffsets ¶
func CTLineEnumerateCaretOffsets(line CTLineRef)
CTLineEnumerateCaretOffsets enumerates caret offsets for characters in a line.
It panics if CTLineEnumerateCaretOffsets is unavailable at run time; use TryCTLineEnumerateCaretOffsets to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineEnumerateCaretOffsets(_:_:)
func CTLineGetBoundsWithOptions ¶
func CTLineGetBoundsWithOptions(line CTLineRef, options CTLineBoundsOptions) corefoundation.CGRect
CTLineGetBoundsWithOptions calculates the bounds for a line.
It panics if CTLineGetBoundsWithOptions is unavailable at run time; use TryCTLineGetBoundsWithOptions to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineGetBoundsWithOptions(_:_:)
func CTLineGetGlyphCount ¶
CTLineGetGlyphCount returns the total glyph count for the line object.
It panics if CTLineGetGlyphCount is unavailable at run time; use TryCTLineGetGlyphCount to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineGetGlyphCount(_:)
func CTLineGetGlyphRuns ¶
func CTLineGetGlyphRuns(line CTLineRef) corefoundation.CFArrayRef
CTLineGetGlyphRuns returns the array of glyph runs that make up the line object.
It panics if CTLineGetGlyphRuns is unavailable at run time; use TryCTLineGetGlyphRuns to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineGetGlyphRuns(_:)
func CTLineGetImageBounds ¶
func CTLineGetImageBounds(line CTLineRef, context coregraphics.CGContextRef) corefoundation.CGRect
CTLineGetImageBounds calculates the image bounds for a line.
It panics if CTLineGetImageBounds is unavailable at run time; use TryCTLineGetImageBounds to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineGetImageBounds(_:_:)
func CTLineGetOffsetForStringIndex ¶
CTLineGetOffsetForStringIndex determines the graphical offset or offsets for a string index.
It panics if CTLineGetOffsetForStringIndex is unavailable at run time; use TryCTLineGetOffsetForStringIndex to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineGetOffsetForStringIndex(_:_:_:)
func CTLineGetPenOffsetForFlush ¶
CTLineGetPenOffsetForFlush gets the pen offset required to draw flush text.
It panics if CTLineGetPenOffsetForFlush is unavailable at run time; use TryCTLineGetPenOffsetForFlush to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineGetPenOffsetForFlush(_:_:_:)
func CTLineGetStringIndexForPosition ¶
func CTLineGetStringIndexForPosition(line CTLineRef, position corefoundation.CGPoint) int
CTLineGetStringIndexForPosition performs hit testing.
It panics if CTLineGetStringIndexForPosition is unavailable at run time; use TryCTLineGetStringIndexForPosition to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineGetStringIndexForPosition(_:_:)
func CTLineGetStringRange ¶
func CTLineGetStringRange(line CTLineRef) corefoundation.CFRange
CTLineGetStringRange gets the range of characters that originally spawned the glyphs in the line.
It panics if CTLineGetStringRange is unavailable at run time; use TryCTLineGetStringRange to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineGetStringRange(_:)
func CTLineGetTrailingWhitespaceWidth ¶
CTLineGetTrailingWhitespaceWidth returns the trailing whitespace width for a line.
It panics if CTLineGetTrailingWhitespaceWidth is unavailable at run time; use TryCTLineGetTrailingWhitespaceWidth to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineGetTrailingWhitespaceWidth(_:)
func CTLineGetTypeID ¶
func CTLineGetTypeID() uint
CTLineGetTypeID returns the Core Foundation type identifier of the line object.
It panics if CTLineGetTypeID is unavailable at run time; use TryCTLineGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineGetTypeID()
func CTLineGetTypographicBounds ¶
func CTLineGetTypographicBounds(line CTLineRef, ascent *float64, descent *float64, leading *float64) float64
CTLineGetTypographicBounds calculates the typographic bounds of a line.
It panics if CTLineGetTypographicBounds is unavailable at run time; use TryCTLineGetTypographicBounds to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineGetTypographicBounds(_:_:_:_:)
func CTParagraphStyleGetTypeID ¶
func CTParagraphStyleGetTypeID() uint
CTParagraphStyleGetTypeID returns the Core Foundation type identifier of the paragraph style object.
It panics if CTParagraphStyleGetTypeID is unavailable at run time; use TryCTParagraphStyleGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTParagraphStyleGetTypeID()
func CTParagraphStyleGetValueForSpecifier ¶
func CTParagraphStyleGetValueForSpecifier(paragraphStyle CTParagraphStyleRef, spec CTParagraphStyleSpecifier, valueBufferSize uintptr, valueBuffer unsafe.Pointer) bool
CTParagraphStyleGetValueForSpecifier obtains the current value for a single setting specifier.
It panics if CTParagraphStyleGetValueForSpecifier is unavailable at run time; use TryCTParagraphStyleGetValueForSpecifier to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTParagraphStyleGetValueForSpecifier(_:_:_:_:)
func CTRubyAnnotationGetSizeFactor ¶
func CTRubyAnnotationGetSizeFactor(rubyAnnotation CTRubyAnnotationRef) float64
CTRubyAnnotationGetSizeFactor retrieves the size factor of a ruby annotation object.
It panics if CTRubyAnnotationGetSizeFactor is unavailable at run time; use TryCTRubyAnnotationGetSizeFactor to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRubyAnnotationGetSizeFactor(_:)
func CTRubyAnnotationGetTextForPosition ¶
func CTRubyAnnotationGetTextForPosition(rubyAnnotation CTRubyAnnotationRef, position CTRubyPosition) corefoundation.CFStringRef
CTRubyAnnotationGetTextForPosition retrieves the ruby text for a particular position in a ruby annotation.
It panics if CTRubyAnnotationGetTextForPosition is unavailable at run time; use TryCTRubyAnnotationGetTextForPosition to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRubyAnnotationGetTextForPosition(_:_:)
func CTRubyAnnotationGetTypeID ¶
func CTRubyAnnotationGetTypeID() uint
CTRubyAnnotationGetTypeID retrieves the type of the ruby annotation object.
It panics if CTRubyAnnotationGetTypeID is unavailable at run time; use TryCTRubyAnnotationGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRubyAnnotationGetTypeID()
func CTRunDelegateGetRefCon ¶
func CTRunDelegateGetRefCon(runDelegate CTRunDelegateRef) unsafe.Pointer
CTRunDelegateGetRefCon returns a run delegate’s “refCon” value.
It panics if CTRunDelegateGetRefCon is unavailable at run time; use TryCTRunDelegateGetRefCon to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunDelegateGetRefCon(_:)
func CTRunDelegateGetTypeID ¶
func CTRunDelegateGetTypeID() uint
CTRunDelegateGetTypeID returns the type of CTRunDelegate objects.
It panics if CTRunDelegateGetTypeID is unavailable at run time; use TryCTRunDelegateGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunDelegateGetTypeID()
func CTRunDraw ¶
func CTRunDraw(run CTRunRef, context coregraphics.CGContextRef, range_ corefoundation.CFRange)
CTRunDraw draws a complete run or part of one.
It panics if CTRunDraw is unavailable at run time; use TryCTRunDraw to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunDraw(_:_:_:)
func CTRunGetAdvances ¶
func CTRunGetAdvances(run CTRunRef, range_ corefoundation.CFRange, buffer *corefoundation.CGSize)
CTRunGetAdvances copies a range of glyph advances into a user-provided buffer.
It panics if CTRunGetAdvances is unavailable at run time; use TryCTRunGetAdvances to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetAdvances(_:_:_:)
func CTRunGetAdvancesPtr ¶
func CTRunGetAdvancesPtr(run CTRunRef) *corefoundation.CGSize
CTRunGetAdvancesPtr returns a direct pointer for the glyph advance array stored in the run.
It panics if CTRunGetAdvancesPtr is unavailable at run time; use TryCTRunGetAdvancesPtr to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetAdvancesPtr(_:)
func CTRunGetAttributes ¶
func CTRunGetAttributes(run CTRunRef) corefoundation.CFDictionaryRef
CTRunGetAttributes returns the attribute dictionary that was used to create the glyph run.
It panics if CTRunGetAttributes is unavailable at run time; use TryCTRunGetAttributes to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetAttributes(_:)
func CTRunGetBaseAdvancesAndOrigins ¶
func CTRunGetBaseAdvancesAndOrigins(runRef CTRunRef, range_ corefoundation.CFRange, advancesBuffer *corefoundation.CGSize, originsBuffer *corefoundation.CGPoint)
CTRunGetBaseAdvancesAndOrigins copies a range of base advances and origins into user-provided buffers.
It panics if CTRunGetBaseAdvancesAndOrigins is unavailable at run time; use TryCTRunGetBaseAdvancesAndOrigins to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetBaseAdvancesAndOrigins(_:_:_:_:)
func CTRunGetGlyphCount ¶
CTRunGetGlyphCount gets the glyph count for the run.
It panics if CTRunGetGlyphCount is unavailable at run time; use TryCTRunGetGlyphCount to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetGlyphCount(_:)
func CTRunGetGlyphs ¶
func CTRunGetGlyphs(run CTRunRef, range_ corefoundation.CFRange, buffer unsafe.Pointer)
CTRunGetGlyphs copies a range of glyphs into a user-provided buffer.
It panics if CTRunGetGlyphs is unavailable at run time; use TryCTRunGetGlyphs to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetGlyphs(_:_:_:)
func CTRunGetGlyphsPtr ¶
CTRunGetGlyphsPtr returns a direct pointer for the glyph array stored in the run.
It panics if CTRunGetGlyphsPtr is unavailable at run time; use TryCTRunGetGlyphsPtr to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetGlyphsPtr(_:)
func CTRunGetImageBounds ¶
func CTRunGetImageBounds(run CTRunRef, context coregraphics.CGContextRef, range_ corefoundation.CFRange) corefoundation.CGRect
CTRunGetImageBounds calculates the image bounds for a glyph range.
It panics if CTRunGetImageBounds is unavailable at run time; use TryCTRunGetImageBounds to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetImageBounds(_:_:_:)
func CTRunGetPositions ¶
func CTRunGetPositions(run CTRunRef, range_ corefoundation.CFRange, buffer *corefoundation.CGPoint)
CTRunGetPositions copies a range of glyph positions into a user-provided buffer.
It panics if CTRunGetPositions is unavailable at run time; use TryCTRunGetPositions to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetPositions(_:_:_:)
func CTRunGetPositionsPtr ¶
func CTRunGetPositionsPtr(run CTRunRef) *corefoundation.CGPoint
CTRunGetPositionsPtr returns a direct pointer for the glyph position array stored in the run.
It panics if CTRunGetPositionsPtr is unavailable at run time; use TryCTRunGetPositionsPtr to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetPositionsPtr(_:)
func CTRunGetStringIndices ¶
func CTRunGetStringIndices(run CTRunRef, range_ corefoundation.CFRange, buffer *int)
CTRunGetStringIndices copies a range of string indices into a user-provided buffer.
It panics if CTRunGetStringIndices is unavailable at run time; use TryCTRunGetStringIndices to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetStringIndices(_:_:_:)
func CTRunGetStringIndicesPtr ¶
CTRunGetStringIndicesPtr returns a direct pointer for the string indices stored in the run.
It panics if CTRunGetStringIndicesPtr is unavailable at run time; use TryCTRunGetStringIndicesPtr to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetStringIndicesPtr(_:)
func CTRunGetStringRange ¶
func CTRunGetStringRange(run CTRunRef) corefoundation.CFRange
CTRunGetStringRange gets the range of characters that originally spawned the glyphs in the run.
It panics if CTRunGetStringRange is unavailable at run time; use TryCTRunGetStringRange to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetStringRange(_:)
func CTRunGetTextMatrix ¶
func CTRunGetTextMatrix(run CTRunRef) corefoundation.CGAffineTransform
CTRunGetTextMatrix returns the text matrix needed to draw this run.
It panics if CTRunGetTextMatrix is unavailable at run time; use TryCTRunGetTextMatrix to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetTextMatrix(_:)
func CTRunGetTypeID ¶
func CTRunGetTypeID() uint
CTRunGetTypeID returns the Core Foundation type identifier of the run object.
It panics if CTRunGetTypeID is unavailable at run time; use TryCTRunGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetTypeID()
func CTRunGetTypographicBounds ¶
func CTRunGetTypographicBounds(run CTRunRef, range_ corefoundation.CFRange, ascent *float64, descent *float64, leading *float64) float64
CTRunGetTypographicBounds gets the typographic bounds of the run.
It panics if CTRunGetTypographicBounds is unavailable at run time; use TryCTRunGetTypographicBounds to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetTypographicBounds(_:_:_:_:_:)
func CTTextTabGetLocation ¶
func CTTextTabGetLocation(tab CTTextTabRef) float64
CTTextTabGetLocation returns the tab’s ruler location.
It panics if CTTextTabGetLocation is unavailable at run time; use TryCTTextTabGetLocation to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTextTabGetLocation(_:)
func CTTextTabGetOptions ¶
func CTTextTabGetOptions(tab CTTextTabRef) corefoundation.CFDictionaryRef
CTTextTabGetOptions returns the dictionary of attributes associated with the tab.
It panics if CTTextTabGetOptions is unavailable at run time; use TryCTTextTabGetOptions to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTextTabGetOptions(_:)
func CTTextTabGetTypeID ¶
func CTTextTabGetTypeID() uint
CTTextTabGetTypeID returns the Core Foundation type identifier of the text tab object.
It panics if CTTextTabGetTypeID is unavailable at run time; use TryCTTextTabGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTextTabGetTypeID()
func CTTypesetterGetTypeID ¶
func CTTypesetterGetTypeID() uint
CTTypesetterGetTypeID returns the Core Foundation type identifier of the typesetter object.
It panics if CTTypesetterGetTypeID is unavailable at run time; use TryCTTypesetterGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTypesetterGetTypeID()
func CTTypesetterSuggestClusterBreak ¶
func CTTypesetterSuggestClusterBreak(typesetter CTTypesetterRef, startIndex int, width float64) int
CTTypesetterSuggestClusterBreak suggests a cluster line breakpoint based on the width provided.
It panics if CTTypesetterSuggestClusterBreak is unavailable at run time; use TryCTTypesetterSuggestClusterBreak to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTypesetterSuggestClusterBreak(_:_:_:)
func CTTypesetterSuggestClusterBreakWithOffset ¶
func CTTypesetterSuggestClusterBreakWithOffset(typesetter CTTypesetterRef, startIndex int, width float64, offset float64) int
CTTypesetterSuggestClusterBreakWithOffset suggests a cluster line breakpoint based on the specified width and line offset.
It panics if CTTypesetterSuggestClusterBreakWithOffset is unavailable at run time; use TryCTTypesetterSuggestClusterBreakWithOffset to get an error instead.
func CTTypesetterSuggestLineBreak ¶
func CTTypesetterSuggestLineBreak(typesetter CTTypesetterRef, startIndex int, width float64) int
CTTypesetterSuggestLineBreak suggests a contextual line breakpoint based on the width provided.
It panics if CTTypesetterSuggestLineBreak is unavailable at run time; use TryCTTypesetterSuggestLineBreak to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTypesetterSuggestLineBreak(_:_:_:)
func CTTypesetterSuggestLineBreakWithOffset ¶
func CTTypesetterSuggestLineBreakWithOffset(typesetter CTTypesetterRef, startIndex int, width float64, offset float64) int
CTTypesetterSuggestLineBreakWithOffset suggests a contextual line breakpoint based on the width provided and the specified offset.
It panics if CTTypesetterSuggestLineBreakWithOffset is unavailable at run time; use TryCTTypesetterSuggestLineBreakWithOffset to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTypesetterSuggestLineBreakWithOffset(_:_:_:_:)
func SymbolAddress ¶
SymbolAddress returns the address of name in CoreText, whether or not this package generated a binding for it.
What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.
The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.
func TryCTFontCollectionCopyExclusionDescriptors ¶
func TryCTFontCollectionCopyExclusionDescriptors(collection CTFontCollectionRef) (corefoundation.CFArrayRef, error)
TryCTFontCollectionCopyExclusionDescriptors is like CTFontCollectionCopyExclusionDescriptors but returns an error instead of panicking if CTFontCollectionCopyExclusionDescriptors is unavailable at run time.
func TryCTFontCollectionCopyFontAttribute ¶
func TryCTFontCollectionCopyFontAttribute(collection CTFontCollectionRef, attributeName corefoundation.CFStringRef, options CTFontCollectionCopyOptions) (corefoundation.CFArrayRef, error)
TryCTFontCollectionCopyFontAttribute is like CTFontCollectionCopyFontAttribute but returns an error instead of panicking if CTFontCollectionCopyFontAttribute is unavailable at run time.
func TryCTFontCollectionCopyFontAttributes ¶
func TryCTFontCollectionCopyFontAttributes(collection CTFontCollectionRef, attributeNames corefoundation.CFSetRef, options CTFontCollectionCopyOptions) (corefoundation.CFArrayRef, error)
TryCTFontCollectionCopyFontAttributes is like CTFontCollectionCopyFontAttributes but returns an error instead of panicking if CTFontCollectionCopyFontAttributes is unavailable at run time.
func TryCTFontCollectionCopyQueryDescriptors ¶
func TryCTFontCollectionCopyQueryDescriptors(collection CTFontCollectionRef) (corefoundation.CFArrayRef, error)
TryCTFontCollectionCopyQueryDescriptors is like CTFontCollectionCopyQueryDescriptors but returns an error instead of panicking if CTFontCollectionCopyQueryDescriptors is unavailable at run time.
func TryCTFontCollectionCreateMatchingFontDescriptors ¶
func TryCTFontCollectionCreateMatchingFontDescriptors(collection CTFontCollectionRef) (corefoundation.CFArrayRef, error)
TryCTFontCollectionCreateMatchingFontDescriptors is like CTFontCollectionCreateMatchingFontDescriptors but returns an error instead of panicking if CTFontCollectionCreateMatchingFontDescriptors is unavailable at run time.
func TryCTFontCollectionCreateMatchingFontDescriptorsForFamily ¶
func TryCTFontCollectionCreateMatchingFontDescriptorsForFamily(collection CTFontCollectionRef, familyName corefoundation.CFStringRef, options corefoundation.CFDictionaryRef) (corefoundation.CFArrayRef, error)
TryCTFontCollectionCreateMatchingFontDescriptorsForFamily is like CTFontCollectionCreateMatchingFontDescriptorsForFamily but returns an error instead of panicking if CTFontCollectionCreateMatchingFontDescriptorsForFamily is unavailable at run time.
func TryCTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback ¶
func TryCTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(collection CTFontCollectionRef, sortCallback CTFontCollectionSortDescriptorsCallback, refCon uintptr) (corefoundation.CFArrayRef, error)
TryCTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback is like CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback but returns an error instead of panicking if CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback is unavailable at run time.
func TryCTFontCollectionCreateMatchingFontDescriptorsWithOptions ¶
func TryCTFontCollectionCreateMatchingFontDescriptorsWithOptions(collection CTFontCollectionRef, options corefoundation.CFDictionaryRef) (corefoundation.CFArrayRef, error)
TryCTFontCollectionCreateMatchingFontDescriptorsWithOptions is like CTFontCollectionCreateMatchingFontDescriptorsWithOptions but returns an error instead of panicking if CTFontCollectionCreateMatchingFontDescriptorsWithOptions is unavailable at run time.
func TryCTFontCollectionGetTypeID ¶
TryCTFontCollectionGetTypeID is like CTFontCollectionGetTypeID but returns an error instead of panicking if CTFontCollectionGetTypeID is unavailable at run time.
func TryCTFontCollectionSetExclusionDescriptors ¶
func TryCTFontCollectionSetExclusionDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef) error
TryCTFontCollectionSetExclusionDescriptors is like CTFontCollectionSetExclusionDescriptors but returns an error instead of panicking if CTFontCollectionSetExclusionDescriptors is unavailable at run time.
func TryCTFontCollectionSetQueryDescriptors ¶
func TryCTFontCollectionSetQueryDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef) error
TryCTFontCollectionSetQueryDescriptors is like CTFontCollectionSetQueryDescriptors but returns an error instead of panicking if CTFontCollectionSetQueryDescriptors is unavailable at run time.
func TryCTFontCopyAttribute ¶
func TryCTFontCopyAttribute(font CTFontRef, attribute corefoundation.CFStringRef) (corefoundation.CFTypeRef, error)
TryCTFontCopyAttribute is like CTFontCopyAttribute but returns an error instead of panicking if CTFontCopyAttribute is unavailable at run time.
func TryCTFontCopyAvailableTables ¶
func TryCTFontCopyAvailableTables(font CTFontRef, options CTFontTableOptions) (corefoundation.CFArrayRef, error)
TryCTFontCopyAvailableTables is like CTFontCopyAvailableTables but returns an error instead of panicking if CTFontCopyAvailableTables is unavailable at run time.
func TryCTFontCopyCharacterSet ¶
func TryCTFontCopyCharacterSet(font CTFontRef) (corefoundation.CFCharacterSet, error)
TryCTFontCopyCharacterSet is like CTFontCopyCharacterSet but returns an error instead of panicking if CTFontCopyCharacterSet is unavailable at run time.
func TryCTFontCopyDefaultCascadeListForLanguages ¶
func TryCTFontCopyDefaultCascadeListForLanguages(font CTFontRef, languagePrefList corefoundation.CFArrayRef) (corefoundation.CFArrayRef, error)
TryCTFontCopyDefaultCascadeListForLanguages is like CTFontCopyDefaultCascadeListForLanguages but returns an error instead of panicking if CTFontCopyDefaultCascadeListForLanguages is unavailable at run time.
func TryCTFontCopyDisplayName ¶
func TryCTFontCopyDisplayName(font CTFontRef) (corefoundation.CFStringRef, error)
TryCTFontCopyDisplayName is like CTFontCopyDisplayName but returns an error instead of panicking if CTFontCopyDisplayName is unavailable at run time.
func TryCTFontCopyFamilyName ¶
func TryCTFontCopyFamilyName(font CTFontRef) (corefoundation.CFStringRef, error)
TryCTFontCopyFamilyName is like CTFontCopyFamilyName but returns an error instead of panicking if CTFontCopyFamilyName is unavailable at run time.
func TryCTFontCopyFeatureSettings ¶
func TryCTFontCopyFeatureSettings(font CTFontRef) (corefoundation.CFArrayRef, error)
TryCTFontCopyFeatureSettings is like CTFontCopyFeatureSettings but returns an error instead of panicking if CTFontCopyFeatureSettings is unavailable at run time.
func TryCTFontCopyFeatures ¶
func TryCTFontCopyFeatures(font CTFontRef) (corefoundation.CFArrayRef, error)
TryCTFontCopyFeatures is like CTFontCopyFeatures but returns an error instead of panicking if CTFontCopyFeatures is unavailable at run time.
func TryCTFontCopyFullName ¶
func TryCTFontCopyFullName(font CTFontRef) (corefoundation.CFStringRef, error)
TryCTFontCopyFullName is like CTFontCopyFullName but returns an error instead of panicking if CTFontCopyFullName is unavailable at run time.
func TryCTFontCopyGraphicsFont ¶
func TryCTFontCopyGraphicsFont(font CTFontRef, attributes *CTFontDescriptorRef) (coregraphics.CGFont, error)
TryCTFontCopyGraphicsFont is like CTFontCopyGraphicsFont but returns an error instead of panicking if CTFontCopyGraphicsFont is unavailable at run time.
func TryCTFontCopyLocalizedName ¶
func TryCTFontCopyLocalizedName(font CTFontRef, nameKey corefoundation.CFStringRef, actualLanguage *corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
TryCTFontCopyLocalizedName is like CTFontCopyLocalizedName but returns an error instead of panicking if CTFontCopyLocalizedName is unavailable at run time.
func TryCTFontCopyName ¶
func TryCTFontCopyName(font CTFontRef, nameKey corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
TryCTFontCopyName is like CTFontCopyName but returns an error instead of panicking if CTFontCopyName is unavailable at run time.
func TryCTFontCopyNameForGlyph ¶
func TryCTFontCopyNameForGlyph(font CTFontRef, glyph uint16) (corefoundation.CFStringRef, error)
TryCTFontCopyNameForGlyph is like CTFontCopyNameForGlyph but returns an error instead of panicking if CTFontCopyNameForGlyph is unavailable at run time.
func TryCTFontCopyPostScriptName ¶
func TryCTFontCopyPostScriptName(font CTFontRef) (corefoundation.CFStringRef, error)
TryCTFontCopyPostScriptName is like CTFontCopyPostScriptName but returns an error instead of panicking if CTFontCopyPostScriptName is unavailable at run time.
func TryCTFontCopySupportedLanguages ¶
func TryCTFontCopySupportedLanguages(font CTFontRef) (corefoundation.CFArrayRef, error)
TryCTFontCopySupportedLanguages is like CTFontCopySupportedLanguages but returns an error instead of panicking if CTFontCopySupportedLanguages is unavailable at run time.
func TryCTFontCopyTable ¶
func TryCTFontCopyTable(font CTFontRef, table CTFontTableTag, options CTFontTableOptions) (corefoundation.CFDataRef, error)
TryCTFontCopyTable is like CTFontCopyTable but returns an error instead of panicking if CTFontCopyTable is unavailable at run time.
func TryCTFontCopyTraits ¶
func TryCTFontCopyTraits(font CTFontRef) (corefoundation.CFDictionaryRef, error)
TryCTFontCopyTraits is like CTFontCopyTraits but returns an error instead of panicking if CTFontCopyTraits is unavailable at run time.
func TryCTFontCopyVariation ¶
func TryCTFontCopyVariation(font CTFontRef) (corefoundation.CFDictionaryRef, error)
TryCTFontCopyVariation is like CTFontCopyVariation but returns an error instead of panicking if CTFontCopyVariation is unavailable at run time.
func TryCTFontCopyVariationAxes ¶
func TryCTFontCopyVariationAxes(font CTFontRef) (corefoundation.CFArrayRef, error)
TryCTFontCopyVariationAxes is like CTFontCopyVariationAxes but returns an error instead of panicking if CTFontCopyVariationAxes is unavailable at run time.
func TryCTFontCreatePathForGlyph ¶
func TryCTFontCreatePathForGlyph(font CTFontRef, glyph uint16, matrix *corefoundation.CGAffineTransform) (coregraphics.CGPathRef, error)
TryCTFontCreatePathForGlyph is like CTFontCreatePathForGlyph but returns an error instead of panicking if CTFontCreatePathForGlyph is unavailable at run time.
func TryCTFontDescriptorCopyAttribute ¶
func TryCTFontDescriptorCopyAttribute(descriptor CTFontDescriptorRef, attribute corefoundation.CFStringRef) (corefoundation.CFTypeRef, error)
TryCTFontDescriptorCopyAttribute is like CTFontDescriptorCopyAttribute but returns an error instead of panicking if CTFontDescriptorCopyAttribute is unavailable at run time.
func TryCTFontDescriptorCopyAttributes ¶
func TryCTFontDescriptorCopyAttributes(descriptor CTFontDescriptorRef) (corefoundation.CFDictionaryRef, error)
TryCTFontDescriptorCopyAttributes is like CTFontDescriptorCopyAttributes but returns an error instead of panicking if CTFontDescriptorCopyAttributes is unavailable at run time.
func TryCTFontDescriptorCopyLocalizedAttribute ¶
func TryCTFontDescriptorCopyLocalizedAttribute(descriptor CTFontDescriptorRef, attribute corefoundation.CFStringRef, language *corefoundation.CFStringRef) (corefoundation.CFTypeRef, error)
TryCTFontDescriptorCopyLocalizedAttribute is like CTFontDescriptorCopyLocalizedAttribute but returns an error instead of panicking if CTFontDescriptorCopyLocalizedAttribute is unavailable at run time.
func TryCTFontDescriptorCreateMatchingFontDescriptors ¶
func TryCTFontDescriptorCreateMatchingFontDescriptors(descriptor CTFontDescriptorRef, mandatoryAttributes corefoundation.CFSetRef) (corefoundation.CFArrayRef, error)
TryCTFontDescriptorCreateMatchingFontDescriptors is like CTFontDescriptorCreateMatchingFontDescriptors but returns an error instead of panicking if CTFontDescriptorCreateMatchingFontDescriptors is unavailable at run time.
func TryCTFontDescriptorGetTypeID ¶
TryCTFontDescriptorGetTypeID is like CTFontDescriptorGetTypeID but returns an error instead of panicking if CTFontDescriptorGetTypeID is unavailable at run time.
func TryCTFontDescriptorMatchFontDescriptorsWithProgressHandler ¶
func TryCTFontDescriptorMatchFontDescriptorsWithProgressHandler(descriptors corefoundation.CFArrayRef, mandatoryAttributes corefoundation.CFSetRef, progressBlock CTFontDescriptorProgressHandler) (bool, error)
TryCTFontDescriptorMatchFontDescriptorsWithProgressHandler is like CTFontDescriptorMatchFontDescriptorsWithProgressHandler but returns an error instead of panicking if CTFontDescriptorMatchFontDescriptorsWithProgressHandler is unavailable at run time.
func TryCTFontDrawGlyphs ¶
func TryCTFontDrawGlyphs(font CTFontRef, glyphs unsafe.Pointer, positions *corefoundation.CGPoint, count uintptr, context coregraphics.CGContextRef) error
TryCTFontDrawGlyphs is like CTFontDrawGlyphs but returns an error instead of panicking if CTFontDrawGlyphs is unavailable at run time.
func TryCTFontDrawImageFromAdaptiveImageProviderAtPoint ¶
func TryCTFontDrawImageFromAdaptiveImageProviderAtPoint(font CTFontRef, provider CTAdaptiveImageProvidingObject, point corefoundation.CGPoint, context coregraphics.CGContextRef) error
TryCTFontDrawImageFromAdaptiveImageProviderAtPoint is like CTFontDrawImageFromAdaptiveImageProviderAtPoint but returns an error instead of panicking if CTFontDrawImageFromAdaptiveImageProviderAtPoint is unavailable at run time.
func TryCTFontGetAdvancesForGlyphs ¶
func TryCTFontGetAdvancesForGlyphs(font CTFontRef, orientation CTFontOrientation, glyphs unsafe.Pointer, advances *corefoundation.CGSize, count int) (float64, error)
TryCTFontGetAdvancesForGlyphs is like CTFontGetAdvancesForGlyphs but returns an error instead of panicking if CTFontGetAdvancesForGlyphs is unavailable at run time.
func TryCTFontGetAscent ¶
TryCTFontGetAscent is like CTFontGetAscent but returns an error instead of panicking if CTFontGetAscent is unavailable at run time.
func TryCTFontGetBoundingBox ¶
func TryCTFontGetBoundingBox(font CTFontRef) (corefoundation.CGRect, error)
TryCTFontGetBoundingBox is like CTFontGetBoundingBox but returns an error instead of panicking if CTFontGetBoundingBox is unavailable at run time.
func TryCTFontGetBoundingRectsForGlyphs ¶
func TryCTFontGetBoundingRectsForGlyphs(font CTFontRef, orientation CTFontOrientation, glyphs unsafe.Pointer, boundingRects *corefoundation.CGRect, count int) (corefoundation.CGRect, error)
TryCTFontGetBoundingRectsForGlyphs is like CTFontGetBoundingRectsForGlyphs but returns an error instead of panicking if CTFontGetBoundingRectsForGlyphs is unavailable at run time.
func TryCTFontGetCapHeight ¶
TryCTFontGetCapHeight is like CTFontGetCapHeight but returns an error instead of panicking if CTFontGetCapHeight is unavailable at run time.
func TryCTFontGetDescent ¶
TryCTFontGetDescent is like CTFontGetDescent but returns an error instead of panicking if CTFontGetDescent is unavailable at run time.
func TryCTFontGetGlyphCount ¶
TryCTFontGetGlyphCount is like CTFontGetGlyphCount but returns an error instead of panicking if CTFontGetGlyphCount is unavailable at run time.
func TryCTFontGetGlyphWithName ¶
func TryCTFontGetGlyphWithName(font CTFontRef, glyphName corefoundation.CFStringRef) (uint16, error)
TryCTFontGetGlyphWithName is like CTFontGetGlyphWithName but returns an error instead of panicking if CTFontGetGlyphWithName is unavailable at run time.
func TryCTFontGetGlyphsForCharacters ¶
func TryCTFontGetGlyphsForCharacters(font CTFontRef, characters *uint16, glyphs unsafe.Pointer, count int) (bool, error)
TryCTFontGetGlyphsForCharacters is like CTFontGetGlyphsForCharacters but returns an error instead of panicking if CTFontGetGlyphsForCharacters is unavailable at run time.
func TryCTFontGetLeading ¶
TryCTFontGetLeading is like CTFontGetLeading but returns an error instead of panicking if CTFontGetLeading is unavailable at run time.
func TryCTFontGetLigatureCaretPositions ¶
func TryCTFontGetLigatureCaretPositions(font CTFontRef, glyph uint16, positions *float64, maxPositions int) (int, error)
TryCTFontGetLigatureCaretPositions is like CTFontGetLigatureCaretPositions but returns an error instead of panicking if CTFontGetLigatureCaretPositions is unavailable at run time.
func TryCTFontGetMatrix ¶
func TryCTFontGetMatrix(font CTFontRef) (corefoundation.CGAffineTransform, error)
TryCTFontGetMatrix is like CTFontGetMatrix but returns an error instead of panicking if CTFontGetMatrix is unavailable at run time.
func TryCTFontGetOpticalBoundsForGlyphs ¶
func TryCTFontGetOpticalBoundsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, boundingRects *corefoundation.CGRect, count int, options uint) (corefoundation.CGRect, error)
TryCTFontGetOpticalBoundsForGlyphs is like CTFontGetOpticalBoundsForGlyphs but returns an error instead of panicking if CTFontGetOpticalBoundsForGlyphs is unavailable at run time.
func TryCTFontGetSize ¶
TryCTFontGetSize is like CTFontGetSize but returns an error instead of panicking if CTFontGetSize is unavailable at run time.
func TryCTFontGetSlantAngle ¶
TryCTFontGetSlantAngle is like CTFontGetSlantAngle but returns an error instead of panicking if CTFontGetSlantAngle is unavailable at run time.
func TryCTFontGetStringEncoding ¶
TryCTFontGetStringEncoding is like CTFontGetStringEncoding but returns an error instead of panicking if CTFontGetStringEncoding is unavailable at run time.
func TryCTFontGetTypeID ¶
TryCTFontGetTypeID is like CTFontGetTypeID but returns an error instead of panicking if CTFontGetTypeID is unavailable at run time.
func TryCTFontGetTypographicBoundsForAdaptiveImageProvider ¶
func TryCTFontGetTypographicBoundsForAdaptiveImageProvider(font CTFontRef, provider CTAdaptiveImageProvidingObject) (corefoundation.CGRect, error)
TryCTFontGetTypographicBoundsForAdaptiveImageProvider is like CTFontGetTypographicBoundsForAdaptiveImageProvider but returns an error instead of panicking if CTFontGetTypographicBoundsForAdaptiveImageProvider is unavailable at run time.
func TryCTFontGetUnderlinePosition ¶
TryCTFontGetUnderlinePosition is like CTFontGetUnderlinePosition but returns an error instead of panicking if CTFontGetUnderlinePosition is unavailable at run time.
func TryCTFontGetUnderlineThickness ¶
TryCTFontGetUnderlineThickness is like CTFontGetUnderlineThickness but returns an error instead of panicking if CTFontGetUnderlineThickness is unavailable at run time.
func TryCTFontGetUnitsPerEm ¶
TryCTFontGetUnitsPerEm is like CTFontGetUnitsPerEm but returns an error instead of panicking if CTFontGetUnitsPerEm is unavailable at run time.
func TryCTFontGetVerticalTranslationsForGlyphs ¶
func TryCTFontGetVerticalTranslationsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, translations *corefoundation.CGSize, count int) error
TryCTFontGetVerticalTranslationsForGlyphs is like CTFontGetVerticalTranslationsForGlyphs but returns an error instead of panicking if CTFontGetVerticalTranslationsForGlyphs is unavailable at run time.
func TryCTFontGetXHeight ¶
TryCTFontGetXHeight is like CTFontGetXHeight but returns an error instead of panicking if CTFontGetXHeight is unavailable at run time.
func TryCTFontHasTable ¶
func TryCTFontHasTable(font CTFontRef, tag CTFontTableTag) (bool, error)
TryCTFontHasTable is like CTFontHasTable but returns an error instead of panicking if CTFontHasTable is unavailable at run time.
func TryCTFontManagerCompareFontFamilyNames ¶
func TryCTFontManagerCompareFontFamilyNames(family1 unsafe.Pointer, family2 unsafe.Pointer, context unsafe.Pointer) (corefoundation.CFComparisonResult, error)
TryCTFontManagerCompareFontFamilyNames is like CTFontManagerCompareFontFamilyNames but returns an error instead of panicking if CTFontManagerCompareFontFamilyNames is unavailable at run time.
func TryCTFontManagerCopyAvailableFontFamilyNames ¶
func TryCTFontManagerCopyAvailableFontFamilyNames() (corefoundation.CFArrayRef, error)
TryCTFontManagerCopyAvailableFontFamilyNames is like CTFontManagerCopyAvailableFontFamilyNames but returns an error instead of panicking if CTFontManagerCopyAvailableFontFamilyNames is unavailable at run time.
func TryCTFontManagerCopyAvailableFontURLs ¶
func TryCTFontManagerCopyAvailableFontURLs() (corefoundation.CFArrayRef, error)
TryCTFontManagerCopyAvailableFontURLs is like CTFontManagerCopyAvailableFontURLs but returns an error instead of panicking if CTFontManagerCopyAvailableFontURLs is unavailable at run time.
func TryCTFontManagerCopyAvailablePostScriptNames ¶
func TryCTFontManagerCopyAvailablePostScriptNames() (corefoundation.CFArrayRef, error)
TryCTFontManagerCopyAvailablePostScriptNames is like CTFontManagerCopyAvailablePostScriptNames but returns an error instead of panicking if CTFontManagerCopyAvailablePostScriptNames is unavailable at run time.
func TryCTFontManagerCreateFontDescriptorsFromData ¶
func TryCTFontManagerCreateFontDescriptorsFromData(data corefoundation.CFDataRef) (corefoundation.CFArrayRef, error)
TryCTFontManagerCreateFontDescriptorsFromData is like CTFontManagerCreateFontDescriptorsFromData but returns an error instead of panicking if CTFontManagerCreateFontDescriptorsFromData is unavailable at run time.
func TryCTFontManagerCreateFontDescriptorsFromURL ¶
func TryCTFontManagerCreateFontDescriptorsFromURL(fileURL corefoundation.CFURLRef) (corefoundation.CFArrayRef, error)
TryCTFontManagerCreateFontDescriptorsFromURL is like CTFontManagerCreateFontDescriptorsFromURL but returns an error instead of panicking if CTFontManagerCreateFontDescriptorsFromURL is unavailable at run time.
func TryCTFontManagerCreateFontRequestRunLoopSource ¶
func TryCTFontManagerCreateFontRequestRunLoopSource(sourceOrder int, createMatchesCallback corefoundation.CFArrayRef) (corefoundation.CFRunLoopSourceRef, error)
TryCTFontManagerCreateFontRequestRunLoopSource is like CTFontManagerCreateFontRequestRunLoopSource but returns an error instead of panicking if CTFontManagerCreateFontRequestRunLoopSource is unavailable at run time.
func TryCTFontManagerEnableFontDescriptors ¶
func TryCTFontManagerEnableFontDescriptors(descriptors corefoundation.CFArrayRef, enable bool) error
TryCTFontManagerEnableFontDescriptors is like CTFontManagerEnableFontDescriptors but returns an error instead of panicking if CTFontManagerEnableFontDescriptors is unavailable at run time.
func TryCTFontManagerIsSupportedFont ¶
func TryCTFontManagerIsSupportedFont(fontURL corefoundation.CFURLRef) (bool, error)
TryCTFontManagerIsSupportedFont is like CTFontManagerIsSupportedFont but returns an error instead of panicking if CTFontManagerIsSupportedFont is unavailable at run time.
func TryCTFontManagerRegisterFontDescriptors ¶
func TryCTFontManagerRegisterFontDescriptors(fontDescriptors corefoundation.CFArrayRef, scope CTFontManagerScope, enabled bool, registrationHandler bool) error
TryCTFontManagerRegisterFontDescriptors is like CTFontManagerRegisterFontDescriptors but returns an error instead of panicking if CTFontManagerRegisterFontDescriptors is unavailable at run time.
func TryCTFontManagerRegisterFontURLs ¶
func TryCTFontManagerRegisterFontURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, enabled bool, registrationHandler bool) error
TryCTFontManagerRegisterFontURLs is like CTFontManagerRegisterFontURLs but returns an error instead of panicking if CTFontManagerRegisterFontURLs is unavailable at run time.
func TryCTFontManagerRegisterFontsForURL ¶
func TryCTFontManagerRegisterFontsForURL(fontURL corefoundation.CFURLRef, scope CTFontManagerScope, err *corefoundation.CFErrorRef) (bool, error)
TryCTFontManagerRegisterFontsForURL is like CTFontManagerRegisterFontsForURL but returns an error instead of panicking if CTFontManagerRegisterFontsForURL is unavailable at run time.
func TryCTFontManagerRegisterFontsForURLs ¶
func TryCTFontManagerRegisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, errors *corefoundation.CFArrayRef) (bool, error)
TryCTFontManagerRegisterFontsForURLs is like CTFontManagerRegisterFontsForURLs but returns an error instead of panicking if CTFontManagerRegisterFontsForURLs is unavailable at run time.
func TryCTFontManagerRegisterGraphicsFont ¶
func TryCTFontManagerRegisterGraphicsFont(font coregraphics.CGFont, err *corefoundation.CFErrorRef) (bool, error)
TryCTFontManagerRegisterGraphicsFont is like CTFontManagerRegisterGraphicsFont but returns an error instead of panicking if CTFontManagerRegisterGraphicsFont is unavailable at run time.
func TryCTFontManagerSetAutoActivationSetting ¶
func TryCTFontManagerSetAutoActivationSetting(bundleIdentifier corefoundation.CFStringRef, setting CTFontManagerAutoActivationSetting) error
TryCTFontManagerSetAutoActivationSetting is like CTFontManagerSetAutoActivationSetting but returns an error instead of panicking if CTFontManagerSetAutoActivationSetting is unavailable at run time.
func TryCTFontManagerUnregisterFontDescriptors ¶
func TryCTFontManagerUnregisterFontDescriptors(fontDescriptors corefoundation.CFArrayRef, scope CTFontManagerScope, registrationHandler bool) error
TryCTFontManagerUnregisterFontDescriptors is like CTFontManagerUnregisterFontDescriptors but returns an error instead of panicking if CTFontManagerUnregisterFontDescriptors is unavailable at run time.
func TryCTFontManagerUnregisterFontURLs ¶
func TryCTFontManagerUnregisterFontURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, registrationHandler bool) error
TryCTFontManagerUnregisterFontURLs is like CTFontManagerUnregisterFontURLs but returns an error instead of panicking if CTFontManagerUnregisterFontURLs is unavailable at run time.
func TryCTFontManagerUnregisterFontsForURL ¶
func TryCTFontManagerUnregisterFontsForURL(fontURL corefoundation.CFURLRef, scope CTFontManagerScope, err *corefoundation.CFErrorRef) (bool, error)
TryCTFontManagerUnregisterFontsForURL is like CTFontManagerUnregisterFontsForURL but returns an error instead of panicking if CTFontManagerUnregisterFontsForURL is unavailable at run time.
func TryCTFontManagerUnregisterFontsForURLs ¶
func TryCTFontManagerUnregisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, errors *corefoundation.CFArrayRef) (bool, error)
TryCTFontManagerUnregisterFontsForURLs is like CTFontManagerUnregisterFontsForURLs but returns an error instead of panicking if CTFontManagerUnregisterFontsForURLs is unavailable at run time.
func TryCTFontManagerUnregisterGraphicsFont ¶
func TryCTFontManagerUnregisterGraphicsFont(font coregraphics.CGFont, err *corefoundation.CFErrorRef) (bool, error)
TryCTFontManagerUnregisterGraphicsFont is like CTFontManagerUnregisterGraphicsFont but returns an error instead of panicking if CTFontManagerUnregisterGraphicsFont is unavailable at run time.
func TryCTFrameDraw ¶
func TryCTFrameDraw(frame CTFrameRef, context coregraphics.CGContextRef) error
TryCTFrameDraw is like CTFrameDraw but returns an error instead of panicking if CTFrameDraw is unavailable at run time.
func TryCTFrameGetFrameAttributes ¶
func TryCTFrameGetFrameAttributes(frame CTFrameRef) (corefoundation.CFDictionaryRef, error)
TryCTFrameGetFrameAttributes is like CTFrameGetFrameAttributes but returns an error instead of panicking if CTFrameGetFrameAttributes is unavailable at run time.
func TryCTFrameGetLineOrigins ¶
func TryCTFrameGetLineOrigins(frame CTFrameRef, range_ corefoundation.CFRange, origins *corefoundation.CGPoint) error
TryCTFrameGetLineOrigins is like CTFrameGetLineOrigins but returns an error instead of panicking if CTFrameGetLineOrigins is unavailable at run time.
func TryCTFrameGetLines ¶
func TryCTFrameGetLines(frame CTFrameRef) (corefoundation.CFArrayRef, error)
TryCTFrameGetLines is like CTFrameGetLines but returns an error instead of panicking if CTFrameGetLines is unavailable at run time.
func TryCTFrameGetPath ¶
func TryCTFrameGetPath(frame CTFrameRef) (coregraphics.CGPathRef, error)
TryCTFrameGetPath is like CTFrameGetPath but returns an error instead of panicking if CTFrameGetPath is unavailable at run time.
func TryCTFrameGetStringRange ¶
func TryCTFrameGetStringRange(frame CTFrameRef) (corefoundation.CFRange, error)
TryCTFrameGetStringRange is like CTFrameGetStringRange but returns an error instead of panicking if CTFrameGetStringRange is unavailable at run time.
func TryCTFrameGetTypeID ¶
TryCTFrameGetTypeID is like CTFrameGetTypeID but returns an error instead of panicking if CTFrameGetTypeID is unavailable at run time.
func TryCTFrameGetVisibleStringRange ¶
func TryCTFrameGetVisibleStringRange(frame CTFrameRef) (corefoundation.CFRange, error)
TryCTFrameGetVisibleStringRange is like CTFrameGetVisibleStringRange but returns an error instead of panicking if CTFrameGetVisibleStringRange is unavailable at run time.
func TryCTFramesetterGetTypeID ¶
TryCTFramesetterGetTypeID is like CTFramesetterGetTypeID but returns an error instead of panicking if CTFramesetterGetTypeID is unavailable at run time.
func TryCTFramesetterSuggestFrameSizeWithConstraints ¶
func TryCTFramesetterSuggestFrameSizeWithConstraints(framesetter CTFramesetterRef, stringRange corefoundation.CFRange, frameAttributes corefoundation.CFDictionaryRef, constraints corefoundation.CGSize, fitRange *corefoundation.CFRange) (corefoundation.CGSize, error)
TryCTFramesetterSuggestFrameSizeWithConstraints is like CTFramesetterSuggestFrameSizeWithConstraints but returns an error instead of panicking if CTFramesetterSuggestFrameSizeWithConstraints is unavailable at run time.
func TryCTGetCoreTextVersion ¶
TryCTGetCoreTextVersion is like CTGetCoreTextVersion but returns an error instead of panicking if CTGetCoreTextVersion is unavailable at run time.
func TryCTGlyphInfoGetCharacterIdentifier ¶
func TryCTGlyphInfoGetCharacterIdentifier(glyphInfo CTGlyphInfoRef) (uint16, error)
TryCTGlyphInfoGetCharacterIdentifier is like CTGlyphInfoGetCharacterIdentifier but returns an error instead of panicking if CTGlyphInfoGetCharacterIdentifier is unavailable at run time.
func TryCTGlyphInfoGetGlyph ¶
func TryCTGlyphInfoGetGlyph(glyphInfo CTGlyphInfoRef) (uint16, error)
TryCTGlyphInfoGetGlyph is like CTGlyphInfoGetGlyph but returns an error instead of panicking if CTGlyphInfoGetGlyph is unavailable at run time.
func TryCTGlyphInfoGetGlyphName ¶
func TryCTGlyphInfoGetGlyphName(glyphInfo CTGlyphInfoRef) (corefoundation.CFStringRef, error)
TryCTGlyphInfoGetGlyphName is like CTGlyphInfoGetGlyphName but returns an error instead of panicking if CTGlyphInfoGetGlyphName is unavailable at run time.
func TryCTGlyphInfoGetTypeID ¶
TryCTGlyphInfoGetTypeID is like CTGlyphInfoGetTypeID but returns an error instead of panicking if CTGlyphInfoGetTypeID is unavailable at run time.
func TryCTLineDraw ¶
func TryCTLineDraw(line CTLineRef, context coregraphics.CGContextRef) error
TryCTLineDraw is like CTLineDraw but returns an error instead of panicking if CTLineDraw is unavailable at run time.
func TryCTLineEnumerateCaretOffsets ¶
TryCTLineEnumerateCaretOffsets is like CTLineEnumerateCaretOffsets but returns an error instead of panicking if CTLineEnumerateCaretOffsets is unavailable at run time.
func TryCTLineGetBoundsWithOptions ¶
func TryCTLineGetBoundsWithOptions(line CTLineRef, options CTLineBoundsOptions) (corefoundation.CGRect, error)
TryCTLineGetBoundsWithOptions is like CTLineGetBoundsWithOptions but returns an error instead of panicking if CTLineGetBoundsWithOptions is unavailable at run time.
func TryCTLineGetGlyphCount ¶
TryCTLineGetGlyphCount is like CTLineGetGlyphCount but returns an error instead of panicking if CTLineGetGlyphCount is unavailable at run time.
func TryCTLineGetGlyphRuns ¶
func TryCTLineGetGlyphRuns(line CTLineRef) (corefoundation.CFArrayRef, error)
TryCTLineGetGlyphRuns is like CTLineGetGlyphRuns but returns an error instead of panicking if CTLineGetGlyphRuns is unavailable at run time.
func TryCTLineGetImageBounds ¶
func TryCTLineGetImageBounds(line CTLineRef, context coregraphics.CGContextRef) (corefoundation.CGRect, error)
TryCTLineGetImageBounds is like CTLineGetImageBounds but returns an error instead of panicking if CTLineGetImageBounds is unavailable at run time.
func TryCTLineGetOffsetForStringIndex ¶
func TryCTLineGetOffsetForStringIndex(line CTLineRef, charIndex int, secondaryOffset *float64) (float64, error)
TryCTLineGetOffsetForStringIndex is like CTLineGetOffsetForStringIndex but returns an error instead of panicking if CTLineGetOffsetForStringIndex is unavailable at run time.
func TryCTLineGetPenOffsetForFlush ¶
func TryCTLineGetPenOffsetForFlush(line CTLineRef, flushFactor float64, flushWidth float64) (float64, error)
TryCTLineGetPenOffsetForFlush is like CTLineGetPenOffsetForFlush but returns an error instead of panicking if CTLineGetPenOffsetForFlush is unavailable at run time.
func TryCTLineGetStringIndexForPosition ¶
func TryCTLineGetStringIndexForPosition(line CTLineRef, position corefoundation.CGPoint) (int, error)
TryCTLineGetStringIndexForPosition is like CTLineGetStringIndexForPosition but returns an error instead of panicking if CTLineGetStringIndexForPosition is unavailable at run time.
func TryCTLineGetStringRange ¶
func TryCTLineGetStringRange(line CTLineRef) (corefoundation.CFRange, error)
TryCTLineGetStringRange is like CTLineGetStringRange but returns an error instead of panicking if CTLineGetStringRange is unavailable at run time.
func TryCTLineGetTrailingWhitespaceWidth ¶
TryCTLineGetTrailingWhitespaceWidth is like CTLineGetTrailingWhitespaceWidth but returns an error instead of panicking if CTLineGetTrailingWhitespaceWidth is unavailable at run time.
func TryCTLineGetTypeID ¶
TryCTLineGetTypeID is like CTLineGetTypeID but returns an error instead of panicking if CTLineGetTypeID is unavailable at run time.
func TryCTLineGetTypographicBounds ¶
func TryCTLineGetTypographicBounds(line CTLineRef, ascent *float64, descent *float64, leading *float64) (float64, error)
TryCTLineGetTypographicBounds is like CTLineGetTypographicBounds but returns an error instead of panicking if CTLineGetTypographicBounds is unavailable at run time.
func TryCTParagraphStyleGetTypeID ¶
TryCTParagraphStyleGetTypeID is like CTParagraphStyleGetTypeID but returns an error instead of panicking if CTParagraphStyleGetTypeID is unavailable at run time.
func TryCTParagraphStyleGetValueForSpecifier ¶
func TryCTParagraphStyleGetValueForSpecifier(paragraphStyle CTParagraphStyleRef, spec CTParagraphStyleSpecifier, valueBufferSize uintptr, valueBuffer unsafe.Pointer) (bool, error)
TryCTParagraphStyleGetValueForSpecifier is like CTParagraphStyleGetValueForSpecifier but returns an error instead of panicking if CTParagraphStyleGetValueForSpecifier is unavailable at run time.
func TryCTRubyAnnotationGetSizeFactor ¶
func TryCTRubyAnnotationGetSizeFactor(rubyAnnotation CTRubyAnnotationRef) (float64, error)
TryCTRubyAnnotationGetSizeFactor is like CTRubyAnnotationGetSizeFactor but returns an error instead of panicking if CTRubyAnnotationGetSizeFactor is unavailable at run time.
func TryCTRubyAnnotationGetTextForPosition ¶
func TryCTRubyAnnotationGetTextForPosition(rubyAnnotation CTRubyAnnotationRef, position CTRubyPosition) (corefoundation.CFStringRef, error)
TryCTRubyAnnotationGetTextForPosition is like CTRubyAnnotationGetTextForPosition but returns an error instead of panicking if CTRubyAnnotationGetTextForPosition is unavailable at run time.
func TryCTRubyAnnotationGetTypeID ¶
TryCTRubyAnnotationGetTypeID is like CTRubyAnnotationGetTypeID but returns an error instead of panicking if CTRubyAnnotationGetTypeID is unavailable at run time.
func TryCTRunDelegateGetRefCon ¶
func TryCTRunDelegateGetRefCon(runDelegate CTRunDelegateRef) (unsafe.Pointer, error)
TryCTRunDelegateGetRefCon is like CTRunDelegateGetRefCon but returns an error instead of panicking if CTRunDelegateGetRefCon is unavailable at run time.
func TryCTRunDelegateGetTypeID ¶
TryCTRunDelegateGetTypeID is like CTRunDelegateGetTypeID but returns an error instead of panicking if CTRunDelegateGetTypeID is unavailable at run time.
func TryCTRunDraw ¶
func TryCTRunDraw(run CTRunRef, context coregraphics.CGContextRef, range_ corefoundation.CFRange) error
TryCTRunDraw is like CTRunDraw but returns an error instead of panicking if CTRunDraw is unavailable at run time.
func TryCTRunGetAdvances ¶
func TryCTRunGetAdvances(run CTRunRef, range_ corefoundation.CFRange, buffer *corefoundation.CGSize) error
TryCTRunGetAdvances is like CTRunGetAdvances but returns an error instead of panicking if CTRunGetAdvances is unavailable at run time.
func TryCTRunGetAdvancesPtr ¶
func TryCTRunGetAdvancesPtr(run CTRunRef) (*corefoundation.CGSize, error)
TryCTRunGetAdvancesPtr is like CTRunGetAdvancesPtr but returns an error instead of panicking if CTRunGetAdvancesPtr is unavailable at run time.
func TryCTRunGetAttributes ¶
func TryCTRunGetAttributes(run CTRunRef) (corefoundation.CFDictionaryRef, error)
TryCTRunGetAttributes is like CTRunGetAttributes but returns an error instead of panicking if CTRunGetAttributes is unavailable at run time.
func TryCTRunGetBaseAdvancesAndOrigins ¶
func TryCTRunGetBaseAdvancesAndOrigins(runRef CTRunRef, range_ corefoundation.CFRange, advancesBuffer *corefoundation.CGSize, originsBuffer *corefoundation.CGPoint) error
TryCTRunGetBaseAdvancesAndOrigins is like CTRunGetBaseAdvancesAndOrigins but returns an error instead of panicking if CTRunGetBaseAdvancesAndOrigins is unavailable at run time.
func TryCTRunGetGlyphCount ¶
TryCTRunGetGlyphCount is like CTRunGetGlyphCount but returns an error instead of panicking if CTRunGetGlyphCount is unavailable at run time.
func TryCTRunGetGlyphs ¶
TryCTRunGetGlyphs is like CTRunGetGlyphs but returns an error instead of panicking if CTRunGetGlyphs is unavailable at run time.
func TryCTRunGetGlyphsPtr ¶
TryCTRunGetGlyphsPtr is like CTRunGetGlyphsPtr but returns an error instead of panicking if CTRunGetGlyphsPtr is unavailable at run time.
func TryCTRunGetImageBounds ¶
func TryCTRunGetImageBounds(run CTRunRef, context coregraphics.CGContextRef, range_ corefoundation.CFRange) (corefoundation.CGRect, error)
TryCTRunGetImageBounds is like CTRunGetImageBounds but returns an error instead of panicking if CTRunGetImageBounds is unavailable at run time.
func TryCTRunGetPositions ¶
func TryCTRunGetPositions(run CTRunRef, range_ corefoundation.CFRange, buffer *corefoundation.CGPoint) error
TryCTRunGetPositions is like CTRunGetPositions but returns an error instead of panicking if CTRunGetPositions is unavailable at run time.
func TryCTRunGetPositionsPtr ¶
func TryCTRunGetPositionsPtr(run CTRunRef) (*corefoundation.CGPoint, error)
TryCTRunGetPositionsPtr is like CTRunGetPositionsPtr but returns an error instead of panicking if CTRunGetPositionsPtr is unavailable at run time.
func TryCTRunGetStringIndices ¶
func TryCTRunGetStringIndices(run CTRunRef, range_ corefoundation.CFRange, buffer *int) error
TryCTRunGetStringIndices is like CTRunGetStringIndices but returns an error instead of panicking if CTRunGetStringIndices is unavailable at run time.
func TryCTRunGetStringIndicesPtr ¶
TryCTRunGetStringIndicesPtr is like CTRunGetStringIndicesPtr but returns an error instead of panicking if CTRunGetStringIndicesPtr is unavailable at run time.
func TryCTRunGetStringRange ¶
func TryCTRunGetStringRange(run CTRunRef) (corefoundation.CFRange, error)
TryCTRunGetStringRange is like CTRunGetStringRange but returns an error instead of panicking if CTRunGetStringRange is unavailable at run time.
func TryCTRunGetTextMatrix ¶
func TryCTRunGetTextMatrix(run CTRunRef) (corefoundation.CGAffineTransform, error)
TryCTRunGetTextMatrix is like CTRunGetTextMatrix but returns an error instead of panicking if CTRunGetTextMatrix is unavailable at run time.
func TryCTRunGetTypeID ¶
TryCTRunGetTypeID is like CTRunGetTypeID but returns an error instead of panicking if CTRunGetTypeID is unavailable at run time.
func TryCTRunGetTypographicBounds ¶
func TryCTRunGetTypographicBounds(run CTRunRef, range_ corefoundation.CFRange, ascent *float64, descent *float64, leading *float64) (float64, error)
TryCTRunGetTypographicBounds is like CTRunGetTypographicBounds but returns an error instead of panicking if CTRunGetTypographicBounds is unavailable at run time.
func TryCTTextTabGetLocation ¶
func TryCTTextTabGetLocation(tab CTTextTabRef) (float64, error)
TryCTTextTabGetLocation is like CTTextTabGetLocation but returns an error instead of panicking if CTTextTabGetLocation is unavailable at run time.
func TryCTTextTabGetOptions ¶
func TryCTTextTabGetOptions(tab CTTextTabRef) (corefoundation.CFDictionaryRef, error)
TryCTTextTabGetOptions is like CTTextTabGetOptions but returns an error instead of panicking if CTTextTabGetOptions is unavailable at run time.
func TryCTTextTabGetTypeID ¶
TryCTTextTabGetTypeID is like CTTextTabGetTypeID but returns an error instead of panicking if CTTextTabGetTypeID is unavailable at run time.
func TryCTTypesetterGetTypeID ¶
TryCTTypesetterGetTypeID is like CTTypesetterGetTypeID but returns an error instead of panicking if CTTypesetterGetTypeID is unavailable at run time.
func TryCTTypesetterSuggestClusterBreak ¶
func TryCTTypesetterSuggestClusterBreak(typesetter CTTypesetterRef, startIndex int, width float64) (int, error)
TryCTTypesetterSuggestClusterBreak is like CTTypesetterSuggestClusterBreak but returns an error instead of panicking if CTTypesetterSuggestClusterBreak is unavailable at run time.
func TryCTTypesetterSuggestClusterBreakWithOffset ¶
func TryCTTypesetterSuggestClusterBreakWithOffset(typesetter CTTypesetterRef, startIndex int, width float64, offset float64) (int, error)
TryCTTypesetterSuggestClusterBreakWithOffset is like CTTypesetterSuggestClusterBreakWithOffset but returns an error instead of panicking if CTTypesetterSuggestClusterBreakWithOffset is unavailable at run time.
func TryCTTypesetterSuggestLineBreak ¶
func TryCTTypesetterSuggestLineBreak(typesetter CTTypesetterRef, startIndex int, width float64) (int, error)
TryCTTypesetterSuggestLineBreak is like CTTypesetterSuggestLineBreak but returns an error instead of panicking if CTTypesetterSuggestLineBreak is unavailable at run time.
func TryCTTypesetterSuggestLineBreakWithOffset ¶
func TryCTTypesetterSuggestLineBreakWithOffset(typesetter CTTypesetterRef, startIndex int, width float64, offset float64) (int, error)
TryCTTypesetterSuggestLineBreakWithOffset is like CTTypesetterSuggestLineBreakWithOffset but returns an error instead of panicking if CTTypesetterSuggestLineBreakWithOffset is unavailable at run time.
Types ¶
type ALMXGlyphEntry ¶
type ALMXGlyphEntry struct {
GlyphIndexOffset int16
HorizontalAdvance int16
XOffsetToHOrigin int16
VerticalAdvance int16
YOffsetToVOrigin int16
}
ALMXGlyphEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/ALMXGlyphEntry
type ALMXHeader ¶
type ALMXHeader struct {
// contains filtered or unexported fields
}
ALMXHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/ALMXHeader
func (*ALMXHeader) FirstGlyph ¶
func (s *ALMXHeader) FirstGlyph() uint16
FirstGlyph returns the FirstGlyph field from the record's packed storage.
func (*ALMXHeader) Flags ¶
func (s *ALMXHeader) Flags() uint16
Flags returns the Flags field from the record's packed storage.
func (*ALMXHeader) LastGlyph ¶
func (s *ALMXHeader) LastGlyph() uint16
LastGlyph returns the LastGlyph field from the record's packed storage.
func (*ALMXHeader) Lookup ¶
func (s *ALMXHeader) Lookup() SFNTLookupTable
Lookup returns the Lookup field from the record's packed storage.
func (*ALMXHeader) NMasters ¶
func (s *ALMXHeader) NMasters() uint16
NMasters returns the NMasters field from the record's packed storage.
func (*ALMXHeader) SetFirstGlyph ¶
func (s *ALMXHeader) SetFirstGlyph(v uint16)
SetFirstGlyph updates the FirstGlyph field in the record's packed storage.
func (*ALMXHeader) SetFlags ¶
func (s *ALMXHeader) SetFlags(v uint16)
SetFlags updates the Flags field in the record's packed storage.
func (*ALMXHeader) SetLastGlyph ¶
func (s *ALMXHeader) SetLastGlyph(v uint16)
SetLastGlyph updates the LastGlyph field in the record's packed storage.
func (*ALMXHeader) SetLookup ¶
func (s *ALMXHeader) SetLookup(v SFNTLookupTable)
SetLookup updates the Lookup field in the record's packed storage.
func (*ALMXHeader) SetNMasters ¶
func (s *ALMXHeader) SetNMasters(v uint16)
SetNMasters updates the NMasters field in the record's packed storage.
func (*ALMXHeader) SetVersion ¶
func (s *ALMXHeader) SetVersion(v int32)
SetVersion updates the Version field in the record's packed storage.
func (*ALMXHeader) Version ¶
func (s *ALMXHeader) Version() int32
Version returns the Version field from the record's packed storage.
type ATSFontRef ¶
type ATSFontRef = uint32
See: https://developer.apple.com/documentation/CoreText/ATSFontRef
func CTFontGetPlatformFont
deprecated
func CTFontGetPlatformFont(font CTFontRef, attributes *CTFontDescriptorRef) ATSFontRef
CTFontGetPlatformFont returns an ATS font reference and attributes.
It panics if CTFontGetPlatformFont is unavailable at run time; use TryCTFontGetPlatformFont to get an error instead.
Deprecated: Deprecated since macOS 11.0. ATS is deprecated
See: https://developer.apple.com/documentation/CoreText/CTFontGetPlatformFont(_:_:)
func TryCTFontGetPlatformFont ¶
func TryCTFontGetPlatformFont(font CTFontRef, attributes *CTFontDescriptorRef) (ATSFontRef, error)
TryCTFontGetPlatformFont is like CTFontGetPlatformFont but returns an error instead of panicking if CTFontGetPlatformFont is unavailable at run time.
type AnchorPoint ¶
AnchorPoint
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/AnchorPoint
type AnchorPointTable ¶
type AnchorPointTable struct {
// contains filtered or unexported fields
}
AnchorPointTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/AnchorPointTable
func (*AnchorPointTable) NPoints ¶
func (s *AnchorPointTable) NPoints() uint32
NPoints returns the NPoints field from the record's packed storage.
func (*AnchorPointTable) Points ¶
func (s *AnchorPointTable) Points() [1]AnchorPoint
Points returns the Points field from the record's packed storage.
func (*AnchorPointTable) SetNPoints ¶
func (s *AnchorPointTable) SetNPoints(v uint32)
SetNPoints updates the NPoints field in the record's packed storage.
func (*AnchorPointTable) SetPoints ¶
func (s *AnchorPointTable) SetPoints(v [1]AnchorPoint)
SetPoints updates the Points field in the record's packed storage.
type AnkrTable ¶
type AnkrTable struct {
// contains filtered or unexported fields
}
AnkrTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/AnkrTable
func (*AnkrTable) AnchorPointTableOffset ¶
AnchorPointTableOffset returns the AnchorPointTableOffset field from the record's packed storage.
func (*AnkrTable) LookupTableOffset ¶
LookupTableOffset returns the LookupTableOffset field from the record's packed storage.
func (*AnkrTable) SetAnchorPointTableOffset ¶
SetAnchorPointTableOffset updates the AnchorPointTableOffset field in the record's packed storage.
func (*AnkrTable) SetLookupTableOffset ¶
SetLookupTableOffset updates the LookupTableOffset field in the record's packed storage.
func (*AnkrTable) SetVersion ¶
SetVersion updates the Version field in the record's packed storage.
type BslnBaselineClass ¶
type BslnBaselineClass = uint32
See: https://developer.apple.com/documentation/CoreText/BslnBaselineClass
type BslnBaselineRecord ¶
type BslnBaselineRecord = [32]int32
See: https://developer.apple.com/documentation/CoreText/BslnBaselineRecord
type BslnFormat0Part ¶
type BslnFormat0Part struct {
Deltas [32]int16
}
BslnFormat0Part
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/BslnFormat0Part
type BslnFormat1Part ¶
type BslnFormat1Part struct {
Deltas [32]int16
MappingData SFNTLookupTable
}
BslnFormat1Part
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/BslnFormat1Part
type BslnFormat2Part ¶
BslnFormat2Part
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/BslnFormat2Part
type BslnFormat3Part ¶
type BslnFormat3Part struct {
StdGlyph uint16
CtlPoints [32]int16
MappingData SFNTLookupTable
}
BslnFormat3Part
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/BslnFormat3Part
type BslnFormatUnion ¶
type BslnFormatUnion [42]uint16
BslnFormatUnion is a C union type.
func (*BslnFormatUnion) Fmt0Part ¶
func (u *BslnFormatUnion) Fmt0Part() *BslnFormat0Part
Fmt0Part returns the union interpreted as *BslnFormat0Part. The returned pointer aliases the receiver's memory.
func (*BslnFormatUnion) Fmt1Part ¶
func (u *BslnFormatUnion) Fmt1Part() *BslnFormat1Part
Fmt1Part returns the union interpreted as *BslnFormat1Part. The returned pointer aliases the receiver's memory.
func (*BslnFormatUnion) Fmt2Part ¶
func (u *BslnFormatUnion) Fmt2Part() *BslnFormat2Part
Fmt2Part returns the union interpreted as *BslnFormat2Part. The returned pointer aliases the receiver's memory.
func (*BslnFormatUnion) Fmt3Part ¶
func (u *BslnFormatUnion) Fmt3Part() *BslnFormat3Part
Fmt3Part returns the union interpreted as *BslnFormat3Part. The returned pointer aliases the receiver's memory.
type BslnTable ¶
type BslnTable struct {
// contains filtered or unexported fields
}
BslnTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/BslnTable
func (*BslnTable) DefaultBaseline ¶
DefaultBaseline returns the DefaultBaseline field from the record's packed storage.
func (*BslnTable) Format ¶
func (s *BslnTable) Format() BslnTableFormat
Format returns the Format field from the record's packed storage.
func (*BslnTable) Parts ¶
func (s *BslnTable) Parts() BslnFormatUnion
Parts returns the Parts field from the record's packed storage.
func (*BslnTable) SetDefaultBaseline ¶
SetDefaultBaseline updates the DefaultBaseline field in the record's packed storage.
func (*BslnTable) SetFormat ¶
func (s *BslnTable) SetFormat(v BslnTableFormat)
SetFormat updates the Format field in the record's packed storage.
func (*BslnTable) SetParts ¶
func (s *BslnTable) SetParts(v BslnFormatUnion)
SetParts updates the Parts field in the record's packed storage.
func (*BslnTable) SetVersion ¶
SetVersion updates the Version field in the record's packed storage.
type BslnTableFormat ¶
type BslnTableFormat = uint16
See: https://developer.apple.com/documentation/CoreText/BslnTableFormat
type BslnTablePtr ¶
type BslnTablePtr = *BslnTable
See: https://developer.apple.com/documentation/CoreText/BslnTablePtr
type CTAdaptiveImageProviding ¶
type CTAdaptiveImageProviding interface {
objectivec.IObject
}
CTAdaptiveImageProviding protocol.
See: https://developer.apple.com/documentation/CoreText/CTAdaptiveImageProviding
type CTAdaptiveImageProvidingObject ¶
type CTAdaptiveImageProvidingObject struct {
objectivec.Object
}
CTAdaptiveImageProvidingObject wraps an existing Objective-C object that conforms to the CTAdaptiveImageProviding protocol.
func CTAdaptiveImageProvidingObjectFromID ¶
func CTAdaptiveImageProvidingObjectFromID(id objc.ID) CTAdaptiveImageProvidingObject
CTAdaptiveImageProvidingObjectFromID constructs a CTAdaptiveImageProvidingObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (CTAdaptiveImageProvidingObject) BaseObject ¶
func (o CTAdaptiveImageProvidingObject) BaseObject() objectivec.Object
type CTCharacterCollection ¶
type CTCharacterCollection uint16
See: https://developer.apple.com/documentation/CoreText/CTCharacterCollection
const ( // KCTCharacterCollectionAdobeCNS1: The Adobe-CNS1 mapping. KCTCharacterCollectionAdobeCNS1 CTCharacterCollection = 1 // KCTCharacterCollectionAdobeGB1: The Adobe-GB1 mapping. KCTCharacterCollectionAdobeGB1 CTCharacterCollection = 2 // KCTCharacterCollectionAdobeJapan1: The Adobe-Japan1 mapping. KCTCharacterCollectionAdobeJapan1 CTCharacterCollection = 3 // KCTCharacterCollectionAdobeJapan2: The Adobe-Japan2 mapping. KCTCharacterCollectionAdobeJapan2 CTCharacterCollection = 4 // KCTCharacterCollectionAdobeKorea1: The Adobe-Korea1 mapping. KCTCharacterCollectionAdobeKorea1 CTCharacterCollection = 5 // KCTCharacterCollectionIdentityMapping: The character identifier is equal to the glyph index. KCTCharacterCollectionIdentityMapping CTCharacterCollection = 0 )
func CTGlyphInfoGetCharacterCollection ¶
func CTGlyphInfoGetCharacterCollection(glyphInfo CTGlyphInfoRef) CTCharacterCollection
CTGlyphInfoGetCharacterCollection gets the character collection for a glyph info object.
It panics if CTGlyphInfoGetCharacterCollection is unavailable at run time; use TryCTGlyphInfoGetCharacterCollection to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTGlyphInfoGetCharacterCollection(_:)
func TryCTGlyphInfoGetCharacterCollection ¶
func TryCTGlyphInfoGetCharacterCollection(glyphInfo CTGlyphInfoRef) (CTCharacterCollection, error)
TryCTGlyphInfoGetCharacterCollection is like CTGlyphInfoGetCharacterCollection but returns an error instead of panicking if CTGlyphInfoGetCharacterCollection is unavailable at run time.
func (CTCharacterCollection) String ¶
func (e CTCharacterCollection) String() string
type CTFontCollectionCopyOptions ¶
type CTFontCollectionCopyOptions uint32
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionCopyOptions
const ( // KCTFontCollectionCopyDefaultOptions: Passing this option indicates that defaults are to be used. KCTFontCollectionCopyDefaultOptions CTFontCollectionCopyOptions = 0 // KCTFontCollectionCopyStandardSort: Passing this option indicates that the return values should be sorted in standard UI order, suitable for display to the user. KCTFontCollectionCopyStandardSort CTFontCollectionCopyOptions = 2 // KCTFontCollectionCopyUnique: Passing this option indicates that duplicate values should be removed from the results. KCTFontCollectionCopyUnique CTFontCollectionCopyOptions = 1 )
func (CTFontCollectionCopyOptions) String ¶
func (e CTFontCollectionCopyOptions) String() string
type CTFontCollectionRef ¶
type CTFontCollectionRef uintptr
CTFontCollectionRef is a font collection.
See: https://developer.apple.com/documentation/CoreText/CTFontCollection
func CTFontCollectionCreateCopyWithFontDescriptors ¶
func CTFontCollectionCreateCopyWithFontDescriptors(original CTFontCollectionRef, queryDescriptors corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) CTFontCollectionRef
CTFontCollectionCreateCopyWithFontDescriptors returns a copy of the original collection augmented with the given new font descriptors.
It panics if CTFontCollectionCreateCopyWithFontDescriptors is unavailable at run time; use TryCTFontCollectionCreateCopyWithFontDescriptors to get an error instead.
func CTFontCollectionCreateFromAvailableFonts ¶
func CTFontCollectionCreateFromAvailableFonts(options corefoundation.CFDictionaryRef) CTFontCollectionRef
CTFontCollectionCreateFromAvailableFonts returns a new font collection containing all available fonts.
It panics if CTFontCollectionCreateFromAvailableFonts is unavailable at run time; use TryCTFontCollectionCreateFromAvailableFonts to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionCreateFromAvailableFonts(_:)
func CTFontCollectionCreateWithFontDescriptors ¶
func CTFontCollectionCreateWithFontDescriptors(queryDescriptors corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) CTFontCollectionRef
CTFontCollectionCreateWithFontDescriptors returns a new font collection based on the given array of font descriptors.
It panics if CTFontCollectionCreateWithFontDescriptors is unavailable at run time; use TryCTFontCollectionCreateWithFontDescriptors to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionCreateWithFontDescriptors(_:_:)
func TryCTFontCollectionCreateCopyWithFontDescriptors ¶
func TryCTFontCollectionCreateCopyWithFontDescriptors(original CTFontCollectionRef, queryDescriptors corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) (CTFontCollectionRef, error)
TryCTFontCollectionCreateCopyWithFontDescriptors is like CTFontCollectionCreateCopyWithFontDescriptors but returns an error instead of panicking if CTFontCollectionCreateCopyWithFontDescriptors is unavailable at run time.
func TryCTFontCollectionCreateFromAvailableFonts ¶
func TryCTFontCollectionCreateFromAvailableFonts(options corefoundation.CFDictionaryRef) (CTFontCollectionRef, error)
TryCTFontCollectionCreateFromAvailableFonts is like CTFontCollectionCreateFromAvailableFonts but returns an error instead of panicking if CTFontCollectionCreateFromAvailableFonts is unavailable at run time.
func TryCTFontCollectionCreateWithFontDescriptors ¶
func TryCTFontCollectionCreateWithFontDescriptors(queryDescriptors corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) (CTFontCollectionRef, error)
TryCTFontCollectionCreateWithFontDescriptors is like CTFontCollectionCreateWithFontDescriptors but returns an error instead of panicking if CTFontCollectionCreateWithFontDescriptors is unavailable at run time.
type CTFontCollectionSortDescriptorsCallback ¶
type CTFontCollectionSortDescriptorsCallback = func(first CTFontDescriptorRef, second CTFontDescriptorRef, refCon unsafe.Pointer) corefoundation.CFComparisonResult
CTFontCollectionSortDescriptorsCallback is the collection sorting callback type.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionSortDescriptorsCallback
type CTFontDescriptorMatchingState ¶
type CTFontDescriptorMatchingState uint32
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorMatchingState
const ( // KCTFontDescriptorMatchingDidBegin: A state that indicates matching is about to begin. KCTFontDescriptorMatchingDidBegin CTFontDescriptorMatchingState = 0 // KCTFontDescriptorMatchingDidFailWithError: A state that indicates an error. KCTFontDescriptorMatchingDidFailWithError CTFontDescriptorMatchingState = 8 // KCTFontDescriptorMatchingDidFinish: A state that indicates matching is done. KCTFontDescriptorMatchingDidFinish CTFontDescriptorMatchingState = 1 // KCTFontDescriptorMatchingDidFinishDownloading: A state that indicates downloading is done. KCTFontDescriptorMatchingDidFinishDownloading CTFontDescriptorMatchingState = 6 // KCTFontDescriptorMatchingDidMatch: A state that indicates the font descriptor match is successful. KCTFontDescriptorMatchingDidMatch CTFontDescriptorMatchingState = 7 // KCTFontDescriptorMatchingDownloading: A state that indicates downloading is in progress. KCTFontDescriptorMatchingDownloading CTFontDescriptorMatchingState = 5 // KCTFontDescriptorMatchingStalled: A state that indicates that matching is stalled, such as while waiting for a server response. KCTFontDescriptorMatchingStalled CTFontDescriptorMatchingState = 3 // KCTFontDescriptorMatchingWillBeginDownloading: A state that indicates downloading is about to begin. KCTFontDescriptorMatchingWillBeginDownloading CTFontDescriptorMatchingState = 4 // KCTFontDescriptorMatchingWillBeginQuerying: A state that indicates communication with the server is about to begin. KCTFontDescriptorMatchingWillBeginQuerying CTFontDescriptorMatchingState = 2 )
func (CTFontDescriptorMatchingState) String ¶
func (e CTFontDescriptorMatchingState) String() string
type CTFontDescriptorProgressHandler ¶
type CTFontDescriptorProgressHandler = func(CTFontDescriptorMatchingState, corefoundation.CFDictionaryRef) bool
CTFontDescriptorProgressHandler is the progress callback type.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorProgressHandler
type CTFontDescriptorRef ¶
type CTFontDescriptorRef uintptr
CTFontDescriptorRef is a font descriptor.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptor
func CTFontCopyFontDescriptor ¶
func CTFontCopyFontDescriptor(font CTFontRef) CTFontDescriptorRef
CTFontCopyFontDescriptor returns the normalized font descriptor for the given font reference.
It panics if CTFontCopyFontDescriptor is unavailable at run time; use TryCTFontCopyFontDescriptor to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCopyFontDescriptor(_:)
func CTFontDescriptorCreateCopyWithAttributes ¶
func CTFontDescriptorCreateCopyWithAttributes(original CTFontDescriptorRef, attributes corefoundation.CFDictionaryRef) CTFontDescriptorRef
CTFontDescriptorCreateCopyWithAttributes creates a copy of the original font descriptor with new attributes.
It panics if CTFontDescriptorCreateCopyWithAttributes is unavailable at run time; use TryCTFontDescriptorCreateCopyWithAttributes to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorCreateCopyWithAttributes(_:_:)
func CTFontDescriptorCreateCopyWithFamily ¶
func CTFontDescriptorCreateCopyWithFamily(original CTFontDescriptorRef, family corefoundation.CFStringRef) CTFontDescriptorRef
CTFontDescriptorCreateCopyWithFamily creates a copy of the font descriptor in the specified family based on the traits of the original.
It panics if CTFontDescriptorCreateCopyWithFamily is unavailable at run time; use TryCTFontDescriptorCreateCopyWithFamily to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorCreateCopyWithFamily(_:_:)
func CTFontDescriptorCreateCopyWithFeature ¶
func CTFontDescriptorCreateCopyWithFeature(original CTFontDescriptorRef, featureTypeIdentifier corefoundation.CFNumberRef, featureSelectorIdentifier corefoundation.CFNumberRef) CTFontDescriptorRef
CTFontDescriptorCreateCopyWithFeature copies a font descriptor with new feature settings.
It panics if CTFontDescriptorCreateCopyWithFeature is unavailable at run time; use TryCTFontDescriptorCreateCopyWithFeature to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorCreateCopyWithFeature(_:_:_:)
func CTFontDescriptorCreateCopyWithSymbolicTraits ¶
func CTFontDescriptorCreateCopyWithSymbolicTraits(original CTFontDescriptorRef, symTraitValue CTFontSymbolicTraits, symTraitMask CTFontSymbolicTraits) CTFontDescriptorRef
CTFontDescriptorCreateCopyWithSymbolicTraits creates a copy of the font descriptor with the specified symbolic traits as the original.
It panics if CTFontDescriptorCreateCopyWithSymbolicTraits is unavailable at run time; use TryCTFontDescriptorCreateCopyWithSymbolicTraits to get an error instead.
func CTFontDescriptorCreateCopyWithVariation ¶
func CTFontDescriptorCreateCopyWithVariation(original CTFontDescriptorRef, variationIdentifier corefoundation.CFNumberRef, variationValue float64) CTFontDescriptorRef
CTFontDescriptorCreateCopyWithVariation creates a copy of the original font descriptor with a new variation instance.
It panics if CTFontDescriptorCreateCopyWithVariation is unavailable at run time; use TryCTFontDescriptorCreateCopyWithVariation to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorCreateCopyWithVariation(_:_:_:)
func CTFontDescriptorCreateMatchingFontDescriptor ¶
func CTFontDescriptorCreateMatchingFontDescriptor(descriptor CTFontDescriptorRef, mandatoryAttributes corefoundation.CFSetRef) CTFontDescriptorRef
CTFontDescriptorCreateMatchingFontDescriptor returns the single preferred matching font descriptor based on the original descriptor and system precedence.
It panics if CTFontDescriptorCreateMatchingFontDescriptor is unavailable at run time; use TryCTFontDescriptorCreateMatchingFontDescriptor to get an error instead.
func CTFontDescriptorCreateWithAttributes ¶
func CTFontDescriptorCreateWithAttributes(attributes corefoundation.CFDictionaryRef) CTFontDescriptorRef
CTFontDescriptorCreateWithAttributes creates a new font descriptor reference from a dictionary of attributes.
It panics if CTFontDescriptorCreateWithAttributes is unavailable at run time; use TryCTFontDescriptorCreateWithAttributes to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorCreateWithAttributes(_:)
func CTFontDescriptorCreateWithNameAndSize ¶
func CTFontDescriptorCreateWithNameAndSize(name corefoundation.CFStringRef, size float64) CTFontDescriptorRef
CTFontDescriptorCreateWithNameAndSize creates a new font descriptor with the provided PostScript name and size.
It panics if CTFontDescriptorCreateWithNameAndSize is unavailable at run time; use TryCTFontDescriptorCreateWithNameAndSize to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontDescriptorCreateWithNameAndSize(_:_:)
func CTFontManagerCreateFontDescriptorFromData ¶
func CTFontManagerCreateFontDescriptorFromData(data corefoundation.CFDataRef) CTFontDescriptorRef
CTFontManagerCreateFontDescriptorFromData creates a font descriptor representing the font in the supplied data.
It panics if CTFontManagerCreateFontDescriptorFromData is unavailable at run time; use TryCTFontManagerCreateFontDescriptorFromData to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerCreateFontDescriptorFromData(_:)
func TryCTFontCopyFontDescriptor ¶
func TryCTFontCopyFontDescriptor(font CTFontRef) (CTFontDescriptorRef, error)
TryCTFontCopyFontDescriptor is like CTFontCopyFontDescriptor but returns an error instead of panicking if CTFontCopyFontDescriptor is unavailable at run time.
func TryCTFontDescriptorCreateCopyWithAttributes ¶
func TryCTFontDescriptorCreateCopyWithAttributes(original CTFontDescriptorRef, attributes corefoundation.CFDictionaryRef) (CTFontDescriptorRef, error)
TryCTFontDescriptorCreateCopyWithAttributes is like CTFontDescriptorCreateCopyWithAttributes but returns an error instead of panicking if CTFontDescriptorCreateCopyWithAttributes is unavailable at run time.
func TryCTFontDescriptorCreateCopyWithFamily ¶
func TryCTFontDescriptorCreateCopyWithFamily(original CTFontDescriptorRef, family corefoundation.CFStringRef) (CTFontDescriptorRef, error)
TryCTFontDescriptorCreateCopyWithFamily is like CTFontDescriptorCreateCopyWithFamily but returns an error instead of panicking if CTFontDescriptorCreateCopyWithFamily is unavailable at run time.
func TryCTFontDescriptorCreateCopyWithFeature ¶
func TryCTFontDescriptorCreateCopyWithFeature(original CTFontDescriptorRef, featureTypeIdentifier corefoundation.CFNumberRef, featureSelectorIdentifier corefoundation.CFNumberRef) (CTFontDescriptorRef, error)
TryCTFontDescriptorCreateCopyWithFeature is like CTFontDescriptorCreateCopyWithFeature but returns an error instead of panicking if CTFontDescriptorCreateCopyWithFeature is unavailable at run time.
func TryCTFontDescriptorCreateCopyWithSymbolicTraits ¶
func TryCTFontDescriptorCreateCopyWithSymbolicTraits(original CTFontDescriptorRef, symTraitValue CTFontSymbolicTraits, symTraitMask CTFontSymbolicTraits) (CTFontDescriptorRef, error)
TryCTFontDescriptorCreateCopyWithSymbolicTraits is like CTFontDescriptorCreateCopyWithSymbolicTraits but returns an error instead of panicking if CTFontDescriptorCreateCopyWithSymbolicTraits is unavailable at run time.
func TryCTFontDescriptorCreateCopyWithVariation ¶
func TryCTFontDescriptorCreateCopyWithVariation(original CTFontDescriptorRef, variationIdentifier corefoundation.CFNumberRef, variationValue float64) (CTFontDescriptorRef, error)
TryCTFontDescriptorCreateCopyWithVariation is like CTFontDescriptorCreateCopyWithVariation but returns an error instead of panicking if CTFontDescriptorCreateCopyWithVariation is unavailable at run time.
func TryCTFontDescriptorCreateMatchingFontDescriptor ¶
func TryCTFontDescriptorCreateMatchingFontDescriptor(descriptor CTFontDescriptorRef, mandatoryAttributes corefoundation.CFSetRef) (CTFontDescriptorRef, error)
TryCTFontDescriptorCreateMatchingFontDescriptor is like CTFontDescriptorCreateMatchingFontDescriptor but returns an error instead of panicking if CTFontDescriptorCreateMatchingFontDescriptor is unavailable at run time.
func TryCTFontDescriptorCreateWithAttributes ¶
func TryCTFontDescriptorCreateWithAttributes(attributes corefoundation.CFDictionaryRef) (CTFontDescriptorRef, error)
TryCTFontDescriptorCreateWithAttributes is like CTFontDescriptorCreateWithAttributes but returns an error instead of panicking if CTFontDescriptorCreateWithAttributes is unavailable at run time.
func TryCTFontDescriptorCreateWithNameAndSize ¶
func TryCTFontDescriptorCreateWithNameAndSize(name corefoundation.CFStringRef, size float64) (CTFontDescriptorRef, error)
TryCTFontDescriptorCreateWithNameAndSize is like CTFontDescriptorCreateWithNameAndSize but returns an error instead of panicking if CTFontDescriptorCreateWithNameAndSize is unavailable at run time.
func TryCTFontManagerCreateFontDescriptorFromData ¶
func TryCTFontManagerCreateFontDescriptorFromData(data corefoundation.CFDataRef) (CTFontDescriptorRef, error)
TryCTFontManagerCreateFontDescriptorFromData is like CTFontManagerCreateFontDescriptorFromData but returns an error instead of panicking if CTFontManagerCreateFontDescriptorFromData is unavailable at run time.
type CTFontFormat ¶
type CTFontFormat uint32
See: https://developer.apple.com/documentation/CoreText/CTFontFormat
const ( // KCTFontFormatBitmap: The font is a bitmap-only format. KCTFontFormatBitmap CTFontFormat = 5 // KCTFontFormatOpenTypePostScript: The font is an OpenType format containing PostScript data. KCTFontFormatOpenTypePostScript CTFontFormat = 1 // KCTFontFormatOpenTypeTrueType: The font is an OpenType format containing TrueType data. KCTFontFormatOpenTypeTrueType CTFontFormat = 2 // KCTFontFormatPostScript: The font is a recognized PostScript format. KCTFontFormatPostScript CTFontFormat = 4 // KCTFontFormatTrueType: The font is a recognized TrueType format. KCTFontFormatTrueType CTFontFormat = 3 // KCTFontFormatUnrecognized: The font is not a recognized format. KCTFontFormatUnrecognized CTFontFormat = 0 )
func (CTFontFormat) String ¶
func (e CTFontFormat) String() string
type CTFontManagerAutoActivationSetting ¶
type CTFontManagerAutoActivationSetting uint32
See: https://developer.apple.com/documentation/CoreText/CTFontManagerAutoActivationSetting
func CTFontManagerGetAutoActivationSetting ¶
func CTFontManagerGetAutoActivationSetting(bundleIdentifier corefoundation.CFStringRef) CTFontManagerAutoActivationSetting
CTFontManagerGetAutoActivationSetting gets the auto-activation setting for the specified bundle identifier.
It panics if CTFontManagerGetAutoActivationSetting is unavailable at run time; use TryCTFontManagerGetAutoActivationSetting to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerGetAutoActivationSetting(_:)
func TryCTFontManagerGetAutoActivationSetting ¶
func TryCTFontManagerGetAutoActivationSetting(bundleIdentifier corefoundation.CFStringRef) (CTFontManagerAutoActivationSetting, error)
TryCTFontManagerGetAutoActivationSetting is like CTFontManagerGetAutoActivationSetting but returns an error instead of panicking if CTFontManagerGetAutoActivationSetting is unavailable at run time.
type CTFontManagerError ¶
type CTFontManagerError int
See: https://developer.apple.com/documentation/CoreText/CTFontManagerError
const ( // KCTFontManagerErrorAlreadyRegistered: An error that indicates the file is already registered in the specified scope. KCTFontManagerErrorAlreadyRegistered CTFontManagerError = 105 // KCTFontManagerErrorAssetNotFound: An error that indicates the asset isn’t found. KCTFontManagerErrorAssetNotFound CTFontManagerError = 107 // KCTFontManagerErrorCancelledByUser: An error that indicates the user cancelled the operation. KCTFontManagerErrorCancelledByUser CTFontManagerError = 304 // KCTFontManagerErrorDuplicatedName: An error that indicates the file can’t register because of a duplicate font name. KCTFontManagerErrorDuplicatedName CTFontManagerError = 305 // KCTFontManagerErrorExceededResourceLimit: An error that indicates an operation failure due to a system limitation. KCTFontManagerErrorExceededResourceLimit CTFontManagerError = 106 // KCTFontManagerErrorFileNotFound: An error that indicates the file doesn’t exist at the specified URL. KCTFontManagerErrorFileNotFound CTFontManagerError = 101 // KCTFontManagerErrorInUse: An error that indicates the font file is actively in use and can’t be unregistered. KCTFontManagerErrorInUse CTFontManagerError = 202 // KCTFontManagerErrorInsufficientInfo: An error that indicates the font descriptor doesn’t have the necessary information to specify a font file. KCTFontManagerErrorInsufficientInfo CTFontManagerError = 303 // KCTFontManagerErrorInsufficientPermissions: An error that indicates insufficient permissions to access the file. KCTFontManagerErrorInsufficientPermissions CTFontManagerError = 102 // KCTFontManagerErrorInvalidFilePath: An error that indicates the file isn’t in an allowed location, which must be either in the app’s bundle or an on-demand resource. KCTFontManagerErrorInvalidFilePath CTFontManagerError = 306 // KCTFontManagerErrorInvalidFontData: An error that indicates the file contains invalid font data that could cause system problems. KCTFontManagerErrorInvalidFontData CTFontManagerError = 104 // KCTFontManagerErrorMissingEntitlement: An error that indicates the file can’t be processed because the provider doesn’t have a necessary entitlement. KCTFontManagerErrorMissingEntitlement CTFontManagerError = 302 // KCTFontManagerErrorNotRegistered: An error that indicates the file isn’t registered in the specified scope. KCTFontManagerErrorNotRegistered CTFontManagerError = 201 // KCTFontManagerErrorRegistrationFailed: An error that indicates the file can’t be processed due to an unexpected FontProvider error. KCTFontManagerErrorRegistrationFailed CTFontManagerError = 301 // KCTFontManagerErrorSystemRequired: An error that indicates the file is required by the system and can’t be unregistered. KCTFontManagerErrorSystemRequired CTFontManagerError = 203 // KCTFontManagerErrorUnrecognizedFormat: An error that indicates the file’s format is unrecognized or unsupported. KCTFontManagerErrorUnrecognizedFormat CTFontManagerError = 103 // KCTFontManagerErrorUnsupportedScope: An error that indicates the specified scope isn’t supported. KCTFontManagerErrorUnsupportedScope CTFontManagerError = 307 )
func (CTFontManagerError) String ¶
func (e CTFontManagerError) String() string
type CTFontManagerScope ¶
type CTFontManagerScope uint32
See: https://developer.apple.com/documentation/CoreText/CTFontManagerScope
const ( // KCTFontManagerScopeNone: No scope is defined. KCTFontManagerScopeNone CTFontManagerScope = 0 // KCTFontManagerScopePersistent: The font is available to all processes for the current user session and will be available in subsequent sessions unless unregistered. KCTFontManagerScopePersistent CTFontManagerScope = 2 // KCTFontManagerScopeProcess: The font is available to the current process for the duration of the process unless directly unregistered. KCTFontManagerScopeProcess CTFontManagerScope = 1 // KCTFontManagerScopeSession: The font is available to the current user session but won’t be available in subsequent sessions. KCTFontManagerScopeSession CTFontManagerScope = 3 )
func CTFontManagerGetScopeForURL ¶
func CTFontManagerGetScopeForURL(fontURL corefoundation.CFURLRef) CTFontManagerScope
CTFontManagerGetScopeForURL returns the registration scope of the specified URL.
It panics if CTFontManagerGetScopeForURL is unavailable at run time; use TryCTFontManagerGetScopeForURL to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontManagerGetScopeForURL(_:)
func TryCTFontManagerGetScopeForURL ¶
func TryCTFontManagerGetScopeForURL(fontURL corefoundation.CFURLRef) (CTFontManagerScope, error)
TryCTFontManagerGetScopeForURL is like CTFontManagerGetScopeForURL but returns an error instead of panicking if CTFontManagerGetScopeForURL is unavailable at run time.
func (CTFontManagerScope) String ¶
func (e CTFontManagerScope) String() string
type CTFontOptions ¶
type CTFontOptions uint
See: https://developer.apple.com/documentation/CoreText/CTFontOptions
const ( // KCTFontOptionsDefault: Default options are used. KCTFontOptionsDefault CTFontOptions = 0 // KCTFontOptionsPreferSystemFont: Font matching prefers to match Apple system fonts. KCTFontOptionsPreferSystemFont CTFontOptions = 4 // KCTFontOptionsPreventAutoActivation: Prevents automatic font activation. KCTFontOptionsPreventAutoActivation CTFontOptions = 1 KCTFontOptionsPreventAutoDownload CTFontOptions = 2 )
func (CTFontOptions) String ¶
func (e CTFontOptions) String() string
type CTFontOrientation ¶
type CTFontOrientation uint32
See: https://developer.apple.com/documentation/CoreText/CTFontOrientation
const ( // KCTFontOrientationDefault: The native orientation of the font. KCTFontOrientationDefault CTFontOrientation = 0 // KCTFontOrientationHorizontal: The horizontal orientation. KCTFontOrientationHorizontal CTFontOrientation = 1 // KCTFontOrientationVertical: The vertical orientation. KCTFontOrientationVertical CTFontOrientation = 2 )
func (CTFontOrientation) String ¶
func (e CTFontOrientation) String() string
type CTFontPriority ¶
type CTFontPriority = uint32
CTFontPriority is the priority of font descriptors when resolving duplicates and sorting match results.
See: https://developer.apple.com/documentation/CoreText/CTFontPriority
type CTFontRef ¶
type CTFontRef uintptr
CTFontRef is a font object.
See: https://developer.apple.com/documentation/CoreText/CTFont
func CTFontCreateCopyWithAttributes ¶
func CTFontCreateCopyWithAttributes(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, attributes CTFontDescriptorRef) CTFontRef
CTFontCreateCopyWithAttributes returns a new font with additional attributes based on the original font.
It panics if CTFontCreateCopyWithAttributes is unavailable at run time; use TryCTFontCreateCopyWithAttributes to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCreateCopyWithAttributes(_:_:_:_:)
func CTFontCreateCopyWithFamily ¶
func CTFontCreateCopyWithFamily(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, family corefoundation.CFStringRef) CTFontRef
CTFontCreateCopyWithFamily returns a new font in the specified family based on the traits of the original font.
It panics if CTFontCreateCopyWithFamily is unavailable at run time; use TryCTFontCreateCopyWithFamily to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCreateCopyWithFamily(_:_:_:_:)
func CTFontCreateCopyWithSymbolicTraits ¶
func CTFontCreateCopyWithSymbolicTraits(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, symTraitValue CTFontSymbolicTraits, symTraitMask CTFontSymbolicTraits) CTFontRef
CTFontCreateCopyWithSymbolicTraits returns a new font in the same font family as the original with the specified symbolic traits.
It panics if CTFontCreateCopyWithSymbolicTraits is unavailable at run time; use TryCTFontCreateCopyWithSymbolicTraits to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCreateCopyWithSymbolicTraits(_:_:_:_:_:)
func CTFontCreateForString ¶
func CTFontCreateForString(currentFont CTFontRef, string_ corefoundation.CFStringRef, range_ corefoundation.CFRange) CTFontRef
CTFontCreateForString returns a font reference that most accurately maps the string range based on the current font.
It panics if CTFontCreateForString is unavailable at run time; use TryCTFontCreateForString to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCreateForString(_:_:_:)
func CTFontCreateForStringWithLanguage ¶
func CTFontCreateForStringWithLanguage(currentFont CTFontRef, string_ corefoundation.CFStringRef, range_ corefoundation.CFRange, language corefoundation.CFStringRef) CTFontRef
CTFontCreateForStringWithLanguage returns a font reference that most accurately maps the string range based on the current font and language.
It panics if CTFontCreateForStringWithLanguage is unavailable at run time; use TryCTFontCreateForStringWithLanguage to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCreateForStringWithLanguage(_:_:_:_:)
func CTFontCreateUIFontForLanguage ¶
func CTFontCreateUIFontForLanguage(uiType CTFontUIFontType, size float64, language corefoundation.CFStringRef) CTFontRef
CTFontCreateUIFontForLanguage returns the special user-interface font for the given language and user-interface type.
It panics if CTFontCreateUIFontForLanguage is unavailable at run time; use TryCTFontCreateUIFontForLanguage to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCreateUIFontForLanguage(_:_:_:)
func CTFontCreateWithFontDescriptor ¶
func CTFontCreateWithFontDescriptor(descriptor CTFontDescriptorRef, size float64, matrix *corefoundation.CGAffineTransform) CTFontRef
CTFontCreateWithFontDescriptor returns a new font reference that best matches the given font descriptor.
It panics if CTFontCreateWithFontDescriptor is unavailable at run time; use TryCTFontCreateWithFontDescriptor to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCreateWithFontDescriptor(_:_:_:)
func CTFontCreateWithFontDescriptorAndOptions ¶
func CTFontCreateWithFontDescriptorAndOptions(descriptor CTFontDescriptorRef, size float64, matrix *corefoundation.CGAffineTransform, options CTFontOptions) CTFontRef
CTFontCreateWithFontDescriptorAndOptions returns a new font reference that best matches the given font descriptor.
It panics if CTFontCreateWithFontDescriptorAndOptions is unavailable at run time; use TryCTFontCreateWithFontDescriptorAndOptions to get an error instead.
func CTFontCreateWithGraphicsFont ¶
func CTFontCreateWithGraphicsFont(graphicsFont coregraphics.CGFont, size float64, matrix *corefoundation.CGAffineTransform, attributes CTFontDescriptorRef) CTFontRef
CTFontCreateWithGraphicsFont creates a new font reference from an existing Core Graphics font reference.
It panics if CTFontCreateWithGraphicsFont is unavailable at run time; use TryCTFontCreateWithGraphicsFont to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCreateWithGraphicsFont(_:_:_:_:)
func CTFontCreateWithName ¶
func CTFontCreateWithName(name corefoundation.CFStringRef, size float64, matrix *corefoundation.CGAffineTransform) CTFontRef
CTFontCreateWithName returns a new font reference for the given name.
It panics if CTFontCreateWithName is unavailable at run time; use TryCTFontCreateWithName to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCreateWithName(_:_:_:)
func CTFontCreateWithNameAndOptions ¶
func CTFontCreateWithNameAndOptions(name corefoundation.CFStringRef, size float64, matrix *corefoundation.CGAffineTransform, options CTFontOptions) CTFontRef
CTFontCreateWithNameAndOptions returns a new font reference for the given name.
It panics if CTFontCreateWithNameAndOptions is unavailable at run time; use TryCTFontCreateWithNameAndOptions to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCreateWithNameAndOptions(_:_:_:_:)
func CTFontCreateWithPlatformFont
deprecated
func CTFontCreateWithPlatformFont(platformFont ATSFontRef, size float64, matrix *corefoundation.CGAffineTransform, attributes CTFontDescriptorRef) CTFontRef
CTFontCreateWithPlatformFont creates a new font reference from an ATS font reference.
It panics if CTFontCreateWithPlatformFont is unavailable at run time; use TryCTFontCreateWithPlatformFont to get an error instead.
Deprecated: Deprecated since macOS 11.0. ATS is deprecated
See: https://developer.apple.com/documentation/CoreText/CTFontCreateWithPlatformFont(_:_:_:_:)
func CTFontCreateWithQuickdrawInstance
deprecated
func CTFontCreateWithQuickdrawInstance(name unsafe.Pointer, identifier int16, style uint8, size float64) CTFontRef
CTFontCreateWithQuickdrawInstance returns a font reference for the given QuickDraw instance.
It panics if CTFontCreateWithQuickdrawInstance is unavailable at run time; use TryCTFontCreateWithQuickdrawInstance to get an error instead.
Deprecated: Deprecated since macOS 10.15. Quickdraw font references are deprecated
See: https://developer.apple.com/documentation/CoreText/CTFontCreateWithQuickdrawInstance(_:_:_:_:)
func TryCTFontCreateCopyWithAttributes ¶
func TryCTFontCreateCopyWithAttributes(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, attributes CTFontDescriptorRef) (CTFontRef, error)
TryCTFontCreateCopyWithAttributes is like CTFontCreateCopyWithAttributes but returns an error instead of panicking if CTFontCreateCopyWithAttributes is unavailable at run time.
func TryCTFontCreateCopyWithFamily ¶
func TryCTFontCreateCopyWithFamily(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, family corefoundation.CFStringRef) (CTFontRef, error)
TryCTFontCreateCopyWithFamily is like CTFontCreateCopyWithFamily but returns an error instead of panicking if CTFontCreateCopyWithFamily is unavailable at run time.
func TryCTFontCreateCopyWithSymbolicTraits ¶
func TryCTFontCreateCopyWithSymbolicTraits(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, symTraitValue CTFontSymbolicTraits, symTraitMask CTFontSymbolicTraits) (CTFontRef, error)
TryCTFontCreateCopyWithSymbolicTraits is like CTFontCreateCopyWithSymbolicTraits but returns an error instead of panicking if CTFontCreateCopyWithSymbolicTraits is unavailable at run time.
func TryCTFontCreateForString ¶
func TryCTFontCreateForString(currentFont CTFontRef, string_ corefoundation.CFStringRef, range_ corefoundation.CFRange) (CTFontRef, error)
TryCTFontCreateForString is like CTFontCreateForString but returns an error instead of panicking if CTFontCreateForString is unavailable at run time.
func TryCTFontCreateForStringWithLanguage ¶
func TryCTFontCreateForStringWithLanguage(currentFont CTFontRef, string_ corefoundation.CFStringRef, range_ corefoundation.CFRange, language corefoundation.CFStringRef) (CTFontRef, error)
TryCTFontCreateForStringWithLanguage is like CTFontCreateForStringWithLanguage but returns an error instead of panicking if CTFontCreateForStringWithLanguage is unavailable at run time.
func TryCTFontCreateUIFontForLanguage ¶
func TryCTFontCreateUIFontForLanguage(uiType CTFontUIFontType, size float64, language corefoundation.CFStringRef) (CTFontRef, error)
TryCTFontCreateUIFontForLanguage is like CTFontCreateUIFontForLanguage but returns an error instead of panicking if CTFontCreateUIFontForLanguage is unavailable at run time.
func TryCTFontCreateWithFontDescriptor ¶
func TryCTFontCreateWithFontDescriptor(descriptor CTFontDescriptorRef, size float64, matrix *corefoundation.CGAffineTransform) (CTFontRef, error)
TryCTFontCreateWithFontDescriptor is like CTFontCreateWithFontDescriptor but returns an error instead of panicking if CTFontCreateWithFontDescriptor is unavailable at run time.
func TryCTFontCreateWithFontDescriptorAndOptions ¶
func TryCTFontCreateWithFontDescriptorAndOptions(descriptor CTFontDescriptorRef, size float64, matrix *corefoundation.CGAffineTransform, options CTFontOptions) (CTFontRef, error)
TryCTFontCreateWithFontDescriptorAndOptions is like CTFontCreateWithFontDescriptorAndOptions but returns an error instead of panicking if CTFontCreateWithFontDescriptorAndOptions is unavailable at run time.
func TryCTFontCreateWithGraphicsFont ¶
func TryCTFontCreateWithGraphicsFont(graphicsFont coregraphics.CGFont, size float64, matrix *corefoundation.CGAffineTransform, attributes CTFontDescriptorRef) (CTFontRef, error)
TryCTFontCreateWithGraphicsFont is like CTFontCreateWithGraphicsFont but returns an error instead of panicking if CTFontCreateWithGraphicsFont is unavailable at run time.
func TryCTFontCreateWithName ¶
func TryCTFontCreateWithName(name corefoundation.CFStringRef, size float64, matrix *corefoundation.CGAffineTransform) (CTFontRef, error)
TryCTFontCreateWithName is like CTFontCreateWithName but returns an error instead of panicking if CTFontCreateWithName is unavailable at run time.
func TryCTFontCreateWithNameAndOptions ¶
func TryCTFontCreateWithNameAndOptions(name corefoundation.CFStringRef, size float64, matrix *corefoundation.CGAffineTransform, options CTFontOptions) (CTFontRef, error)
TryCTFontCreateWithNameAndOptions is like CTFontCreateWithNameAndOptions but returns an error instead of panicking if CTFontCreateWithNameAndOptions is unavailable at run time.
func TryCTFontCreateWithPlatformFont ¶
func TryCTFontCreateWithPlatformFont(platformFont ATSFontRef, size float64, matrix *corefoundation.CGAffineTransform, attributes CTFontDescriptorRef) (CTFontRef, error)
TryCTFontCreateWithPlatformFont is like CTFontCreateWithPlatformFont but returns an error instead of panicking if CTFontCreateWithPlatformFont is unavailable at run time.
func TryCTFontCreateWithQuickdrawInstance ¶
func TryCTFontCreateWithQuickdrawInstance(name unsafe.Pointer, identifier int16, style uint8, size float64) (CTFontRef, error)
TryCTFontCreateWithQuickdrawInstance is like CTFontCreateWithQuickdrawInstance but returns an error instead of panicking if CTFontCreateWithQuickdrawInstance is unavailable at run time.
type CTFontStylisticClass ¶
type CTFontStylisticClass uint32
See: https://developer.apple.com/documentation/CoreText/CTFontStylisticClass
const ( // KCTFontClarendonSerifsClass: The font’s style is a variation of the Oldstyle Serifs and the Transitional Serifs. KCTFontClarendonSerifsClass CTFontStylisticClass = 1073741824 // KCTFontClassClarendonSerifs: A font style variation of the Oldstyle Serifs and the Transitional Serifs. KCTFontClassClarendonSerifs CTFontStylisticClass = 1073741824 // KCTFontClassFreeformSerifs: A font style that includes serifs but expresses a design freedom that doesn’t generally fit within the other serif design classifications. KCTFontClassFreeformSerifs CTFontStylisticClass = 1879048192 // KCTFontClassModernSerifs: A font style based on the Latin printing style of the 20th century. KCTFontClassModernSerifs CTFontStylisticClass = 805306368 // KCTFontClassOldStyleSerifs: A font style based on the Latin printing style of the 15th to 17th century. KCTFontClassOldStyleSerifs CTFontStylisticClass = 268435456 // KCTFontClassOrnamentals: A font style that includes highly decorated or stylized character shapes such as those typically used in headlines. KCTFontClassOrnamentals CTFontStylisticClass = 2415919104 // KCTFontClassSansSerif: A font style that includes most basic letter forms (excluding Scripts and Ornamentals) that do not have serifs on the strokes. KCTFontClassSansSerif CTFontStylisticClass = 2147483648 // KCTFontClassScripts: A font style among those typefaces designed to simulate handwriting. KCTFontClassScripts CTFontStylisticClass = 2684354560 // KCTFontClassSlabSerifs: A font style characterized by serifs with a square transition between the strokes and the serifs (no brackets). KCTFontClassSlabSerifs CTFontStylisticClass = 1342177280 // KCTFontClassSymbolic: A generally design-independent font style. KCTFontClassSymbolic CTFontStylisticClass = 3221225472 // KCTFontClassTransitionalSerifs: A font style based on the Latin printing style of the 18th to 19th century. KCTFontClassTransitionalSerifs CTFontStylisticClass = 536870912 // KCTFontClassUnknown: The font has no design classification. KCTFontClassUnknown CTFontStylisticClass = 0 // KCTFontFreeformSerifsClass: The font’s style includes serifs but expresses a design freedom that doesn’t generally fit within the other serif design classifications. KCTFontFreeformSerifsClass CTFontStylisticClass = 1879048192 // KCTFontModernSerifsClass: The font’s style is based on the Latin printing style of the 20th century. KCTFontModernSerifsClass CTFontStylisticClass = 805306368 // KCTFontOldStyleSerifsClass: The font’s style is based on the Latin printing style of the 15th to 17th century. KCTFontOldStyleSerifsClass CTFontStylisticClass = 268435456 // KCTFontOrnamentalsClass: The font’s style includes highly decorated or stylized character shapes such as those typically used in headlines. KCTFontOrnamentalsClass CTFontStylisticClass = 2415919104 // KCTFontSansSerifClass: The font’s style includes most basic letter forms (excluding Scripts and Ornamentals) that do not have serifs on the strokes. KCTFontSansSerifClass CTFontStylisticClass = 2147483648 // KCTFontScriptsClass: The font’s style is among those typefaces designed to simulate handwriting. KCTFontScriptsClass CTFontStylisticClass = 2684354560 // KCTFontSlabSerifsClass: The font’s style is characterized by serifs with a square transition between the strokes and the serifs (no brackets). KCTFontSlabSerifsClass CTFontStylisticClass = 1342177280 // KCTFontSymbolicClass: The font’s style is generally design independent. KCTFontSymbolicClass CTFontStylisticClass = 3221225472 // KCTFontTransitionalSerifsClass: The font’s style is based on the Latin printing style of the 18th to 19th century. KCTFontTransitionalSerifsClass CTFontStylisticClass = 536870912 // KCTFontUnknownClass: The font has no design classification. KCTFontUnknownClass CTFontStylisticClass = 0 )
func (CTFontStylisticClass) String ¶
func (e CTFontStylisticClass) String() string
type CTFontSymbolicTraits ¶
type CTFontSymbolicTraits uint32
See: https://developer.apple.com/documentation/CoreText/CTFontSymbolicTraits
const ( // KCTFontBoldTrait: The font typestyle is boldface. KCTFontBoldTrait CTFontSymbolicTraits = 2 // KCTFontClassMaskTrait: Mask for the font class. KCTFontClassMaskTrait CTFontSymbolicTraits = 4026531840 // KCTFontColorGlyphsTrait: The font contains color glyphs. KCTFontColorGlyphsTrait CTFontSymbolicTraits = 8192 // KCTFontCompositeTrait: The font is in Composite Font Reference format. KCTFontCompositeTrait CTFontSymbolicTraits = 16384 // KCTFontCondensedTrait: The font typestyle is condensed. KCTFontCondensedTrait CTFontSymbolicTraits = 64 // KCTFontExpandedTrait: The font typestyle is expanded. KCTFontExpandedTrait CTFontSymbolicTraits = 32 // KCTFontItalicTrait: The font typestyle is italic. KCTFontItalicTrait CTFontSymbolicTraits = 1 // KCTFontMonoSpaceTrait: The font uses fixed-pitch glyphs if available. KCTFontMonoSpaceTrait CTFontSymbolicTraits = 1024 // KCTFontTraitBold: The font typestyle is boldface. KCTFontTraitBold CTFontSymbolicTraits = 2 // KCTFontTraitClassMask: Mask for the font class. KCTFontTraitClassMask CTFontSymbolicTraits = 4026531840 // KCTFontTraitColorGlyphs: The font contains color glyphs. KCTFontTraitColorGlyphs CTFontSymbolicTraits = 8192 // KCTFontTraitComposite: The font is in Composite Font Reference format. KCTFontTraitComposite CTFontSymbolicTraits = 16384 // KCTFontTraitCondensed: The font typestyle is condensed. KCTFontTraitCondensed CTFontSymbolicTraits = 64 // KCTFontTraitExpanded: The font typestyle is expanded. KCTFontTraitExpanded CTFontSymbolicTraits = 32 // KCTFontTraitItalic: The font typestyle is italic. KCTFontTraitItalic CTFontSymbolicTraits = 1 // KCTFontTraitMonoSpace: The font uses fixed-pitch glyphs if available. KCTFontTraitMonoSpace CTFontSymbolicTraits = 1024 // KCTFontTraitUIOptimized: The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary. KCTFontTraitUIOptimized CTFontSymbolicTraits = 4096 // KCTFontTraitVertical: The font uses vertical glyph variants and metrics. KCTFontTraitVertical CTFontSymbolicTraits = 2048 // KCTFontUIOptimizedTrait: The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary. KCTFontUIOptimizedTrait CTFontSymbolicTraits = 4096 // KCTFontVerticalTrait: The font uses vertical glyph variants and metrics. KCTFontVerticalTrait CTFontSymbolicTraits = 2048 )
func CTFontGetSymbolicTraits ¶
func CTFontGetSymbolicTraits(font CTFontRef) CTFontSymbolicTraits
CTFontGetSymbolicTraits returns the symbolic traits of the given font.
It panics if CTFontGetSymbolicTraits is unavailable at run time; use TryCTFontGetSymbolicTraits to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetSymbolicTraits(_:)
func TryCTFontGetSymbolicTraits ¶
func TryCTFontGetSymbolicTraits(font CTFontRef) (CTFontSymbolicTraits, error)
TryCTFontGetSymbolicTraits is like CTFontGetSymbolicTraits but returns an error instead of panicking if CTFontGetSymbolicTraits is unavailable at run time.
func (CTFontSymbolicTraits) String ¶
func (e CTFontSymbolicTraits) String() string
type CTFontTableOptions ¶
type CTFontTableOptions uint32
See: https://developer.apple.com/documentation/CoreText/CTFontTableOptions
const ( // KCTFontTableOptionNoOptions: No font table options are specified. KCTFontTableOptionNoOptions CTFontTableOptions = 0 // Deprecated. KCTFontTableOptionExcludeSynthetic CTFontTableOptions = 1 )
func (CTFontTableOptions) String ¶
func (e CTFontTableOptions) String() string
type CTFontTableTag ¶
type CTFontTableTag = uint32
CTFontTableTag is font table tags provide access to font table data.
See: https://developer.apple.com/documentation/CoreText/CTFontTableTag
type CTFontUIFontType ¶
type CTFontUIFontType uint32
See: https://developer.apple.com/documentation/CoreText/CTFontUIFontType
const ( // KCTFontUIFontAlertHeader: The font for alert headers. KCTFontUIFontAlertHeader CTFontUIFontType = 18 // KCTFontUIFontApplication: The default font for text documents. KCTFontUIFontApplication CTFontUIFontType = 9 // KCTFontUIFontControlContent: The font for contents of user-interface controls. KCTFontUIFontControlContent CTFontUIFontType = 26 // KCTFontUIFontEmphasizedSystem: The system font for emphasis in alerts. KCTFontUIFontEmphasizedSystem CTFontUIFontType = 3 // KCTFontUIFontEmphasizedSystemDetail: The system font for emphasis in details. KCTFontUIFontEmphasizedSystemDetail CTFontUIFontType = 20 // KCTFontUIFontLabel: The font for labels and tick marks on full-size sliders. KCTFontUIFontLabel CTFontUIFontType = 10 // KCTFontUIFontMenuItem: The font for menu items. KCTFontUIFontMenuItem CTFontUIFontType = 12 // KCTFontUIFontMenuItemCmdKey: The font for menu-item command-key equivalents. KCTFontUIFontMenuItemCmdKey CTFontUIFontType = 14 // KCTFontUIFontMenuItemMark: The font to draw menu-item marks. KCTFontUIFontMenuItemMark CTFontUIFontType = 13 // KCTFontUIFontMenuTitle: The font for menu titles. KCTFontUIFontMenuTitle CTFontUIFontType = 11 // KCTFontUIFontMessage: The font for standard interface items, such as button labels and menu items. KCTFontUIFontMessage CTFontUIFontType = 23 // KCTFontUIFontMiniEmphasizedSystem: The miniature system font for emphasis. KCTFontUIFontMiniEmphasizedSystem CTFontUIFontType = 7 // KCTFontUIFontMiniSystem: The standard miniature system font for mini controls and utility window labels and text. KCTFontUIFontMiniSystem CTFontUIFontType = 6 // KCTFontUIFontNone: The user-interface font type isn’t specified. KCTFontUIFontNone CTFontUIFontType = 4294967295 // KCTFontUIFontPalette: The font in tool palettes. KCTFontUIFontPalette CTFontUIFontType = 24 // KCTFontUIFontPushButton: The font for a push button, a rounded rectangular button with a text label on it. KCTFontUIFontPushButton CTFontUIFontType = 16 // KCTFontUIFontSmallEmphasizedSystem: The small system font for emphasis. KCTFontUIFontSmallEmphasizedSystem CTFontUIFontType = 5 // KCTFontUIFontSmallSystem: The standard small system font for informative text in alerts, column headings in lists, help tags, and small controls. KCTFontUIFontSmallSystem CTFontUIFontType = 4 // KCTFontUIFontSmallToolbar: The small font for labels of toolbar items. KCTFontUIFontSmallToolbar CTFontUIFontType = 22 // KCTFontUIFontSystem: The system font for standard user-interface items, such as button labels and menu items. KCTFontUIFontSystem CTFontUIFontType = 2 // KCTFontUIFontSystemDetail: The standard system font for details. KCTFontUIFontSystemDetail CTFontUIFontType = 19 // KCTFontUIFontToolTip: The font for tool tips. KCTFontUIFontToolTip CTFontUIFontType = 25 // KCTFontUIFontToolbar: The font used for labels of toolbar items. KCTFontUIFontToolbar CTFontUIFontType = 21 // KCTFontUIFontUser: The default font for documents and other text whose font the user can typically change. KCTFontUIFontUser CTFontUIFontType = 0 // KCTFontUIFontUserFixedPitch: The default font for documents and other text under the user’s control when that font is fixed-pitch. KCTFontUIFontUserFixedPitch CTFontUIFontType = 1 // KCTFontUIFontUtilityWindowTitle: The font for utility window titles. KCTFontUIFontUtilityWindowTitle CTFontUIFontType = 17 // KCTFontUIFontViews: The default view font for text in lists and tables. KCTFontUIFontViews CTFontUIFontType = 8 // KCTFontUIFontWindowTitle: The font for window titles. KCTFontUIFontWindowTitle CTFontUIFontType = 15 )
func CTFontGetUIFontType ¶
func CTFontGetUIFontType(font CTFontRef) CTFontUIFontType
CTFontGetUIFontType.
It panics if CTFontGetUIFontType is unavailable at run time; use TryCTFontGetUIFontType to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontGetUIFontType(_:)
func TryCTFontGetUIFontType ¶
func TryCTFontGetUIFontType(font CTFontRef) (CTFontUIFontType, error)
TryCTFontGetUIFontType is like CTFontGetUIFontType but returns an error instead of panicking if CTFontGetUIFontType is unavailable at run time.
func (CTFontUIFontType) String ¶
func (e CTFontUIFontType) String() string
type CTFramePathFillRule ¶
type CTFramePathFillRule uint32
See: https://developer.apple.com/documentation/CoreText/CTFramePathFillRule
const ( // KCTFramePathFillEvenOdd: Paints the area using the even-odd fill rule. KCTFramePathFillEvenOdd CTFramePathFillRule = 0 // KCTFramePathFillWindingNumber: Paints the area using the nonzero winding number rule. KCTFramePathFillWindingNumber CTFramePathFillRule = 1 )
func (CTFramePathFillRule) String ¶
func (e CTFramePathFillRule) String() string
type CTFrameProgression ¶
type CTFrameProgression uint32
See: https://developer.apple.com/documentation/CoreText/CTFrameProgression
const ( // KCTFrameProgressionLeftToRight: Lines stack left to right for vertical text. KCTFrameProgressionLeftToRight CTFrameProgression = 2 // KCTFrameProgressionRightToLeft: Lines stack right to left for vertical text. KCTFrameProgressionRightToLeft CTFrameProgression = 1 // KCTFrameProgressionTopToBottom: Lines stack top to bottom for horizontal text. KCTFrameProgressionTopToBottom CTFrameProgression = 0 )
func (CTFrameProgression) String ¶
func (e CTFrameProgression) String() string
type CTFrameRef ¶
type CTFrameRef uintptr
CTFrameRef is a frame.
See: https://developer.apple.com/documentation/CoreText/CTFrame
func CTFramesetterCreateFrame ¶
func CTFramesetterCreateFrame(framesetter CTFramesetterRef, stringRange corefoundation.CFRange, path coregraphics.CGPathRef, frameAttributes corefoundation.CFDictionaryRef) CTFrameRef
CTFramesetterCreateFrame creates an immutable frame using a framesetter.
It panics if CTFramesetterCreateFrame is unavailable at run time; use TryCTFramesetterCreateFrame to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFramesetterCreateFrame(_:_:_:_:)
func TryCTFramesetterCreateFrame ¶
func TryCTFramesetterCreateFrame(framesetter CTFramesetterRef, stringRange corefoundation.CFRange, path coregraphics.CGPathRef, frameAttributes corefoundation.CFDictionaryRef) (CTFrameRef, error)
TryCTFramesetterCreateFrame is like CTFramesetterCreateFrame but returns an error instead of panicking if CTFramesetterCreateFrame is unavailable at run time.
type CTFramesetterRef ¶
type CTFramesetterRef uintptr
CTFramesetterRef is generate text frames.
See: https://developer.apple.com/documentation/CoreText/CTFramesetter
func CTFramesetterCreateWithAttributedString ¶
func CTFramesetterCreateWithAttributedString(attrString corefoundation.CFAttributedStringRef) CTFramesetterRef
CTFramesetterCreateWithAttributedString creates an immutable framesetter object from an attributed string.
It panics if CTFramesetterCreateWithAttributedString is unavailable at run time; use TryCTFramesetterCreateWithAttributedString to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFramesetterCreateWithAttributedString(_:)
func CTFramesetterCreateWithTypesetter ¶
func CTFramesetterCreateWithTypesetter(typesetter CTTypesetterRef) CTFramesetterRef
CTFramesetterCreateWithTypesetter creates a framesetter directly from a typesetter.
It panics if CTFramesetterCreateWithTypesetter is unavailable at run time; use TryCTFramesetterCreateWithTypesetter to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFramesetterCreateWithTypesetter(_:)
func TryCTFramesetterCreateWithAttributedString ¶
func TryCTFramesetterCreateWithAttributedString(attrString corefoundation.CFAttributedStringRef) (CTFramesetterRef, error)
TryCTFramesetterCreateWithAttributedString is like CTFramesetterCreateWithAttributedString but returns an error instead of panicking if CTFramesetterCreateWithAttributedString is unavailable at run time.
func TryCTFramesetterCreateWithTypesetter ¶
func TryCTFramesetterCreateWithTypesetter(typesetter CTTypesetterRef) (CTFramesetterRef, error)
TryCTFramesetterCreateWithTypesetter is like CTFramesetterCreateWithTypesetter but returns an error instead of panicking if CTFramesetterCreateWithTypesetter is unavailable at run time.
type CTGlyphInfoRef ¶
type CTGlyphInfoRef uintptr
CTGlyphInfoRef is override a font’s specified mapping from Unicode to the glyph ID.
See: https://developer.apple.com/documentation/CoreText/CTGlyphInfo
func CTGlyphInfoCreateWithCharacterIdentifier ¶
func CTGlyphInfoCreateWithCharacterIdentifier(cid uint16, collection CTCharacterCollection, baseString corefoundation.CFStringRef) CTGlyphInfoRef
CTGlyphInfoCreateWithCharacterIdentifier creates an immutable glyph info object with a character identifier.
It panics if CTGlyphInfoCreateWithCharacterIdentifier is unavailable at run time; use TryCTGlyphInfoCreateWithCharacterIdentifier to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTGlyphInfoCreateWithCharacterIdentifier(_:_:_:)
func CTGlyphInfoCreateWithGlyph ¶
func CTGlyphInfoCreateWithGlyph(glyph uint16, font CTFontRef, baseString corefoundation.CFStringRef) CTGlyphInfoRef
CTGlyphInfoCreateWithGlyph creates an immutable glyph info object with a glyph index.
It panics if CTGlyphInfoCreateWithGlyph is unavailable at run time; use TryCTGlyphInfoCreateWithGlyph to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTGlyphInfoCreateWithGlyph(_:_:_:)
func CTGlyphInfoCreateWithGlyphName ¶
func CTGlyphInfoCreateWithGlyphName(glyphName corefoundation.CFStringRef, font CTFontRef, baseString corefoundation.CFStringRef) CTGlyphInfoRef
CTGlyphInfoCreateWithGlyphName creates an immutable glyph info object with a glyph name.
It panics if CTGlyphInfoCreateWithGlyphName is unavailable at run time; use TryCTGlyphInfoCreateWithGlyphName to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTGlyphInfoCreateWithGlyphName(_:_:_:)
func TryCTGlyphInfoCreateWithCharacterIdentifier ¶
func TryCTGlyphInfoCreateWithCharacterIdentifier(cid uint16, collection CTCharacterCollection, baseString corefoundation.CFStringRef) (CTGlyphInfoRef, error)
TryCTGlyphInfoCreateWithCharacterIdentifier is like CTGlyphInfoCreateWithCharacterIdentifier but returns an error instead of panicking if CTGlyphInfoCreateWithCharacterIdentifier is unavailable at run time.
func TryCTGlyphInfoCreateWithGlyph ¶
func TryCTGlyphInfoCreateWithGlyph(glyph uint16, font CTFontRef, baseString corefoundation.CFStringRef) (CTGlyphInfoRef, error)
TryCTGlyphInfoCreateWithGlyph is like CTGlyphInfoCreateWithGlyph but returns an error instead of panicking if CTGlyphInfoCreateWithGlyph is unavailable at run time.
func TryCTGlyphInfoCreateWithGlyphName ¶
func TryCTGlyphInfoCreateWithGlyphName(glyphName corefoundation.CFStringRef, font CTFontRef, baseString corefoundation.CFStringRef) (CTGlyphInfoRef, error)
TryCTGlyphInfoCreateWithGlyphName is like CTGlyphInfoCreateWithGlyphName but returns an error instead of panicking if CTGlyphInfoCreateWithGlyphName is unavailable at run time.
type CTLineBoundsOptions ¶
type CTLineBoundsOptions uint
See: https://developer.apple.com/documentation/CoreText/CTLineBoundsOptions
const ( // KCTLineBoundsExcludeTypographicLeading: An option to exclude typographic leading. KCTLineBoundsExcludeTypographicLeading CTLineBoundsOptions = 1 // KCTLineBoundsExcludeTypographicShifts: An option to ignore cross-stream shifts due to positioning, such as kerning or baseline alignment. KCTLineBoundsExcludeTypographicShifts CTLineBoundsOptions = 2 // KCTLineBoundsIncludeLanguageExtents: An option to include additional space based on common glyph sequences for various languages. KCTLineBoundsIncludeLanguageExtents CTLineBoundsOptions = 32 // KCTLineBoundsUseGlyphPathBounds: An option to use glyph path bounds rather than the default typographic bounds. KCTLineBoundsUseGlyphPathBounds CTLineBoundsOptions = 8 // KCTLineBoundsUseHangingPunctuation: An option to enable hanging punctuation. KCTLineBoundsUseHangingPunctuation CTLineBoundsOptions = 4 // KCTLineBoundsUseOpticalBounds: An option to use optical bounds. KCTLineBoundsUseOpticalBounds CTLineBoundsOptions = 16 )
func (CTLineBoundsOptions) String ¶
func (e CTLineBoundsOptions) String() string
type CTLineBreakMode ¶
type CTLineBreakMode uint8
See: https://developer.apple.com/documentation/CoreText/CTLineBreakMode
type CTLineRef ¶
type CTLineRef uintptr
CTLineRef is a line of text.
See: https://developer.apple.com/documentation/CoreText/CTLine
func CTLineCreateJustifiedLine ¶
func CTLineCreateJustifiedLine(line CTLineRef, justificationFactor float64, justificationWidth float64) CTLineRef
CTLineCreateJustifiedLine creates a justified line from an existing line.
It panics if CTLineCreateJustifiedLine is unavailable at run time; use TryCTLineCreateJustifiedLine to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineCreateJustifiedLine(_:_:_:)
func CTLineCreateTruncatedLine ¶
func CTLineCreateTruncatedLine(line CTLineRef, width float64, truncationType CTLineTruncationType, truncationToken CTLineRef) CTLineRef
CTLineCreateTruncatedLine creates a truncated line from an existing line.
It panics if CTLineCreateTruncatedLine is unavailable at run time; use TryCTLineCreateTruncatedLine to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineCreateTruncatedLine(_:_:_:_:)
func CTLineCreateWithAttributedString ¶
func CTLineCreateWithAttributedString(attrString corefoundation.CFAttributedStringRef) CTLineRef
CTLineCreateWithAttributedString creates a single immutable line object from an attributed string.
It panics if CTLineCreateWithAttributedString is unavailable at run time; use TryCTLineCreateWithAttributedString to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTLineCreateWithAttributedString(_:)
func CTTypesetterCreateLine ¶
func CTTypesetterCreateLine(typesetter CTTypesetterRef, stringRange corefoundation.CFRange) CTLineRef
CTTypesetterCreateLine creates an immutable line from the typesetter.
It panics if CTTypesetterCreateLine is unavailable at run time; use TryCTTypesetterCreateLine to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTypesetterCreateLine(_:_:)
func CTTypesetterCreateLineWithOffset ¶
func CTTypesetterCreateLineWithOffset(typesetter CTTypesetterRef, stringRange corefoundation.CFRange, offset float64) CTLineRef
CTTypesetterCreateLineWithOffset creates an immutable line from the typesetter at a specified line offset.
It panics if CTTypesetterCreateLineWithOffset is unavailable at run time; use TryCTTypesetterCreateLineWithOffset to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTypesetterCreateLineWithOffset(_:_:_:)
func TryCTLineCreateJustifiedLine ¶
func TryCTLineCreateJustifiedLine(line CTLineRef, justificationFactor float64, justificationWidth float64) (CTLineRef, error)
TryCTLineCreateJustifiedLine is like CTLineCreateJustifiedLine but returns an error instead of panicking if CTLineCreateJustifiedLine is unavailable at run time.
func TryCTLineCreateTruncatedLine ¶
func TryCTLineCreateTruncatedLine(line CTLineRef, width float64, truncationType CTLineTruncationType, truncationToken CTLineRef) (CTLineRef, error)
TryCTLineCreateTruncatedLine is like CTLineCreateTruncatedLine but returns an error instead of panicking if CTLineCreateTruncatedLine is unavailable at run time.
func TryCTLineCreateWithAttributedString ¶
func TryCTLineCreateWithAttributedString(attrString corefoundation.CFAttributedStringRef) (CTLineRef, error)
TryCTLineCreateWithAttributedString is like CTLineCreateWithAttributedString but returns an error instead of panicking if CTLineCreateWithAttributedString is unavailable at run time.
func TryCTTypesetterCreateLine ¶
func TryCTTypesetterCreateLine(typesetter CTTypesetterRef, stringRange corefoundation.CFRange) (CTLineRef, error)
TryCTTypesetterCreateLine is like CTTypesetterCreateLine but returns an error instead of panicking if CTTypesetterCreateLine is unavailable at run time.
func TryCTTypesetterCreateLineWithOffset ¶
func TryCTTypesetterCreateLineWithOffset(typesetter CTTypesetterRef, stringRange corefoundation.CFRange, offset float64) (CTLineRef, error)
TryCTTypesetterCreateLineWithOffset is like CTTypesetterCreateLineWithOffset but returns an error instead of panicking if CTTypesetterCreateLineWithOffset is unavailable at run time.
type CTLineTruncationType ¶
type CTLineTruncationType uint32
See: https://developer.apple.com/documentation/CoreText/CTLineTruncationType
type CTMutableFontCollectionRef ¶
type CTMutableFontCollectionRef uintptr
CTMutableFontCollectionRef is a reference to a mutable font collection.
See: https://developer.apple.com/documentation/CoreText/CTMutableFontCollection
func CTFontCollectionCreateMutableCopy ¶
func CTFontCollectionCreateMutableCopy(original CTFontCollectionRef) CTMutableFontCollectionRef
CTFontCollectionCreateMutableCopy creates a mutable copy of the original collection.
It panics if CTFontCollectionCreateMutableCopy is unavailable at run time; use TryCTFontCollectionCreateMutableCopy to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFontCollectionCreateMutableCopy(_:)
func TryCTFontCollectionCreateMutableCopy ¶
func TryCTFontCollectionCreateMutableCopy(original CTFontCollectionRef) (CTMutableFontCollectionRef, error)
TryCTFontCollectionCreateMutableCopy is like CTFontCollectionCreateMutableCopy but returns an error instead of panicking if CTFontCollectionCreateMutableCopy is unavailable at run time.
type CTParagraphStyleRef ¶
type CTParagraphStyleRef uintptr
CTParagraphStyleRef is paragraph or ruler attributes in an attributed string.
See: https://developer.apple.com/documentation/CoreText/CTParagraphStyle
func CTParagraphStyleCreate ¶
func CTParagraphStyleCreate(settings *CTParagraphStyleSetting, settingCount uintptr) CTParagraphStyleRef
CTParagraphStyleCreate creates an immutable paragraph style.
It panics if CTParagraphStyleCreate is unavailable at run time; use TryCTParagraphStyleCreate to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTParagraphStyleCreate(_:_:)
func CTParagraphStyleCreateCopy ¶
func CTParagraphStyleCreateCopy(paragraphStyle CTParagraphStyleRef) CTParagraphStyleRef
CTParagraphStyleCreateCopy creates an immutable copy of a paragraph style.
It panics if CTParagraphStyleCreateCopy is unavailable at run time; use TryCTParagraphStyleCreateCopy to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTParagraphStyleCreateCopy(_:)
func TryCTParagraphStyleCreate ¶
func TryCTParagraphStyleCreate(settings *CTParagraphStyleSetting, settingCount uintptr) (CTParagraphStyleRef, error)
TryCTParagraphStyleCreate is like CTParagraphStyleCreate but returns an error instead of panicking if CTParagraphStyleCreate is unavailable at run time.
func TryCTParagraphStyleCreateCopy ¶
func TryCTParagraphStyleCreateCopy(paragraphStyle CTParagraphStyleRef) (CTParagraphStyleRef, error)
TryCTParagraphStyleCreateCopy is like CTParagraphStyleCreateCopy but returns an error instead of panicking if CTParagraphStyleCreateCopy is unavailable at run time.
type CTParagraphStyleSetting ¶
type CTParagraphStyleSetting struct {
Spec CTParagraphStyleSpecifier // The specifier of the setting. See [CTParagraphStyleSpecifier](<https://developer.apple.com/documentation/CoreText/CTParagraphStyleSpecifier>) for possible values.
ValueSize uintptr // The size of the value pointed to by the `value` field. This value must match the size of the value required by the [CTParagraphStyleSpecifier] set in the `spec` field.
Value unsafe.Pointer // A reference to the value of the setting specified by the `spec` field. The value must be in the proper range for the `spec` value and at least as large as the size specified in `valueSize`.
}
CTParagraphStyleSetting - This structure is used to alter the paragraph style.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/CTParagraphStyleSetting
type CTParagraphStyleSpecifier ¶
type CTParagraphStyleSpecifier uint32
See: https://developer.apple.com/documentation/CoreText/CTParagraphStyleSpecifier
const ( // KCTParagraphStyleSpecifierAlignment: The text alignment. KCTParagraphStyleSpecifierAlignment CTParagraphStyleSpecifier = 0 // KCTParagraphStyleSpecifierBaseWritingDirection: The base writing direction of the lines. KCTParagraphStyleSpecifierBaseWritingDirection CTParagraphStyleSpecifier = 13 // KCTParagraphStyleSpecifierCount: The number of style specifiers. KCTParagraphStyleSpecifierCount CTParagraphStyleSpecifier = 18 // KCTParagraphStyleSpecifierDefaultTabInterval: The document-wide default tab interval. KCTParagraphStyleSpecifierDefaultTabInterval CTParagraphStyleSpecifier = 5 // KCTParagraphStyleSpecifierFirstLineHeadIndent: The distance, in points, from the leading margin of a frame to the beginning of the paragraph’s first line. KCTParagraphStyleSpecifierFirstLineHeadIndent CTParagraphStyleSpecifier = 1 // KCTParagraphStyleSpecifierHeadIndent: The distance, in points, from the leading margin of a text container to the beginning of lines other than the first. KCTParagraphStyleSpecifierHeadIndent CTParagraphStyleSpecifier = 2 // KCTParagraphStyleSpecifierLineBoundsOptions: Options that control the alignment of the line edges with the leading and trailing margins. KCTParagraphStyleSpecifierLineBoundsOptions CTParagraphStyleSpecifier = 17 // KCTParagraphStyleSpecifierLineBreakMode: The mode that should be used to break lines when laying out the paragraph’s text. KCTParagraphStyleSpecifierLineBreakMode CTParagraphStyleSpecifier = 6 // KCTParagraphStyleSpecifierLineHeightMultiple: The line height multiple. KCTParagraphStyleSpecifierLineHeightMultiple CTParagraphStyleSpecifier = 7 // KCTParagraphStyleSpecifierLineSpacing: The space in points added between lines within the paragraph (commonly known as leading). KCTParagraphStyleSpecifierLineSpacing CTParagraphStyleSpecifier = 10 // KCTParagraphStyleSpecifierLineSpacingAdjustment: The space in points added between lines within the paragraph (commonly known as leading). KCTParagraphStyleSpecifierLineSpacingAdjustment CTParagraphStyleSpecifier = 16 // KCTParagraphStyleSpecifierMaximumLineHeight: The maximum height that any line in the frame will occupy, regardless of the font size or size of any attached graphic. KCTParagraphStyleSpecifierMaximumLineHeight CTParagraphStyleSpecifier = 8 // KCTParagraphStyleSpecifierMaximumLineSpacing: The maximum space in points between lines within the paragraph (commonly known as leading). KCTParagraphStyleSpecifierMaximumLineSpacing CTParagraphStyleSpecifier = 14 // KCTParagraphStyleSpecifierMinimumLineHeight: The minimum height that any line in the frame will occupy, regardless of the font size or size of any attached graphic. KCTParagraphStyleSpecifierMinimumLineHeight CTParagraphStyleSpecifier = 9 // KCTParagraphStyleSpecifierMinimumLineSpacing: The minimum space in points between lines within the paragraph (commonly known as leading). KCTParagraphStyleSpecifierMinimumLineSpacing CTParagraphStyleSpecifier = 15 // KCTParagraphStyleSpecifierParagraphSpacing: The space added at the end of the paragraph to separate it from the following paragraph. KCTParagraphStyleSpecifierParagraphSpacing CTParagraphStyleSpecifier = 11 // KCTParagraphStyleSpecifierParagraphSpacingBefore: The distance between the paragraph’s top and the beginning of its text content. KCTParagraphStyleSpecifierParagraphSpacingBefore CTParagraphStyleSpecifier = 12 // KCTParagraphStyleSpecifierTabStops: The text tab objects, sorted by location, that define the tab stops for the paragraph style. KCTParagraphStyleSpecifierTabStops CTParagraphStyleSpecifier = 4 // KCTParagraphStyleSpecifierTailIndent: The distance, in points, from the margin of a frame to the end of lines. KCTParagraphStyleSpecifierTailIndent CTParagraphStyleSpecifier = 3 )
func (CTParagraphStyleSpecifier) String ¶
func (e CTParagraphStyleSpecifier) String() string
type CTRubyAlignment ¶
type CTRubyAlignment uint8
See: https://developer.apple.com/documentation/CoreText/CTRubyAlignment
const ( // KCTRubyAlignmentAuto: Core Text automatically determines the alignment. KCTRubyAlignmentAuto CTRubyAlignment = 0 // KCTRubyAlignmentCenter: Centers the ruby text within the width of the base text. KCTRubyAlignmentCenter CTRubyAlignment = 2 // KCTRubyAlignmentDistributeLetter: Distributes the ruby text evenly over the width of the base text, aligning the first and last characters of the ruby text with the first and last characters of the base text. KCTRubyAlignmentDistributeLetter CTRubyAlignment = 4 // KCTRubyAlignmentDistributeSpace: Distributes the ruby text evenly over the width of the base text, adding space before the first and after the last character. KCTRubyAlignmentDistributeSpace CTRubyAlignment = 5 // KCTRubyAlignmentEnd: Aligns the ruby text with the ending edge of the base text. KCTRubyAlignmentEnd CTRubyAlignment = 3 // KCTRubyAlignmentInvalid: The alignment is invalid. KCTRubyAlignmentInvalid CTRubyAlignment = 255 // KCTRubyAlignmentLineEdge: Aligns the ruby text to an adjacent line edge. KCTRubyAlignmentLineEdge CTRubyAlignment = 6 // KCTRubyAlignmentStart: Aligns the ruby text with the starting edge of the base text. KCTRubyAlignmentStart CTRubyAlignment = 1 )
func CTRubyAnnotationGetAlignment ¶
func CTRubyAnnotationGetAlignment(rubyAnnotation CTRubyAnnotationRef) CTRubyAlignment
CTRubyAnnotationGetAlignment retrieves the alignment value of a ruby annotation object.
It panics if CTRubyAnnotationGetAlignment is unavailable at run time; use TryCTRubyAnnotationGetAlignment to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRubyAnnotationGetAlignment(_:)
func TryCTRubyAnnotationGetAlignment ¶
func TryCTRubyAnnotationGetAlignment(rubyAnnotation CTRubyAnnotationRef) (CTRubyAlignment, error)
TryCTRubyAnnotationGetAlignment is like CTRubyAnnotationGetAlignment but returns an error instead of panicking if CTRubyAnnotationGetAlignment is unavailable at run time.
func (CTRubyAlignment) String ¶
func (e CTRubyAlignment) String() string
type CTRubyAnnotationRef ¶
type CTRubyAnnotationRef uintptr
See: https://developer.apple.com/documentation/CoreText/CTRubyAnnotation
func CTRubyAnnotationCreate ¶
func CTRubyAnnotationCreate(alignment CTRubyAlignment, overhang CTRubyOverhang, sizeFactor float64, text corefoundation.CFStringRef) CTRubyAnnotationRef
CTRubyAnnotationCreate creates an immutable ruby annotation object.
It panics if CTRubyAnnotationCreate is unavailable at run time; use TryCTRubyAnnotationCreate to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRubyAnnotationCreate(_:_:_:_:)
func CTRubyAnnotationCreateCopy ¶
func CTRubyAnnotationCreateCopy(rubyAnnotation CTRubyAnnotationRef) CTRubyAnnotationRef
CTRubyAnnotationCreateCopy creates an immutable copy of a ruby annotation object.
It panics if CTRubyAnnotationCreateCopy is unavailable at run time; use TryCTRubyAnnotationCreateCopy to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRubyAnnotationCreateCopy(_:)
func CTRubyAnnotationCreateWithAttributes ¶
func CTRubyAnnotationCreateWithAttributes(alignment CTRubyAlignment, overhang CTRubyOverhang, position CTRubyPosition, string_ corefoundation.CFStringRef, attributes corefoundation.CFDictionaryRef) CTRubyAnnotationRef
CTRubyAnnotationCreateWithAttributes creates an immutable ruby annotation object with the specified attributes.
It panics if CTRubyAnnotationCreateWithAttributes is unavailable at run time; use TryCTRubyAnnotationCreateWithAttributes to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRubyAnnotationCreateWithAttributes(_:_:_:_:_:)
func TryCTRubyAnnotationCreate ¶
func TryCTRubyAnnotationCreate(alignment CTRubyAlignment, overhang CTRubyOverhang, sizeFactor float64, text corefoundation.CFStringRef) (CTRubyAnnotationRef, error)
TryCTRubyAnnotationCreate is like CTRubyAnnotationCreate but returns an error instead of panicking if CTRubyAnnotationCreate is unavailable at run time.
func TryCTRubyAnnotationCreateCopy ¶
func TryCTRubyAnnotationCreateCopy(rubyAnnotation CTRubyAnnotationRef) (CTRubyAnnotationRef, error)
TryCTRubyAnnotationCreateCopy is like CTRubyAnnotationCreateCopy but returns an error instead of panicking if CTRubyAnnotationCreateCopy is unavailable at run time.
func TryCTRubyAnnotationCreateWithAttributes ¶
func TryCTRubyAnnotationCreateWithAttributes(alignment CTRubyAlignment, overhang CTRubyOverhang, position CTRubyPosition, string_ corefoundation.CFStringRef, attributes corefoundation.CFDictionaryRef) (CTRubyAnnotationRef, error)
TryCTRubyAnnotationCreateWithAttributes is like CTRubyAnnotationCreateWithAttributes but returns an error instead of panicking if CTRubyAnnotationCreateWithAttributes is unavailable at run time.
type CTRubyOverhang ¶
type CTRubyOverhang uint8
See: https://developer.apple.com/documentation/CoreText/CTRubyOverhang
const ( // KCTRubyOverhangAuto: The ruby text can overhang adjacent text on both sides. KCTRubyOverhangAuto CTRubyOverhang = 0 // KCTRubyOverhangEnd: The ruby text can overhang the text that follows it. KCTRubyOverhangEnd CTRubyOverhang = 2 // KCTRubyOverhangInvalid: The overhang specification is invalid. KCTRubyOverhangInvalid CTRubyOverhang = 255 // KCTRubyOverhangNone: The ruby text can’t overhang the preceding or following text. KCTRubyOverhangNone CTRubyOverhang = 3 // KCTRubyOverhangStart: The ruby text can overhang the text that precedes it. KCTRubyOverhangStart CTRubyOverhang = 1 )
func CTRubyAnnotationGetOverhang ¶
func CTRubyAnnotationGetOverhang(rubyAnnotation CTRubyAnnotationRef) CTRubyOverhang
CTRubyAnnotationGetOverhang retrieves the overhang value of a ruby annotation object.
It panics if CTRubyAnnotationGetOverhang is unavailable at run time; use TryCTRubyAnnotationGetOverhang to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRubyAnnotationGetOverhang(_:)
func TryCTRubyAnnotationGetOverhang ¶
func TryCTRubyAnnotationGetOverhang(rubyAnnotation CTRubyAnnotationRef) (CTRubyOverhang, error)
TryCTRubyAnnotationGetOverhang is like CTRubyAnnotationGetOverhang but returns an error instead of panicking if CTRubyAnnotationGetOverhang is unavailable at run time.
func (CTRubyOverhang) String ¶
func (e CTRubyOverhang) String() string
type CTRubyPosition ¶
type CTRubyPosition uint8
See: https://developer.apple.com/documentation/CoreText/CTRubyPosition
const ( // KCTRubyPositionAfter: The ruby text is positioned after the base text, appearing below horizontal text and to the left of vertical text. KCTRubyPositionAfter CTRubyPosition = 1 // KCTRubyPositionBefore: The ruby text is positioned before the base text, appearing above horizontal text and to the right of vertical text. KCTRubyPositionBefore CTRubyPosition = 0 // KCTRubyPositionCount: A constant that accounts for all ruby positions during ruby annotation creation. KCTRubyPositionCount CTRubyPosition = 4 // KCTRubyPositionInline: The ruby text follows the base text with no special styling. KCTRubyPositionInline CTRubyPosition = 3 // KCTRubyPositionInterCharacter: The ruby text is positioned to the right of the base text, regardless of whether it’s horizontal or vertical. KCTRubyPositionInterCharacter CTRubyPosition = 2 )
func (CTRubyPosition) String ¶
func (e CTRubyPosition) String() string
type CTRunDelegateCallbacks ¶
type CTRunDelegateCallbacks struct {
Version int // The version number of the callbacks being passed in as a parameter to [CTRunDelegateCreate(_:_:)](<https://developer.apple.com/documentation/CoreText/CTRunDelegateCreate(_:_:)>). The initial version is [kCTRunDelegateVersion1](<https://developer.apple.com/documentation/CoreText/kCTRunDelegateVersion1>).
// C: CTRunDelegateDeallocateCallback (void (*)(void *))
Dealloc uintptr // The callback invoked when the retain count of a CTRunDelegate reaches 0 and the CTRunDelegate is deallocated. This callback may be [NULL].
// C: CTRunDelegateGetAscentCallback (double (*)(void *))
GetAscent uintptr // The callback invoked to request the run delegate to determine and return the typographic ascent of glyphs in the run. This callback may be [NULL], which is equivalent to a `getAscent` callback that always returns 0.
// C: CTRunDelegateGetDescentCallback (double (*)(void *))
GetDescent uintptr // The callback invoked to request the run delegate to determine and return the typographic descent of glyphs in the run. This callback may be [NULL], which is equivalent to a `getDescent` callback that always returns 0.
// C: CTRunDelegateGetWidthCallback (double (*)(void *))
GetWidth uintptr // The callback invoked to request the run delegate to determine and return the typographic width of glyphs in the run. This callback may be [NULL], which is equivalent to a `getWidth` callback that always returns 0.
}
CTRunDelegateCallbacks - A structure holding pointers to callbacks implemented by the run delegate.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/CTRunDelegateCallbacks
type CTRunDelegateDeallocateCallback ¶
CTRunDelegateDeallocateCallback is defines a pointer to a function that is invoked when a CTRunDelegate object is deallocated.
See: https://developer.apple.com/documentation/CoreText/CTRunDelegateDeallocateCallback
type CTRunDelegateGetAscentCallback ¶
CTRunDelegateGetAscentCallback is defines a pointer to a function that determines typographic ascent of glyphs in the run.
See: https://developer.apple.com/documentation/CoreText/CTRunDelegateGetAscentCallback
type CTRunDelegateGetDescentCallback ¶
CTRunDelegateGetDescentCallback is defines a pointer to a function that determines typographic descent of glyphs in the run.
See: https://developer.apple.com/documentation/CoreText/CTRunDelegateGetDescentCallback
type CTRunDelegateGetWidthCallback ¶
CTRunDelegateGetWidthCallback is defines a pointer to a function that determines the typographic width of glyphs in the run.
See: https://developer.apple.com/documentation/CoreText/CTRunDelegateGetWidthCallback
type CTRunDelegateRef ¶
type CTRunDelegateRef uintptr
CTRunDelegateRef is a run delegate.
See: https://developer.apple.com/documentation/CoreText/CTRunDelegate
func CTRunDelegateCreate ¶
func CTRunDelegateCreate(callbacks *CTRunDelegateCallbacks, refCon uintptr) CTRunDelegateRef
CTRunDelegateCreate creates an immutable instance of a run delegate.
It panics if CTRunDelegateCreate is unavailable at run time; use TryCTRunDelegateCreate to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunDelegateCreate(_:_:)
func TryCTRunDelegateCreate ¶
func TryCTRunDelegateCreate(callbacks *CTRunDelegateCallbacks, refCon uintptr) (CTRunDelegateRef, error)
TryCTRunDelegateCreate is like CTRunDelegateCreate but returns an error instead of panicking if CTRunDelegateCreate is unavailable at run time.
type CTRunRef ¶
type CTRunRef uintptr
CTRunRef is a glyph run.
See: https://developer.apple.com/documentation/CoreText/CTRun
type CTRunStatus ¶
type CTRunStatus uint32
See: https://developer.apple.com/documentation/CoreText/CTRunStatus
const ( // KCTRunStatusHasNonIdentityMatrix: The run requires a specific text matrix to be set in the current Core Graphics context for proper drawing. KCTRunStatusHasNonIdentityMatrix CTRunStatus = 4 // KCTRunStatusNoStatus: The run has no special attributes. KCTRunStatusNoStatus CTRunStatus = 0 // KCTRunStatusNonMonotonic: The run isn’t in strictly increasing or decreasing order. KCTRunStatusNonMonotonic CTRunStatus = 2 // KCTRunStatusRightToLeft: The run proceeds from right to left. KCTRunStatusRightToLeft CTRunStatus = 1 )
func CTRunGetStatus ¶
func CTRunGetStatus(run CTRunRef) CTRunStatus
CTRunGetStatus returns the run’s status.
It panics if CTRunGetStatus is unavailable at run time; use TryCTRunGetStatus to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTRunGetStatus(_:)
func TryCTRunGetStatus ¶
func TryCTRunGetStatus(run CTRunRef) (CTRunStatus, error)
TryCTRunGetStatus is like CTRunGetStatus but returns an error instead of panicking if CTRunGetStatus is unavailable at run time.
func (CTRunStatus) String ¶
func (e CTRunStatus) String() string
type CTTextAlignment ¶
type CTTextAlignment uint8
See: https://developer.apple.com/documentation/CoreText/CTTextAlignment
const ( // KCTTextAlignmentCenter: Text is visually center-aligned. KCTTextAlignmentCenter CTTextAlignment = 2 // KCTTextAlignmentJustified: Text is fully justified. KCTTextAlignmentJustified CTTextAlignment = 3 // KCTTextAlignmentLeft: Text is visually left-aligned. KCTTextAlignmentLeft CTTextAlignment = 0 // KCTTextAlignmentNatural: Text uses the natural alignment of the text’s script. KCTTextAlignmentNatural CTTextAlignment = 4 // KCTTextAlignmentRight: Text is visually right-aligned. KCTTextAlignmentRight CTTextAlignment = 1 )
func CTTextTabGetAlignment ¶
func CTTextTabGetAlignment(tab CTTextTabRef) CTTextAlignment
CTTextTabGetAlignment returns the text alignment of the tab.
It panics if CTTextTabGetAlignment is unavailable at run time; use TryCTTextTabGetAlignment to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTextTabGetAlignment(_:)
func TryCTTextTabGetAlignment ¶
func TryCTTextTabGetAlignment(tab CTTextTabRef) (CTTextAlignment, error)
TryCTTextTabGetAlignment is like CTTextTabGetAlignment but returns an error instead of panicking if CTTextTabGetAlignment is unavailable at run time.
func (CTTextAlignment) String ¶
func (e CTTextAlignment) String() string
type CTTextTabRef ¶
type CTTextTabRef uintptr
CTTextTabRef is a tab in a paragraph style, storing an alignment type and location.
See: https://developer.apple.com/documentation/CoreText/CTTextTab
func CTTextTabCreate ¶
func CTTextTabCreate(alignment CTTextAlignment, location float64, options corefoundation.CFDictionaryRef) CTTextTabRef
CTTextTabCreate creates and initializes a new text tab object.
It panics if CTTextTabCreate is unavailable at run time; use TryCTTextTabCreate to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTextTabCreate(_:_:_:)
func TryCTTextTabCreate ¶
func TryCTTextTabCreate(alignment CTTextAlignment, location float64, options corefoundation.CFDictionaryRef) (CTTextTabRef, error)
TryCTTextTabCreate is like CTTextTabCreate but returns an error instead of panicking if CTTextTabCreate is unavailable at run time.
type CTTypesetterRef ¶
type CTTypesetterRef uintptr
CTTypesetterRef is a typesetter which performs line layout.
See: https://developer.apple.com/documentation/CoreText/CTTypesetter
func CTFramesetterGetTypesetter ¶
func CTFramesetterGetTypesetter(framesetter CTFramesetterRef) CTTypesetterRef
CTFramesetterGetTypesetter returns the typesetter object being used by the framesetter.
It panics if CTFramesetterGetTypesetter is unavailable at run time; use TryCTFramesetterGetTypesetter to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTFramesetterGetTypesetter(_:)
func CTTypesetterCreateWithAttributedString ¶
func CTTypesetterCreateWithAttributedString(string_ corefoundation.CFAttributedStringRef) CTTypesetterRef
CTTypesetterCreateWithAttributedString creates an immutable typesetter object using an attributed string.
It panics if CTTypesetterCreateWithAttributedString is unavailable at run time; use TryCTTypesetterCreateWithAttributedString to get an error instead.
See: https://developer.apple.com/documentation/CoreText/CTTypesetterCreateWithAttributedString(_:)
func CTTypesetterCreateWithAttributedStringAndOptions ¶
func CTTypesetterCreateWithAttributedStringAndOptions(string_ corefoundation.CFAttributedStringRef, options corefoundation.CFDictionaryRef) CTTypesetterRef
CTTypesetterCreateWithAttributedStringAndOptions creates an immutable typesetter object using an attributed string and a dictionary of options.
It panics if CTTypesetterCreateWithAttributedStringAndOptions is unavailable at run time; use TryCTTypesetterCreateWithAttributedStringAndOptions to get an error instead.
func TryCTFramesetterGetTypesetter ¶
func TryCTFramesetterGetTypesetter(framesetter CTFramesetterRef) (CTTypesetterRef, error)
TryCTFramesetterGetTypesetter is like CTFramesetterGetTypesetter but returns an error instead of panicking if CTFramesetterGetTypesetter is unavailable at run time.
func TryCTTypesetterCreateWithAttributedString ¶
func TryCTTypesetterCreateWithAttributedString(string_ corefoundation.CFAttributedStringRef) (CTTypesetterRef, error)
TryCTTypesetterCreateWithAttributedString is like CTTypesetterCreateWithAttributedString but returns an error instead of panicking if CTTypesetterCreateWithAttributedString is unavailable at run time.
func TryCTTypesetterCreateWithAttributedStringAndOptions ¶
func TryCTTypesetterCreateWithAttributedStringAndOptions(string_ corefoundation.CFAttributedStringRef, options corefoundation.CFDictionaryRef) (CTTypesetterRef, error)
TryCTTypesetterCreateWithAttributedStringAndOptions is like CTTypesetterCreateWithAttributedStringAndOptions but returns an error instead of panicking if CTTypesetterCreateWithAttributedStringAndOptions is unavailable at run time.
type CTUnderlineStyle ¶
type CTUnderlineStyle int32
See: https://developer.apple.com/documentation/CoreText/CTUnderlineStyle
const ( // KCTUnderlineStyleDouble: A specifier that indicates to draw an underline consisting of a double line. KCTUnderlineStyleDouble CTUnderlineStyle = 0x9 // KCTUnderlineStyleNone: A specifier that indicates not to draw an underline. KCTUnderlineStyleNone CTUnderlineStyle = 0 // KCTUnderlineStyleSingle: A specifier that indicates to draw an underline consisting of a single line. KCTUnderlineStyleSingle CTUnderlineStyle = 0x1 // KCTUnderlineStyleThick: A specifier that indicates to draw an underline consisting of a thick line. KCTUnderlineStyleThick CTUnderlineStyle = 0x2 )
func (CTUnderlineStyle) String ¶
func (e CTUnderlineStyle) String() string
type CTUnderlineStyleModifiers ¶
type CTUnderlineStyleModifiers int32
See: https://developer.apple.com/documentation/CoreText/CTUnderlineStyleModifiers
const ( // KCTUnderlinePatternDash: A modifier that indicates to draw an underline using a pattern of dashes. KCTUnderlinePatternDash CTUnderlineStyleModifiers = 0x200 // KCTUnderlinePatternDashDot: A modifier that indicates to draw an underline using a pattern of alternating dashes and dots. KCTUnderlinePatternDashDot CTUnderlineStyleModifiers = 0x300 // KCTUnderlinePatternDashDotDot: A modifier that indicates to draw an underline using a pattern of a dash followed by two dots. KCTUnderlinePatternDashDotDot CTUnderlineStyleModifiers = 0x400 // KCTUnderlinePatternDot: A modifier that indicates to draw an underline using a pattern of dots. KCTUnderlinePatternDot CTUnderlineStyleModifiers = 0x100 // KCTUnderlinePatternSolid: A modifier that indicates to draw a solid underline. KCTUnderlinePatternSolid CTUnderlineStyleModifiers = 0 )
func (CTUnderlineStyleModifiers) String ¶
func (e CTUnderlineStyleModifiers) String() string
type CTWritingDirection ¶
type CTWritingDirection int8
See: https://developer.apple.com/documentation/CoreText/CTWritingDirection
type FontLanguageCode ¶
type FontLanguageCode = uint32
See: https://developer.apple.com/documentation/CoreText/FontLanguageCode
type FontNameCode ¶
type FontNameCode = uint32
See: https://developer.apple.com/documentation/CoreText/FontNameCode
type FontPlatformCode ¶
type FontPlatformCode = uint32
See: https://developer.apple.com/documentation/CoreText/FontPlatformCode
type FontScriptCode ¶
type FontScriptCode = uint32
See: https://developer.apple.com/documentation/CoreText/FontScriptCode
type FontVariation ¶
type FontVariation struct {
// contains filtered or unexported fields
}
FontVariation
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/FontVariation
func (*FontVariation) Name ¶
func (s *FontVariation) Name() uint32
Name returns the Name field from the record's packed storage.
func (*FontVariation) SetName ¶
func (s *FontVariation) SetName(v uint32)
SetName updates the Name field in the record's packed storage.
func (*FontVariation) SetValue ¶
func (s *FontVariation) SetValue(v int32)
SetValue updates the Value field in the record's packed storage.
func (*FontVariation) Value ¶
func (s *FontVariation) Value() int32
Value returns the Value field from the record's packed storage.
type JustDirectionTable ¶
type JustDirectionTable struct {
JustClass uint16
WidthDeltaClusters uint16
Postcomp uint16
Lookup SFNTLookupTable
}
JustDirectionTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/JustDirectionTable
type JustPCAction ¶
type JustPCAction struct {
// contains filtered or unexported fields
}
JustPCAction
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/JustPCAction
func (*JustPCAction) ActionCount ¶
func (s *JustPCAction) ActionCount() uint32
ActionCount returns the ActionCount field from the record's packed storage.
func (*JustPCAction) Actions ¶
func (s *JustPCAction) Actions() [1]JustPCActionSubrecord
Actions returns the Actions field from the record's packed storage.
func (*JustPCAction) SetActionCount ¶
func (s *JustPCAction) SetActionCount(v uint32)
SetActionCount updates the ActionCount field in the record's packed storage.
func (*JustPCAction) SetActions ¶
func (s *JustPCAction) SetActions(v [1]JustPCActionSubrecord)
SetActions updates the Actions field in the record's packed storage.
type JustPCActionSubrecord ¶
type JustPCActionSubrecord struct {
// contains filtered or unexported fields
}
JustPCActionSubrecord
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/JustPCActionSubrecord
func (*JustPCActionSubrecord) Data ¶
func (s *JustPCActionSubrecord) Data() uint32
Data returns the Data field from the record's packed storage.
func (*JustPCActionSubrecord) Length ¶
func (s *JustPCActionSubrecord) Length() uint32
Length returns the Length field from the record's packed storage.
func (*JustPCActionSubrecord) SetData ¶
func (s *JustPCActionSubrecord) SetData(v uint32)
SetData updates the Data field in the record's packed storage.
func (*JustPCActionSubrecord) SetLength ¶
func (s *JustPCActionSubrecord) SetLength(v uint32)
SetLength updates the Length field in the record's packed storage.
func (*JustPCActionSubrecord) SetTheClass ¶
func (s *JustPCActionSubrecord) SetTheClass(v uint16)
SetTheClass updates the TheClass field in the record's packed storage.
func (*JustPCActionSubrecord) SetTheType ¶
func (s *JustPCActionSubrecord) SetTheType(v JustPCActionType)
SetTheType updates the TheType field in the record's packed storage.
func (*JustPCActionSubrecord) TheClass ¶
func (s *JustPCActionSubrecord) TheClass() uint16
TheClass returns the TheClass field from the record's packed storage.
func (*JustPCActionSubrecord) TheType ¶
func (s *JustPCActionSubrecord) TheType() JustPCActionType
TheType returns the TheType field from the record's packed storage.
type JustPCActionType ¶
type JustPCActionType = uint16
See: https://developer.apple.com/documentation/CoreText/JustPCActionType
type JustPCConditionalAddAction ¶
type JustPCConditionalAddAction struct {
// contains filtered or unexported fields
}
JustPCConditionalAddAction
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/JustPCConditionalAddAction
func (*JustPCConditionalAddAction) AddGlyph ¶
func (s *JustPCConditionalAddAction) AddGlyph() uint16
AddGlyph returns the AddGlyph field from the record's packed storage.
func (*JustPCConditionalAddAction) SetAddGlyph ¶
func (s *JustPCConditionalAddAction) SetAddGlyph(v uint16)
SetAddGlyph updates the AddGlyph field in the record's packed storage.
func (*JustPCConditionalAddAction) SetSubstGlyph ¶
func (s *JustPCConditionalAddAction) SetSubstGlyph(v uint16)
SetSubstGlyph updates the SubstGlyph field in the record's packed storage.
func (*JustPCConditionalAddAction) SetSubstThreshold ¶
func (s *JustPCConditionalAddAction) SetSubstThreshold(v int32)
SetSubstThreshold updates the SubstThreshold field in the record's packed storage.
func (*JustPCConditionalAddAction) SubstGlyph ¶
func (s *JustPCConditionalAddAction) SubstGlyph() uint16
SubstGlyph returns the SubstGlyph field from the record's packed storage.
func (*JustPCConditionalAddAction) SubstThreshold ¶
func (s *JustPCConditionalAddAction) SubstThreshold() int32
SubstThreshold returns the SubstThreshold field from the record's packed storage.
type JustPCDecompositionAction ¶
type JustPCDecompositionAction struct {
// contains filtered or unexported fields
}
JustPCDecompositionAction
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/JustPCDecompositionAction
func (*JustPCDecompositionAction) Count ¶
func (s *JustPCDecompositionAction) Count() uint16
Count returns the Count field from the record's packed storage.
func (*JustPCDecompositionAction) Glyphs ¶
func (s *JustPCDecompositionAction) Glyphs() [1]uint16
Glyphs returns the Glyphs field from the record's packed storage.
func (*JustPCDecompositionAction) LowerLimit ¶
func (s *JustPCDecompositionAction) LowerLimit() int32
LowerLimit returns the LowerLimit field from the record's packed storage.
func (*JustPCDecompositionAction) Order ¶
func (s *JustPCDecompositionAction) Order() uint16
Order returns the Order field from the record's packed storage.
func (*JustPCDecompositionAction) SetCount ¶
func (s *JustPCDecompositionAction) SetCount(v uint16)
SetCount updates the Count field in the record's packed storage.
func (*JustPCDecompositionAction) SetGlyphs ¶
func (s *JustPCDecompositionAction) SetGlyphs(v [1]uint16)
SetGlyphs updates the Glyphs field in the record's packed storage.
func (*JustPCDecompositionAction) SetLowerLimit ¶
func (s *JustPCDecompositionAction) SetLowerLimit(v int32)
SetLowerLimit updates the LowerLimit field in the record's packed storage.
func (*JustPCDecompositionAction) SetOrder ¶
func (s *JustPCDecompositionAction) SetOrder(v uint16)
SetOrder updates the Order field in the record's packed storage.
func (*JustPCDecompositionAction) SetUpperLimit ¶
func (s *JustPCDecompositionAction) SetUpperLimit(v int32)
SetUpperLimit updates the UpperLimit field in the record's packed storage.
func (*JustPCDecompositionAction) UpperLimit ¶
func (s *JustPCDecompositionAction) UpperLimit() int32
UpperLimit returns the UpperLimit field from the record's packed storage.
type JustPCDuctilityAction ¶
type JustPCDuctilityAction struct {
// contains filtered or unexported fields
}
JustPCDuctilityAction
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/JustPCDuctilityAction
func (*JustPCDuctilityAction) DuctilityAxis ¶
func (s *JustPCDuctilityAction) DuctilityAxis() uint32
DuctilityAxis returns the DuctilityAxis field from the record's packed storage.
func (*JustPCDuctilityAction) MaximumLimit ¶
func (s *JustPCDuctilityAction) MaximumLimit() int32
MaximumLimit returns the MaximumLimit field from the record's packed storage.
func (*JustPCDuctilityAction) MinimumLimit ¶
func (s *JustPCDuctilityAction) MinimumLimit() int32
MinimumLimit returns the MinimumLimit field from the record's packed storage.
func (*JustPCDuctilityAction) NoStretchValue ¶
func (s *JustPCDuctilityAction) NoStretchValue() int32
NoStretchValue returns the NoStretchValue field from the record's packed storage.
func (*JustPCDuctilityAction) SetDuctilityAxis ¶
func (s *JustPCDuctilityAction) SetDuctilityAxis(v uint32)
SetDuctilityAxis updates the DuctilityAxis field in the record's packed storage.
func (*JustPCDuctilityAction) SetMaximumLimit ¶
func (s *JustPCDuctilityAction) SetMaximumLimit(v int32)
SetMaximumLimit updates the MaximumLimit field in the record's packed storage.
func (*JustPCDuctilityAction) SetMinimumLimit ¶
func (s *JustPCDuctilityAction) SetMinimumLimit(v int32)
SetMinimumLimit updates the MinimumLimit field in the record's packed storage.
func (*JustPCDuctilityAction) SetNoStretchValue ¶
func (s *JustPCDuctilityAction) SetNoStretchValue(v int32)
SetNoStretchValue updates the NoStretchValue field in the record's packed storage.
type JustPCGlyphRepeatAddAction ¶
JustPCGlyphRepeatAddAction
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/JustPCGlyphRepeatAddAction
type JustPCUnconditionalAddAction ¶
type JustPCUnconditionalAddAction = uint16
See: https://developer.apple.com/documentation/CoreText/JustPCUnconditionalAddAction
type JustPostcompTable ¶
type JustPostcompTable struct {
LookupTable SFNTLookupTable
}
JustPostcompTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/JustPostcompTable
type JustTable ¶
type JustTable struct {
// contains filtered or unexported fields
}
JustTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/JustTable
func (*JustTable) HorizHeaderOffset ¶
HorizHeaderOffset returns the HorizHeaderOffset field from the record's packed storage.
func (*JustTable) SetHorizHeaderOffset ¶
SetHorizHeaderOffset updates the HorizHeaderOffset field in the record's packed storage.
func (*JustTable) SetVersion ¶
SetVersion updates the Version field in the record's packed storage.
func (*JustTable) SetVertHeaderOffset ¶
SetVertHeaderOffset updates the VertHeaderOffset field in the record's packed storage.
func (*JustTable) VertHeaderOffset ¶
VertHeaderOffset returns the VertHeaderOffset field from the record's packed storage.
type JustWidthDeltaEntry ¶
type JustWidthDeltaEntry struct {
// contains filtered or unexported fields
}
JustWidthDeltaEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/JustWidthDeltaEntry
func (*JustWidthDeltaEntry) AfterGrowLimit ¶
func (s *JustWidthDeltaEntry) AfterGrowLimit() int32
AfterGrowLimit returns the AfterGrowLimit field from the record's packed storage.
func (*JustWidthDeltaEntry) AfterShrinkLimit ¶
func (s *JustWidthDeltaEntry) AfterShrinkLimit() int32
AfterShrinkLimit returns the AfterShrinkLimit field from the record's packed storage.
func (*JustWidthDeltaEntry) BeforeGrowLimit ¶
func (s *JustWidthDeltaEntry) BeforeGrowLimit() int32
BeforeGrowLimit returns the BeforeGrowLimit field from the record's packed storage.
func (*JustWidthDeltaEntry) BeforeShrinkLimit ¶
func (s *JustWidthDeltaEntry) BeforeShrinkLimit() int32
BeforeShrinkLimit returns the BeforeShrinkLimit field from the record's packed storage.
func (*JustWidthDeltaEntry) GrowFlags ¶
func (s *JustWidthDeltaEntry) GrowFlags() JustificationFlags
GrowFlags returns the GrowFlags field from the record's packed storage.
func (*JustWidthDeltaEntry) JustClass ¶
func (s *JustWidthDeltaEntry) JustClass() uint32
JustClass returns the JustClass field from the record's packed storage.
func (*JustWidthDeltaEntry) SetAfterGrowLimit ¶
func (s *JustWidthDeltaEntry) SetAfterGrowLimit(v int32)
SetAfterGrowLimit updates the AfterGrowLimit field in the record's packed storage.
func (*JustWidthDeltaEntry) SetAfterShrinkLimit ¶
func (s *JustWidthDeltaEntry) SetAfterShrinkLimit(v int32)
SetAfterShrinkLimit updates the AfterShrinkLimit field in the record's packed storage.
func (*JustWidthDeltaEntry) SetBeforeGrowLimit ¶
func (s *JustWidthDeltaEntry) SetBeforeGrowLimit(v int32)
SetBeforeGrowLimit updates the BeforeGrowLimit field in the record's packed storage.
func (*JustWidthDeltaEntry) SetBeforeShrinkLimit ¶
func (s *JustWidthDeltaEntry) SetBeforeShrinkLimit(v int32)
SetBeforeShrinkLimit updates the BeforeShrinkLimit field in the record's packed storage.
func (*JustWidthDeltaEntry) SetGrowFlags ¶
func (s *JustWidthDeltaEntry) SetGrowFlags(v JustificationFlags)
SetGrowFlags updates the GrowFlags field in the record's packed storage.
func (*JustWidthDeltaEntry) SetJustClass ¶
func (s *JustWidthDeltaEntry) SetJustClass(v uint32)
SetJustClass updates the JustClass field in the record's packed storage.
func (*JustWidthDeltaEntry) SetShrinkFlags ¶
func (s *JustWidthDeltaEntry) SetShrinkFlags(v JustificationFlags)
SetShrinkFlags updates the ShrinkFlags field in the record's packed storage.
func (*JustWidthDeltaEntry) ShrinkFlags ¶
func (s *JustWidthDeltaEntry) ShrinkFlags() JustificationFlags
ShrinkFlags returns the ShrinkFlags field from the record's packed storage.
type JustWidthDeltaGroup ¶
type JustWidthDeltaGroup struct {
// contains filtered or unexported fields
}
JustWidthDeltaGroup
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/JustWidthDeltaGroup
func (*JustWidthDeltaGroup) Count ¶
func (s *JustWidthDeltaGroup) Count() uint32
Count returns the Count field from the record's packed storage.
func (*JustWidthDeltaGroup) Entries ¶
func (s *JustWidthDeltaGroup) Entries() [1]JustWidthDeltaEntry
Entries returns the Entries field from the record's packed storage.
func (*JustWidthDeltaGroup) SetCount ¶
func (s *JustWidthDeltaGroup) SetCount(v uint32)
SetCount updates the Count field in the record's packed storage.
func (*JustWidthDeltaGroup) SetEntries ¶
func (s *JustWidthDeltaGroup) SetEntries(v [1]JustWidthDeltaEntry)
SetEntries updates the Entries field in the record's packed storage.
type JustificationFlags ¶
type JustificationFlags = uint16
See: https://developer.apple.com/documentation/CoreText/JustificationFlags
type KAllTypeFeatures ¶
type KAllTypeFeatures uint32
const ( KAllTypeFeaturesOffSelector KAllTypeFeatures = 1 KAllTypeFeaturesOnSelector KAllTypeFeatures = 0 )
func (KAllTypeFeatures) String ¶
func (e KAllTypeFeatures) String() string
type KAllTypographicFeaturesTypeConstants ¶
type KAllTypographicFeaturesTypeConstants int32
const ( KAllTypographicFeaturesType KAllTypographicFeaturesTypeConstants = 0 KAlternateKanaType KAllTypographicFeaturesTypeConstants = 34 KAnnotationType KAllTypographicFeaturesTypeConstants = 24 KCJKRomanSpacingType KAllTypographicFeaturesTypeConstants = 103 KCJKSymbolAlternativesType KAllTypographicFeaturesTypeConstants = 29 KCJKVerticalRomanPlacementType KAllTypographicFeaturesTypeConstants = 31 KCaseSensitiveLayoutType KAllTypographicFeaturesTypeConstants = 33 KCharacterAlternativesType KAllTypographicFeaturesTypeConstants = 17 KCharacterShapeType KAllTypographicFeaturesTypeConstants = 20 KContextualAlternatesType KAllTypographicFeaturesTypeConstants = 36 KCursiveConnectionType KAllTypographicFeaturesTypeConstants = 2 KDesignComplexityType KAllTypographicFeaturesTypeConstants = 18 KDiacriticsType KAllTypographicFeaturesTypeConstants = 9 KFractionsType KAllTypographicFeaturesTypeConstants = 11 KIdeographicAlternativesType KAllTypographicFeaturesTypeConstants = 30 KIdeographicSpacingType KAllTypographicFeaturesTypeConstants = 26 KItalicCJKRomanType KAllTypographicFeaturesTypeConstants = 32 KKanaSpacingType KAllTypographicFeaturesTypeConstants = 25 KLanguageTagType KAllTypographicFeaturesTypeConstants = 39 KLastFeatureType KAllTypographicFeaturesTypeConstants = -1 KLetterCaseType KAllTypographicFeaturesTypeConstants = 3 KLigaturesType KAllTypographicFeaturesTypeConstants = 1 KLinguisticRearrangementType KAllTypographicFeaturesTypeConstants = 5 KLowerCaseType KAllTypographicFeaturesTypeConstants = 37 KMathematicalExtrasType KAllTypographicFeaturesTypeConstants = 15 KNumberCaseType KAllTypographicFeaturesTypeConstants = 21 KNumberSpacingType KAllTypographicFeaturesTypeConstants = 6 KOrnamentSetsType KAllTypographicFeaturesTypeConstants = 16 KOverlappingCharactersType KAllTypographicFeaturesTypeConstants = 13 KRubyKanaType KAllTypographicFeaturesTypeConstants = 28 KSmartSwashType KAllTypographicFeaturesTypeConstants = 8 KStyleOptionsType KAllTypographicFeaturesTypeConstants = 19 KStylisticAlternativesType KAllTypographicFeaturesTypeConstants = 35 KTextSpacingType KAllTypographicFeaturesTypeConstants = 22 KTransliterationType KAllTypographicFeaturesTypeConstants = 23 KTypographicExtrasType KAllTypographicFeaturesTypeConstants = 14 KUnicodeDecompositionType KAllTypographicFeaturesTypeConstants = 27 KUpperCaseType KAllTypographicFeaturesTypeConstants = 38 KVerticalPositionType KAllTypographicFeaturesTypeConstants = 10 KVerticalSubstitutionType KAllTypographicFeaturesTypeConstants = 4 )
func (KAllTypographicFeaturesTypeConstants) String ¶
func (e KAllTypographicFeaturesTypeConstants) String() string
type KAlternate ¶
type KAlternate uint32
const ( KAlternateHorizKanaOffSelector KAlternate = 1 KAlternateHorizKanaOnSelector KAlternate = 0 KAlternateVertKanaOffSelector KAlternate = 3 KAlternateVertKanaOnSelector KAlternate = 2 )
func (KAlternate) String ¶
func (e KAlternate) String() string
type KBSLNRomanBaselineConstants ¶
type KBSLNRomanBaselineConstants uint32
const ( KBSLNHangingBaseline KBSLNRomanBaselineConstants = 3 KBSLNIdeographicCenterBaseline KBSLNRomanBaselineConstants = 1 KBSLNIdeographicHighBaseline KBSLNRomanBaselineConstants = 5 KBSLNIdeographicLowBaseline KBSLNRomanBaselineConstants = 2 KBSLNLastBaseline KBSLNRomanBaselineConstants = 31 KBSLNMathBaseline KBSLNRomanBaselineConstants = 4 KBSLNNoBaseline KBSLNRomanBaselineConstants = 255 KBSLNNoBaselineOverride KBSLNRomanBaselineConstants = 255 KBSLNNumBaselineClasses KBSLNRomanBaselineConstants = 32 KBSLNRomanBaseline KBSLNRomanBaselineConstants = 0 )
func (KBSLNRomanBaselineConstants) String ¶
func (e KBSLNRomanBaselineConstants) String() string
type KBSLNTagConstants ¶
type KBSLNTagConstants uint32
const ( KBSLNControlPointFormatNoMap KBSLNTagConstants = 2 KBSLNControlPointFormatWithMap KBSLNTagConstants = 3 KBSLNCurrentVersion KBSLNTagConstants = 0x10000 KBSLNDistanceFormatNoMap KBSLNTagConstants = 0 KBSLNDistanceFormatWithMap KBSLNTagConstants = 1 KBSLNTag KBSLNTagConstants = 0x62736c6e )
func (KBSLNTagConstants) String ¶
func (e KBSLNTagConstants) String() string
type KCJKVerticalRoman ¶
type KCJKVerticalRoman uint32
const ( KCJKVerticalRomanCenteredSelector KCJKVerticalRoman = 0 KCJKVerticalRomanHBaselineSelector KCJKVerticalRoman = 1 )
func (KCJKVerticalRoman) String ¶
func (e KCJKVerticalRoman) String() string
type KCTFontPriority ¶
type KCTFontPriority uint32
const ( // KCTFontPriorityComputer: Priority of computer local fonts. KCTFontPriorityComputer KCTFontPriority = 30000 // KCTFontPriorityDynamic: Priority of fonts registered dynamically, not located in a standard location. KCTFontPriorityDynamic KCTFontPriority = 50000 // KCTFontPriorityNetwork: Priority of network fonts. KCTFontPriorityNetwork KCTFontPriority = 20000 // KCTFontPriorityProcess: Priority of fonts registered for the process. KCTFontPriorityProcess KCTFontPriority = 60000 // KCTFontPrioritySystem: Priority of system fonts. KCTFontPrioritySystem KCTFontPriority = 10000 // KCTFontPriorityUser: Priority of local fonts. KCTFontPriorityUser KCTFontPriority = 40000 )
func (KCTFontPriority) String ¶
func (e KCTFontPriority) String() string
type KCTFontTable ¶
type KCTFontTable uint32
const ( // KCTFontTableAcnt: # Discussion KCTFontTableAcnt KCTFontTable = 'a'<<24 | 'c'<<16 | 'n'<<8 | 't' // 'acnt' KCTFontTableAnkr KCTFontTable = 'a'<<24 | 'n'<<16 | 'k'<<8 | 'r' // 'ankr' // KCTFontTableAvar: # Discussion KCTFontTableAvar KCTFontTable = 'a'<<24 | 'v'<<16 | 'a'<<8 | 'r' // 'avar' // KCTFontTableBASE: # Discussion KCTFontTableBASE KCTFontTable = 'B'<<24 | 'A'<<16 | 'S'<<8 | 'E' // 'BASE' // KCTFontTableBdat: # Discussion KCTFontTableBdat KCTFontTable = 'b'<<24 | 'd'<<16 | 'a'<<8 | 't' // 'bdat' // KCTFontTableBhed: # Discussion KCTFontTableBhed KCTFontTable = 'b'<<24 | 'h'<<16 | 'e'<<8 | 'd' // 'bhed' // KCTFontTableBloc: # Discussion KCTFontTableBloc KCTFontTable = 'b'<<24 | 'l'<<16 | 'o'<<8 | 'c' // 'bloc' // KCTFontTableBsln: # Discussion KCTFontTableBsln KCTFontTable = 'b'<<24 | 's'<<16 | 'l'<<8 | 'n' // 'bsln' KCTFontTableCBDT KCTFontTable = 'C'<<24 | 'B'<<16 | 'D'<<8 | 'T' // 'CBDT' KCTFontTableCBLC KCTFontTable = 'C'<<24 | 'B'<<16 | 'L'<<8 | 'C' // 'CBLC' // KCTFontTableCFF: # Discussion KCTFontTableCFF KCTFontTable = 'C'<<24 | 'F'<<16 | 'F'<<8 | ' ' // 'CFF ' KCTFontTableCFF2 KCTFontTable = 'C'<<24 | 'F'<<16 | 'F'<<8 | '2' // 'CFF2' KCTFontTableCOLR KCTFontTable = 'C'<<24 | 'O'<<16 | 'L'<<8 | 'R' // 'COLR' KCTFontTableCPAL KCTFontTable = 'C'<<24 | 'P'<<16 | 'A'<<8 | 'L' // 'CPAL' KCTFontTableCidg KCTFontTable = 'c'<<24 | 'i'<<16 | 'd'<<8 | 'g' // 'cidg' // KCTFontTableCmap: # Discussion KCTFontTableCmap KCTFontTable = 'c'<<24 | 'm'<<16 | 'a'<<8 | 'p' // 'cmap' // KCTFontTableCvar: # Discussion KCTFontTableCvar KCTFontTable = 'c'<<24 | 'v'<<16 | 'a'<<8 | 'r' // 'cvar' // KCTFontTableCvt: # Discussion KCTFontTableCvt KCTFontTable = 'c'<<24 | 'v'<<16 | 't'<<8 | ' ' // 'cvt ' // KCTFontTableDSIG: # Discussion KCTFontTableDSIG KCTFontTable = 'D'<<24 | 'S'<<16 | 'I'<<8 | 'G' // 'DSIG' // KCTFontTableEBDT: # Discussion KCTFontTableEBDT KCTFontTable = 'E'<<24 | 'B'<<16 | 'D'<<8 | 'T' // 'EBDT' // KCTFontTableEBLC: # Discussion KCTFontTableEBLC KCTFontTable = 'E'<<24 | 'B'<<16 | 'L'<<8 | 'C' // 'EBLC' // KCTFontTableEBSC: # Discussion KCTFontTableEBSC KCTFontTable = 'E'<<24 | 'B'<<16 | 'S'<<8 | 'C' // 'EBSC' // KCTFontTableFdsc: # Discussion KCTFontTableFdsc KCTFontTable = 'f'<<24 | 'd'<<16 | 's'<<8 | 'c' // 'fdsc' // KCTFontTableFeat: # Discussion KCTFontTableFeat KCTFontTable = 'f'<<24 | 'e'<<16 | 'a'<<8 | 't' // 'feat' // KCTFontTableFmtx: # Discussion KCTFontTableFmtx KCTFontTable = 'f'<<24 | 'm'<<16 | 't'<<8 | 'x' // 'fmtx' KCTFontTableFond KCTFontTable = 'f'<<24 | 'o'<<16 | 'n'<<8 | 'd' // 'fond' // KCTFontTableFpgm: # Discussion KCTFontTableFpgm KCTFontTable = 'f'<<24 | 'p'<<16 | 'g'<<8 | 'm' // 'fpgm' // KCTFontTableFvar: # Discussion KCTFontTableFvar KCTFontTable = 'f'<<24 | 'v'<<16 | 'a'<<8 | 'r' // 'fvar' // KCTFontTableGDEF: # Discussion KCTFontTableGDEF KCTFontTable = 'G'<<24 | 'D'<<16 | 'E'<<8 | 'F' // 'GDEF' // KCTFontTableGPOS: # Discussion KCTFontTableGPOS KCTFontTable = 'G'<<24 | 'P'<<16 | 'O'<<8 | 'S' // 'GPOS' // KCTFontTableGSUB: # Discussion KCTFontTableGSUB KCTFontTable = 'G'<<24 | 'S'<<16 | 'U'<<8 | 'B' // 'GSUB' // KCTFontTableGasp: # Discussion KCTFontTableGasp KCTFontTable = 'g'<<24 | 'a'<<16 | 's'<<8 | 'p' // 'gasp' // KCTFontTableGlyf: # Discussion KCTFontTableGlyf KCTFontTable = 'g'<<24 | 'l'<<16 | 'y'<<8 | 'f' // 'glyf' // KCTFontTableGvar: # Discussion KCTFontTableGvar KCTFontTable = 'g'<<24 | 'v'<<16 | 'a'<<8 | 'r' // 'gvar' KCTFontTableHVAR KCTFontTable = 'H'<<24 | 'V'<<16 | 'A'<<8 | 'R' // 'HVAR' // KCTFontTableHdmx: # Discussion KCTFontTableHdmx KCTFontTable = 'h'<<24 | 'd'<<16 | 'm'<<8 | 'x' // 'hdmx' // KCTFontTableHead: # Discussion KCTFontTableHead KCTFontTable = 'h'<<24 | 'e'<<16 | 'a'<<8 | 'd' // 'head' // KCTFontTableHhea: # Discussion KCTFontTableHhea KCTFontTable = 'h'<<24 | 'h'<<16 | 'e'<<8 | 'a' // 'hhea' // KCTFontTableHmtx: # Discussion KCTFontTableHmtx KCTFontTable = 'h'<<24 | 'm'<<16 | 't'<<8 | 'x' // 'hmtx' // KCTFontTableHsty: # Discussion KCTFontTableHsty KCTFontTable = 'h'<<24 | 's'<<16 | 't'<<8 | 'y' // 'hsty' // KCTFontTableJSTF: # Discussion KCTFontTableJSTF KCTFontTable = 'J'<<24 | 'S'<<16 | 'T'<<8 | 'F' // 'JSTF' // KCTFontTableJust: # Discussion KCTFontTableJust KCTFontTable = 'j'<<24 | 'u'<<16 | 's'<<8 | 't' // 'just' // KCTFontTableKern: # Discussion KCTFontTableKern KCTFontTable = 'k'<<24 | 'e'<<16 | 'r'<<8 | 'n' // 'kern' // KCTFontTableKerx: # Discussion KCTFontTableKerx KCTFontTable = 'k'<<24 | 'e'<<16 | 'r'<<8 | 'x' // 'kerx' // KCTFontTableLTSH: # Discussion KCTFontTableLTSH KCTFontTable = 'L'<<24 | 'T'<<16 | 'S'<<8 | 'H' // 'LTSH' // KCTFontTableLcar: # Discussion KCTFontTableLcar KCTFontTable = 'l'<<24 | 'c'<<16 | 'a'<<8 | 'r' // 'lcar' // KCTFontTableLoca: # Discussion KCTFontTableLoca KCTFontTable = 'l'<<24 | 'o'<<16 | 'c'<<8 | 'a' // 'loca' KCTFontTableLtag KCTFontTable = 'l'<<24 | 't'<<16 | 'a'<<8 | 'g' // 'ltag' KCTFontTableMATH KCTFontTable = 'M'<<24 | 'A'<<16 | 'T'<<8 | 'H' // 'MATH' KCTFontTableMERG KCTFontTable = 'M'<<24 | 'E'<<16 | 'R'<<8 | 'G' // 'MERG' KCTFontTableMVAR KCTFontTable = 'M'<<24 | 'V'<<16 | 'A'<<8 | 'R' // 'MVAR' // KCTFontTableMaxp: # Discussion KCTFontTableMaxp KCTFontTable = 'm'<<24 | 'a'<<16 | 'x'<<8 | 'p' // 'maxp' KCTFontTableMeta KCTFontTable = 'm'<<24 | 'e'<<16 | 't'<<8 | 'a' // 'meta' // KCTFontTableMort: # Discussion KCTFontTableMort KCTFontTable = 'm'<<24 | 'o'<<16 | 'r'<<8 | 't' // 'mort' // KCTFontTableMorx: # Discussion KCTFontTableMorx KCTFontTable = 'm'<<24 | 'o'<<16 | 'r'<<8 | 'x' // 'morx' // KCTFontTableName: # Discussion KCTFontTableName KCTFontTable = 'n'<<24 | 'a'<<16 | 'm'<<8 | 'e' // 'name' // KCTFontTableOS2: # Discussion KCTFontTableOS2 KCTFontTable = 'O'<<24 | 'S'<<16 | '/'<<8 | '2' // 'OS/2' // KCTFontTableOpbd: # Discussion KCTFontTableOpbd KCTFontTable = 'o'<<24 | 'p'<<16 | 'b'<<8 | 'd' // 'opbd' // KCTFontTablePCLT: # Discussion KCTFontTablePCLT KCTFontTable = 'P'<<24 | 'C'<<16 | 'L'<<8 | 'T' // 'PCLT' // KCTFontTablePost: # Discussion KCTFontTablePost KCTFontTable = 'p'<<24 | 'o'<<16 | 's'<<8 | 't' // 'post' // KCTFontTablePrep: # Discussion KCTFontTablePrep KCTFontTable = 'p'<<24 | 'r'<<16 | 'e'<<8 | 'p' // 'prep' // KCTFontTableProp: # Discussion KCTFontTableProp KCTFontTable = 'p'<<24 | 'r'<<16 | 'o'<<8 | 'p' // 'prop' KCTFontTableSTAT KCTFontTable = 'S'<<24 | 'T'<<16 | 'A'<<8 | 'T' // 'STAT' KCTFontTableSVG KCTFontTable = 'S'<<24 | 'V'<<16 | 'G'<<8 | ' ' // 'SVG ' // KCTFontTableSbit: Font table tag for bitmap data. KCTFontTableSbit KCTFontTable = 's'<<24 | 'b'<<16 | 'i'<<8 | 't' // 'sbit' // KCTFontTableSbix: Font table tag for extended bitmap data. KCTFontTableSbix KCTFontTable = 's'<<24 | 'b'<<16 | 'i'<<8 | 'x' // 'sbix' // KCTFontTableTrak: # Discussion KCTFontTableTrak KCTFontTable = 't'<<24 | 'r'<<16 | 'a'<<8 | 'k' // 'trak' // KCTFontTableVDMX: # Discussion KCTFontTableVDMX KCTFontTable = 'V'<<24 | 'D'<<16 | 'M'<<8 | 'X' // 'VDMX' // KCTFontTableVORG: # Discussion KCTFontTableVORG KCTFontTable = 'V'<<24 | 'O'<<16 | 'R'<<8 | 'G' // 'VORG' KCTFontTableVVAR KCTFontTable = 'V'<<24 | 'V'<<16 | 'A'<<8 | 'R' // 'VVAR' // KCTFontTableVhea: # Discussion KCTFontTableVhea KCTFontTable = 'v'<<24 | 'h'<<16 | 'e'<<8 | 'a' // 'vhea' // KCTFontTableVmtx: # Discussion KCTFontTableVmtx KCTFontTable = 'v'<<24 | 'm'<<16 | 't'<<8 | 'x' // 'vmtx' KCTFontTableXref KCTFontTable = 'x'<<24 | 'r'<<16 | 'e'<<8 | 'f' // 'xref' // KCTFontTableZapf: # Discussion KCTFontTableZapf KCTFontTable = 'Z'<<24 | 'a'<<16 | 'p'<<8 | 'f' // 'Zapf' )
func (KCTFontTable) String ¶
func (e KCTFontTable) String() string
type KCTRunDelegate ¶
type KCTRunDelegate uint32
const ( // KCTRunDelegateCurrentVersion: The current version of the run delegate. KCTRunDelegateCurrentVersion KCTRunDelegate = 1 // KCTRunDelegateVersion1: Version 1 of the run delegate. KCTRunDelegateVersion1 KCTRunDelegate = 1 )
func (KCTRunDelegate) String ¶
func (e KCTRunDelegate) String() string
type KCTWritingDirection ¶
type KCTWritingDirection uint32
const ( KCTWritingDirectionEmbedding KCTWritingDirection = 0 KCTWritingDirectionOverride KCTWritingDirection = 2 )
func (KCTWritingDirection) String ¶
func (e KCTWritingDirection) String() string
type KCanonicalCompositionOnSelectorConstants ¶
type KCanonicalCompositionOnSelectorConstants uint32
const ( KCanonicalCompositionOffSelector KCanonicalCompositionOnSelectorConstants = 1 KCanonicalCompositionOnSelector KCanonicalCompositionOnSelectorConstants = 0 KCompatibilityCompositionOffSelector KCanonicalCompositionOnSelectorConstants = 3 KCompatibilityCompositionOnSelector KCanonicalCompositionOnSelectorConstants = 2 KTranscodingCompositionOffSelector KCanonicalCompositionOnSelectorConstants = 5 KTranscodingCompositionOnSelector KCanonicalCompositionOnSelectorConstants = 4 )
func (KCanonicalCompositionOnSelectorConstants) String ¶
func (e KCanonicalCompositionOnSelectorConstants) String() string
type KCaseSensitive ¶
type KCaseSensitive uint32
const ( KCaseSensitiveLayoutOffSelector KCaseSensitive = 1 KCaseSensitiveLayoutOnSelector KCaseSensitive = 0 KCaseSensitiveSpacingOffSelector KCaseSensitive = 3 KCaseSensitiveSpacingOnSelector KCaseSensitive = 2 )
func (KCaseSensitive) String ¶
func (e KCaseSensitive) String() string
type KContextualAlternatesOnSelectorConstants ¶
type KContextualAlternatesOnSelectorConstants uint32
const ( KContextualAlternatesOffSelector KContextualAlternatesOnSelectorConstants = 1 KContextualAlternatesOnSelector KContextualAlternatesOnSelectorConstants = 0 KContextualSwashAlternatesOffSelector KContextualAlternatesOnSelectorConstants = 5 KContextualSwashAlternatesOnSelector KContextualAlternatesOnSelectorConstants = 4 KSwashAlternatesOffSelector KContextualAlternatesOnSelectorConstants = 3 KSwashAlternatesOnSelector KContextualAlternatesOnSelectorConstants = 2 )
func (KContextualAlternatesOnSelectorConstants) String ¶
func (e KContextualAlternatesOnSelectorConstants) String() string
type KDefaultLowerCaseSelectorConstants ¶
type KDefaultLowerCaseSelectorConstants uint32
const ( KDefaultLowerCaseSelector KDefaultLowerCaseSelectorConstants = 0 KLowerCasePetiteCapsSelector KDefaultLowerCaseSelectorConstants = 2 KLowerCaseSmallCapsSelector KDefaultLowerCaseSelectorConstants = 1 )
func (KDefaultLowerCaseSelectorConstants) String ¶
func (e KDefaultLowerCaseSelectorConstants) String() string
type KDefaultUpperCaseSelectorConstants ¶
type KDefaultUpperCaseSelectorConstants uint32
const ( KDefaultUpperCaseSelector KDefaultUpperCaseSelectorConstants = 0 KUpperCasePetiteCapsSelector KDefaultUpperCaseSelectorConstants = 2 KUpperCaseSmallCapsSelector KDefaultUpperCaseSelectorConstants = 1 )
func (KDefaultUpperCaseSelectorConstants) String ¶
func (e KDefaultUpperCaseSelectorConstants) String() string
type KFontCopyrightNameConstants ¶
type KFontCopyrightNameConstants uint32
const ( KFontCopyrightName KFontCopyrightNameConstants = 0 KFontDescriptionName KFontCopyrightNameConstants = 10 KFontDesignerName KFontCopyrightNameConstants = 9 KFontDesignerURLName KFontCopyrightNameConstants = 12 KFontFamilyName KFontCopyrightNameConstants = 1 KFontFullName KFontCopyrightNameConstants = 4 KFontLastReservedName KFontCopyrightNameConstants = 255 KFontLicenseDescriptionName KFontCopyrightNameConstants = 13 KFontLicenseInfoURLName KFontCopyrightNameConstants = 14 KFontMacCompatibleFullName KFontCopyrightNameConstants = 18 KFontManufacturerName KFontCopyrightNameConstants = 8 KFontPostScriptCIDName KFontCopyrightNameConstants = 20 KFontPostscriptName KFontCopyrightNameConstants = 6 KFontPreferredFamilyName KFontCopyrightNameConstants = 16 KFontPreferredSubfamilyName KFontCopyrightNameConstants = 17 KFontSampleTextName KFontCopyrightNameConstants = 19 KFontStyleName KFontCopyrightNameConstants = 2 KFontTrademarkName KFontCopyrightNameConstants = 7 KFontUniqueName KFontCopyrightNameConstants = 3 KFontVendorURLName KFontCopyrightNameConstants = 11 KFontVersionName KFontCopyrightNameConstants = 5 )
func (KFontCopyrightNameConstants) String ¶
func (e KFontCopyrightNameConstants) String() string
type KFontCustom8BitScriptConstants ¶
type KFontCustom8BitScriptConstants uint32
const ( KFontCustom16BitScript KFontCustom8BitScriptConstants = 2 KFontCustom816BitScript KFontCustom8BitScriptConstants = 1 KFontCustom8BitScript KFontCustom8BitScriptConstants = 0 )
func (KFontCustom8BitScriptConstants) String ¶
func (e KFontCustom8BitScriptConstants) String() string
type KFontEnglishLanguageConstants ¶
type KFontEnglishLanguageConstants uint32
const ( KFontAlbanianLanguage KFontEnglishLanguageConstants = 36 KFontAmharicLanguage KFontEnglishLanguageConstants = 85 KFontArabicLanguage KFontEnglishLanguageConstants = 12 KFontArmenianLanguage KFontEnglishLanguageConstants = 51 KFontAssameseLanguage KFontEnglishLanguageConstants = 68 KFontAymaraLanguage KFontEnglishLanguageConstants = 134 KFontAzerbaijanArLanguage KFontEnglishLanguageConstants = 50 KFontAzerbaijaniLanguage KFontEnglishLanguageConstants = 49 KFontBasqueLanguage KFontEnglishLanguageConstants = 129 KFontBengaliLanguage KFontEnglishLanguageConstants = 67 KFontBulgarianLanguage KFontEnglishLanguageConstants = 44 KFontBurmeseLanguage KFontEnglishLanguageConstants = 77 KFontByelorussianLanguage KFontEnglishLanguageConstants = 46 KFontCatalanLanguage KFontEnglishLanguageConstants = 130 KFontChewaLanguage KFontEnglishLanguageConstants = 92 KFontCroatianLanguage KFontEnglishLanguageConstants = 18 KFontCzechLanguage KFontEnglishLanguageConstants = 38 KFontDanishLanguage KFontEnglishLanguageConstants = 7 KFontDutchLanguage KFontEnglishLanguageConstants = 4 KFontDzongkhaLanguage KFontEnglishLanguageConstants = 137 KFontEnglishLanguage KFontEnglishLanguageConstants = 0 KFontEsperantoLanguage KFontEnglishLanguageConstants = 94 KFontEstonianLanguage KFontEnglishLanguageConstants = 27 KFontFaeroeseLanguage KFontEnglishLanguageConstants = 30 KFontFarsiLanguage KFontEnglishLanguageConstants = 31 KFontFinnishLanguage KFontEnglishLanguageConstants = 13 KFontFlemishLanguage KFontEnglishLanguageConstants = 34 KFontFrenchLanguage KFontEnglishLanguageConstants = 1 KFontGallaLanguage KFontEnglishLanguageConstants = 87 KFontGeorgianLanguage KFontEnglishLanguageConstants = 52 KFontGermanLanguage KFontEnglishLanguageConstants = 2 KFontGreekLanguage KFontEnglishLanguageConstants = 14 KFontGuaraniLanguage KFontEnglishLanguageConstants = 133 KFontGujaratiLanguage KFontEnglishLanguageConstants = 69 KFontHebrewLanguage KFontEnglishLanguageConstants = 10 KFontHindiLanguage KFontEnglishLanguageConstants = 21 KFontHungarianLanguage KFontEnglishLanguageConstants = 26 KFontIcelandicLanguage KFontEnglishLanguageConstants = 15 KFontIndonesianLanguage KFontEnglishLanguageConstants = 81 KFontIrishLanguage KFontEnglishLanguageConstants = 35 KFontItalianLanguage KFontEnglishLanguageConstants = 3 KFontJapaneseLanguage KFontEnglishLanguageConstants = 11 KFontJavaneseRomLanguage KFontEnglishLanguageConstants = 138 KFontKannadaLanguage KFontEnglishLanguageConstants = 73 KFontKashmiriLanguage KFontEnglishLanguageConstants = 61 KFontKazakhLanguage KFontEnglishLanguageConstants = 48 KFontKhmerLanguage KFontEnglishLanguageConstants = 78 KFontKirghizLanguage KFontEnglishLanguageConstants = 54 KFontKoreanLanguage KFontEnglishLanguageConstants = 23 KFontKurdishLanguage KFontEnglishLanguageConstants = 60 KFontLaoLanguage KFontEnglishLanguageConstants = 79 KFontLappishLanguage KFontEnglishLanguageConstants = 29 KFontLatinLanguage KFontEnglishLanguageConstants = 131 KFontLatvianLanguage KFontEnglishLanguageConstants = 28 KFontLettishLanguage KFontEnglishLanguageConstants = 28 KFontLithuanianLanguage KFontEnglishLanguageConstants = 24 KFontMacedonianLanguage KFontEnglishLanguageConstants = 43 KFontMalagasyLanguage KFontEnglishLanguageConstants = 93 KFontMalayArabicLanguage KFontEnglishLanguageConstants = 84 KFontMalayRomanLanguage KFontEnglishLanguageConstants = 83 KFontMalayalamLanguage KFontEnglishLanguageConstants = 72 KFontMalteseLanguage KFontEnglishLanguageConstants = 16 KFontMarathiLanguage KFontEnglishLanguageConstants = 66 KFontMoldavianLanguage KFontEnglishLanguageConstants = 53 KFontMongolianCyrLanguage KFontEnglishLanguageConstants = 58 KFontMongolianLanguage KFontEnglishLanguageConstants = 57 KFontNepaliLanguage KFontEnglishLanguageConstants = 64 KFontNorwegianLanguage KFontEnglishLanguageConstants = 9 KFontOriyaLanguage KFontEnglishLanguageConstants = 71 KFontOromoLanguage KFontEnglishLanguageConstants = 87 KFontPashtoLanguage KFontEnglishLanguageConstants = 59 KFontPersianLanguage KFontEnglishLanguageConstants = 31 KFontPolishLanguage KFontEnglishLanguageConstants = 25 KFontPortugueseLanguage KFontEnglishLanguageConstants = 8 KFontPunjabiLanguage KFontEnglishLanguageConstants = 70 KFontQuechuaLanguage KFontEnglishLanguageConstants = 132 KFontRomanianLanguage KFontEnglishLanguageConstants = 37 KFontRuandaLanguage KFontEnglishLanguageConstants = 90 KFontRundiLanguage KFontEnglishLanguageConstants = 91 KFontRussianLanguage KFontEnglishLanguageConstants = 32 KFontSaamiskLanguage KFontEnglishLanguageConstants = 29 KFontSanskritLanguage KFontEnglishLanguageConstants = 65 KFontSerbianLanguage KFontEnglishLanguageConstants = 42 KFontSimpChineseLanguage KFontEnglishLanguageConstants = 33 KFontSindhiLanguage KFontEnglishLanguageConstants = 62 KFontSinhaleseLanguage KFontEnglishLanguageConstants = 76 KFontSlovakLanguage KFontEnglishLanguageConstants = 39 KFontSlovenianLanguage KFontEnglishLanguageConstants = 40 KFontSomaliLanguage KFontEnglishLanguageConstants = 88 KFontSpanishLanguage KFontEnglishLanguageConstants = 6 KFontSundaneseRomLanguage KFontEnglishLanguageConstants = 139 KFontSwahiliLanguage KFontEnglishLanguageConstants = 89 KFontSwedishLanguage KFontEnglishLanguageConstants = 5 KFontTagalogLanguage KFontEnglishLanguageConstants = 82 KFontTajikiLanguage KFontEnglishLanguageConstants = 55 KFontTamilLanguage KFontEnglishLanguageConstants = 74 KFontTatarLanguage KFontEnglishLanguageConstants = 135 KFontTeluguLanguage KFontEnglishLanguageConstants = 75 KFontThaiLanguage KFontEnglishLanguageConstants = 22 KFontTibetanLanguage KFontEnglishLanguageConstants = 63 KFontTigrinyaLanguage KFontEnglishLanguageConstants = 86 KFontTradChineseLanguage KFontEnglishLanguageConstants = 19 KFontTurkishLanguage KFontEnglishLanguageConstants = 17 KFontTurkmenLanguage KFontEnglishLanguageConstants = 56 KFontUighurLanguage KFontEnglishLanguageConstants = 136 KFontUkrainianLanguage KFontEnglishLanguageConstants = 45 KFontUrduLanguage KFontEnglishLanguageConstants = 20 KFontUzbekLanguage KFontEnglishLanguageConstants = 47 KFontVietnameseLanguage KFontEnglishLanguageConstants = 80 KFontWelshLanguage KFontEnglishLanguageConstants = 128 KFontYiddishLanguage KFontEnglishLanguageConstants = 41 )
func (KFontEnglishLanguageConstants) String ¶
func (e KFontEnglishLanguageConstants) String() string
type KFontMicrosoft ¶
type KFontMicrosoft uint32
const ( KFontMicrosoftStandardScript KFontMicrosoft = 1 KFontMicrosoftSymbolScript KFontMicrosoft = 0 KFontMicrosoftUCS4Script KFontMicrosoft = 10 )
func (KFontMicrosoft) String ¶
func (e KFontMicrosoft) String() string
type KFontRomanScriptConstants ¶
type KFontRomanScriptConstants uint32
const ( KFontAmharicScript KFontRomanScriptConstants = 28 KFontArabicScript KFontRomanScriptConstants = 4 KFontArmenianScript KFontRomanScriptConstants = 24 KFontBengaliScript KFontRomanScriptConstants = 13 KFontBurmeseScript KFontRomanScriptConstants = 19 KFontChineseScript KFontRomanScriptConstants = 2 KFontCyrillicScript KFontRomanScriptConstants = 7 KFontDevanagariScript KFontRomanScriptConstants = 9 KFontEastEuropeanRomanScript KFontRomanScriptConstants = 29 KFontEthiopicScript KFontRomanScriptConstants = 28 KFontExtendedArabicScript KFontRomanScriptConstants = 31 KFontGeezScript KFontRomanScriptConstants = 28 KFontGeorgianScript KFontRomanScriptConstants = 23 KFontGreekScript KFontRomanScriptConstants = 6 KFontGujaratiScript KFontRomanScriptConstants = 11 KFontGurmukhiScript KFontRomanScriptConstants = 10 KFontHebrewScript KFontRomanScriptConstants = 5 KFontJapaneseScript KFontRomanScriptConstants = 1 KFontKannadaScript KFontRomanScriptConstants = 16 KFontKhmerScript KFontRomanScriptConstants = 20 KFontKoreanScript KFontRomanScriptConstants = 3 KFontLaotianScript KFontRomanScriptConstants = 22 KFontMalayalamScript KFontRomanScriptConstants = 17 KFontMongolianScript KFontRomanScriptConstants = 27 KFontOriyaScript KFontRomanScriptConstants = 12 KFontRSymbolScript KFontRomanScriptConstants = 8 KFontRomanScript KFontRomanScriptConstants = 0 KFontRussian KFontRomanScriptConstants = 7 KFontSimpleChineseScript KFontRomanScriptConstants = 25 KFontSindhiScript KFontRomanScriptConstants = 31 KFontSinhaleseScript KFontRomanScriptConstants = 18 KFontSlavicScript KFontRomanScriptConstants = 29 KFontTamilScript KFontRomanScriptConstants = 14 KFontTeluguScript KFontRomanScriptConstants = 15 KFontThaiScript KFontRomanScriptConstants = 21 KFontTibetanScript KFontRomanScriptConstants = 26 KFontTraditionalChineseScript KFontRomanScriptConstants = 2 KFontUninterpretedScript KFontRomanScriptConstants = 32 KFontVietnameseScript KFontRomanScriptConstants = 30 )
func (KFontRomanScriptConstants) String ¶
func (e KFontRomanScriptConstants) String() string
type KFontUnicodeDefaultSemanticsConstants ¶
type KFontUnicodeDefaultSemanticsConstants uint32
const ( KFontISO10646_1993Semantics KFontUnicodeDefaultSemanticsConstants = 2 KFontUnicodeDefaultSemantics KFontUnicodeDefaultSemanticsConstants = 0 KFontUnicodeV1_1Semantics KFontUnicodeDefaultSemanticsConstants = 1 KFontUnicodeV2_0BMPOnlySemantics KFontUnicodeDefaultSemanticsConstants = 3 KFontUnicodeV2_0FullCoverageSemantics KFontUnicodeDefaultSemanticsConstants = 4 KFontUnicodeV4_0VariationSequenceSemantics KFontUnicodeDefaultSemanticsConstants = 5 KFontUnicode_FullRepertoire KFontUnicodeDefaultSemanticsConstants = 6 )
func (KFontUnicodeDefaultSemanticsConstants) String ¶
func (e KFontUnicodeDefaultSemanticsConstants) String() string
type KFontUnicodePlatformConstants ¶
type KFontUnicodePlatformConstants uint32
const ( KFontCustomPlatform KFontUnicodePlatformConstants = 4 KFontMacintoshPlatform KFontUnicodePlatformConstants = 1 KFontMicrosoftPlatform KFontUnicodePlatformConstants = 3 KFontReservedPlatform KFontUnicodePlatformConstants = 2 KFontUnicodePlatform KFontUnicodePlatformConstants = 0 )
func (KFontUnicodePlatformConstants) String ¶
func (e KFontUnicodePlatformConstants) String() string
type KFullWidthIdeographsSelectorConstants ¶
type KFullWidthIdeographsSelectorConstants uint32
const ( KFullWidthIdeographsSelector KFullWidthIdeographsSelectorConstants = 0 KHalfWidthIdeographsSelector KFullWidthIdeographsSelectorConstants = 2 KProportionalIdeographsSelector KFullWidthIdeographsSelectorConstants = 1 )
func (KFullWidthIdeographsSelectorConstants) String ¶
func (e KFullWidthIdeographsSelectorConstants) String() string
type KFullWidthKanaSelectorConstants ¶
type KFullWidthKanaSelectorConstants uint32
const ( KFullWidthKanaSelector KFullWidthKanaSelectorConstants = 0 KProportionalKanaSelector KFullWidthKanaSelectorConstants = 1 )
func (KFullWidthKanaSelectorConstants) String ¶
func (e KFullWidthKanaSelectorConstants) String() string
type KHalfWidthCJKRomanSelectorConstants ¶
type KHalfWidthCJKRomanSelectorConstants uint32
const ( KDefaultCJKRomanSelector KHalfWidthCJKRomanSelectorConstants = 2 KFullWidthCJKRomanSelector KHalfWidthCJKRomanSelectorConstants = 3 KHalfWidthCJKRomanSelector KHalfWidthCJKRomanSelectorConstants = 0 KProportionalCJKRomanSelector KHalfWidthCJKRomanSelectorConstants = 1 )
func (KHalfWidthCJKRomanSelectorConstants) String ¶
func (e KHalfWidthCJKRomanSelectorConstants) String() string
type KHyphenToMinusOnSelectorConstants ¶
type KHyphenToMinusOnSelectorConstants uint32
const ( KAsteriskToMultiplyOffSelector KHyphenToMinusOnSelectorConstants = 3 KAsteriskToMultiplyOnSelector KHyphenToMinusOnSelectorConstants = 2 KExponentsOffSelector KHyphenToMinusOnSelectorConstants = 9 KExponentsOnSelector KHyphenToMinusOnSelectorConstants = 8 KHyphenToMinusOffSelector KHyphenToMinusOnSelectorConstants = 1 KHyphenToMinusOnSelector KHyphenToMinusOnSelectorConstants = 0 KInequalityLigaturesOffSelector KHyphenToMinusOnSelectorConstants = 7 KInequalityLigaturesOnSelector KHyphenToMinusOnSelectorConstants = 6 KMathematicalGreekOffSelector KHyphenToMinusOnSelectorConstants = 11 KMathematicalGreekOnSelector KHyphenToMinusOnSelectorConstants = 10 KSlashToDivideOffSelector KHyphenToMinusOnSelectorConstants = 5 KSlashToDivideOnSelector KHyphenToMinusOnSelectorConstants = 4 )
func (KHyphenToMinusOnSelectorConstants) String ¶
func (e KHyphenToMinusOnSelectorConstants) String() string
type KHyphensToEmDashOnSelectorConstants ¶
type KHyphensToEmDashOnSelectorConstants uint32
const ( KFormInterrobangOffSelector KHyphensToEmDashOnSelectorConstants = 7 KFormInterrobangOnSelector KHyphensToEmDashOnSelectorConstants = 6 KHyphenToEnDashOffSelector KHyphensToEmDashOnSelectorConstants = 3 KHyphenToEnDashOnSelector KHyphensToEmDashOnSelectorConstants = 2 KHyphensToEmDashOffSelector KHyphensToEmDashOnSelectorConstants = 1 KHyphensToEmDashOnSelector KHyphensToEmDashOnSelectorConstants = 0 KPeriodsToEllipsisOffSelector KHyphensToEmDashOnSelectorConstants = 11 KPeriodsToEllipsisOnSelector KHyphensToEmDashOnSelectorConstants = 10 KSlashedZeroOffSelector KHyphensToEmDashOnSelectorConstants = 5 KSlashedZeroOnSelector KHyphensToEmDashOnSelectorConstants = 4 KSmartQuotesOffSelector KHyphensToEmDashOnSelectorConstants = 9 KSmartQuotesOnSelector KHyphensToEmDashOnSelectorConstants = 8 )
func (KHyphensToEmDashOnSelectorConstants) String ¶
func (e KHyphensToEmDashOnSelectorConstants) String() string
type KJUS ¶
type KJUS uint32
const ( KJUSTCurrentVersion KJUS = 0x10000 KJUSTStandardFormat KJUS = 0 KJUSTTag KJUS = 0x6a757374 KJUSTnoGlyphcode KJUS = 0xffff KJUSTpcConditionalAddAction KJUS = 2 KJUSTpcDecompositionAction KJUS = 0 KJUSTpcDuctilityAction KJUS = 4 KJUSTpcGlyphRepeatAddAction KJUS = 5 KJUSTpcGlyphStretchAction KJUS = 3 KJUSTpcUnconditionalAddAction KJUS = 1 )
type KJUSTKashidaPriorityConstants ¶
type KJUSTKashidaPriorityConstants uint32
const ( KJUSTKashidaPriority KJUSTKashidaPriorityConstants = 0 KJUSTLetterPriority KJUSTKashidaPriorityConstants = 2 KJUSTNullPriority KJUSTKashidaPriorityConstants = 3 KJUSTPriorityCount KJUSTKashidaPriorityConstants = 4 KJUSTSpacePriority KJUSTKashidaPriorityConstants = 1 )
func (KJUSTKashidaPriorityConstants) String ¶
func (e KJUSTKashidaPriorityConstants) String() string
type KJUSTOverridePriorityConstants ¶
type KJUSTOverridePriorityConstants uint32
const ( KJUSTOverrideLimits KJUSTOverridePriorityConstants = 0x4000 KJUSTOverridePriority KJUSTOverridePriorityConstants = 0x8000 KJUSTOverrideUnlimited KJUSTOverridePriorityConstants = 0x2000 KJUSTPriorityMask KJUSTOverridePriorityConstants = 0x3 KJUSTUnlimited KJUSTOverridePriorityConstants = 0x1000 )
func (KJUSTOverridePriorityConstants) String ¶
func (e KJUSTOverridePriorityConstants) String() string
type KKERNLineStartConstants ¶
type KKERNLineStartConstants uint32
const ( KKERNCrossStreamResetNote KKERNLineStartConstants = 2 KKERNLineEndKerning KKERNLineStartConstants = 0x2 KKERNLineStart KKERNLineStartConstants = 0x1 KKERNNoCrossKerning KKERNLineStartConstants = 0x4 KKERNNoStakeNote KKERNLineStartConstants = 1 KKERNNotApplied KKERNLineStartConstants = 0x1 KKERNNotesRequested KKERNLineStartConstants = 0x8 )
func (KKERNLineStartConstants) String ¶
func (e KKERNLineStartConstants) String() string
type KKERNOrderedListConstants ¶
type KKERNOrderedListConstants uint32
const ( KKERNIndexArray KKERNOrderedListConstants = 3 KKERNOrderedList KKERNOrderedListConstants = 0 KKERNSimpleArray KKERNOrderedListConstants = 2 KKERNStateTable KKERNOrderedListConstants = 1 )
func (KKERNOrderedListConstants) String ¶
func (e KKERNOrderedListConstants) String() string
type KKERNTagConstants ¶
type KKERNTagConstants uint32
const ( KKERNCrossStream KKERNTagConstants = 0x4000 KKERNCurrentVersion KKERNTagConstants = 0x10000 KKERNFormatMask KKERNTagConstants = 0xff KKERNResetCrossStream KKERNTagConstants = 0x8000 KKERNTag KKERNTagConstants = 0x6b65726e KKERNUnusedBits KKERNTagConstants = 0x1f00 KKERNVariation KKERNTagConstants = 0x2000 KKERNVertical KKERNTagConstants = 0x8000 )
func (KKERNTagConstants) String ¶
func (e KKERNTagConstants) String() string
type KKERXActionTypeMaskConstants ¶
type KKERXActionTypeMaskConstants uint32
const ( KKERXActionOffsetMask KKERXActionTypeMaskConstants = 0xffffff KKERXActionTypeAnchorPoints KKERXActionTypeMaskConstants = 1073741824 KKERXActionTypeControlPoints KKERXActionTypeMaskConstants = 0 KKERXActionTypeCoordinates KKERXActionTypeMaskConstants = 2147483648 KKERXActionTypeMask KKERXActionTypeMaskConstants = 3221225472 KKERXUnusedFlags KKERXActionTypeMaskConstants = 0x3f000000 )
func (KKERXActionTypeMaskConstants) String ¶
func (e KKERXActionTypeMaskConstants) String() string
type KKERXLineStartConstants ¶
type KKERXLineStartConstants uint32
const ( KKERXCrossStreamResetNote KKERXLineStartConstants = 2 KKERXLineEndKerning KKERXLineStartConstants = 0x2 KKERXLineStart KKERXLineStartConstants = 0x1 KKERXNoCrossKerning KKERXLineStartConstants = 0x4 KKERXNoStakeNote KKERXLineStartConstants = 1 KKERXNotApplied KKERXLineStartConstants = 0x1 KKERXNotesRequested KKERXLineStartConstants = 0x8 )
func (KKERXLineStartConstants) String ¶
func (e KKERXLineStartConstants) String() string
type KKERXOrderedListConstants ¶
type KKERXOrderedListConstants uint32
const ( KKERXControlPoint KKERXOrderedListConstants = 4 KKERXIndexArray KKERXOrderedListConstants = 6 KKERXOrderedList KKERXOrderedListConstants = 0 KKERXSimpleArray KKERXOrderedListConstants = 2 KKERXStateTable KKERXOrderedListConstants = 1 )
func (KKERXOrderedListConstants) String ¶
func (e KKERXOrderedListConstants) String() string
type KKERXTagConstants ¶
type KKERXTagConstants int32
const ( KKERXCrossStream KKERXTagConstants = 0x40000000 KKERXCurrentVersion KKERXTagConstants = 0x20000 KKERXDescending KKERXTagConstants = 0x10000000 KKERXFormatMask KKERXTagConstants = 0xff KKERXResetCrossStream KKERXTagConstants = 0x8000 KKERXTag KKERXTagConstants = 0x6b657278 KKERXUnusedBits KKERXTagConstants = 0xfffff00 KKERXVariation KKERXTagConstants = 0x20000000 KKERXVertical KKERXTagConstants = -2147483648 )
func (KKERXTagConstants) String ¶
func (e KKERXTagConstants) String() string
type KLinguisticRearrangement ¶
type KLinguisticRearrangement uint32
const ( KLinguisticRearrangementOffSelector KLinguisticRearrangement = 1 KLinguisticRearrangementOnSelector KLinguisticRearrangement = 0 )
func (KLinguisticRearrangement) String ¶
func (e KLinguisticRearrangement) String() string
type KLowerCaseNumbersSelectorConstants ¶
type KLowerCaseNumbersSelectorConstants uint32
const ( KLowerCaseNumbersSelector KLowerCaseNumbersSelectorConstants = 0 KUpperCaseNumbersSelector KLowerCaseNumbersSelectorConstants = 1 )
func (KLowerCaseNumbersSelectorConstants) String ¶
func (e KLowerCaseNumbersSelectorConstants) String() string
type KMOR ¶
type KMOR int32
const ( KMORTContextualType KMOR = 1 KMORTCoverDescending KMOR = 0x4000 KMORTCoverIgnoreVertical KMOR = 0x2000 KMORTCoverTypeMask KMOR = 0xf KMORTCoverVertical KMOR = 0x8000 KMORTCurrInsertBefore KMOR = 0x800 KMORTCurrInsertCountMask KMOR = 0x3e0 KMORTCurrInsertCountShift KMOR = 5 KMORTCurrInsertKashidaLike KMOR = 0x2000 KMORTCurrJustTableCountMask KMOR = 0x7f KMORTCurrJustTableCountShift KMOR = 0 KMORTCurrentVersion KMOR = 0x10000 KMORTDoInsertionsBefore KMOR = 0x80 KMORTInsertionType KMOR = 5 KMORTInsertionsCountMask KMOR = 0x3f KMORTIsSplitVowelPiece KMOR = 0x40 KMORTLigFormOffsetMask KMOR = 0x3fffffff KMORTLigFormOffsetShift KMOR = 2 KMORTLigLastAction KMOR = -2147483648 KMORTLigStoreLigature KMOR = 0x40000000 KMORTLigatureType KMOR = 2 KMORTMarkInsertBefore KMOR = 0x400 KMORTMarkInsertCountMask KMOR = 0x1f KMORTMarkInsertCountShift KMOR = 0 KMORTMarkInsertKashidaLike KMOR = 0x1000 KMORTMarkJustTableCountMask KMOR = 0x3f80 KMORTMarkJustTableCountShift KMOR = 7 KMORTRearrangementType KMOR = 0 KMORTSwashType KMOR = 4 KMORTTag KMOR = 0x6d6f7274 KMORTraCDx KMOR = 6 KMORTraCDxA KMOR = 8 KMORTraCDxAB KMOR = 12 KMORTraCDxBA KMOR = 13 KMORTraDCx KMOR = 7 KMORTraDCxA KMOR = 9 KMORTraDCxAB KMOR = 14 KMORTraDCxBA KMOR = 15 KMORTraDx KMOR = 2 KMORTraDxA KMOR = 3 KMORTraDxAB KMOR = 10 KMORTraDxBA KMOR = 11 KMORTraNoAction KMOR = 0 KMORTraxA KMOR = 1 KMORTraxAB KMOR = 4 KMORTraxBA KMOR = 5 )
type KMonospacedNumbersSelectorConstants ¶
type KMonospacedNumbersSelectorConstants uint32
const ( KMonospacedNumbersSelector KMonospacedNumbersSelectorConstants = 0 KProportionalNumbersSelector KMonospacedNumbersSelectorConstants = 1 KQuarterWidthNumbersSelector KMonospacedNumbersSelectorConstants = 3 KThirdWidthNumbersSelector KMonospacedNumbersSelectorConstants = 2 )
func (KMonospacedNumbersSelectorConstants) String ¶
func (e KMonospacedNumbersSelectorConstants) String() string
type KNoAnnotationSelectorConstants ¶
type KNoAnnotationSelectorConstants uint32
const ( KBoxAnnotationSelector KNoAnnotationSelectorConstants = 1 KCircleAnnotationSelector KNoAnnotationSelectorConstants = 3 KDiamondAnnotationSelector KNoAnnotationSelectorConstants = 8 KInvertedBoxAnnotationSelector KNoAnnotationSelectorConstants = 9 KInvertedCircleAnnotationSelector KNoAnnotationSelectorConstants = 4 KInvertedRoundedBoxAnnotationSelector KNoAnnotationSelectorConstants = 10 KNoAnnotationSelector KNoAnnotationSelectorConstants = 0 KParenthesisAnnotationSelector KNoAnnotationSelectorConstants = 5 KPeriodAnnotationSelector KNoAnnotationSelectorConstants = 6 KRomanNumeralAnnotationSelector KNoAnnotationSelectorConstants = 7 KRoundedBoxAnnotationSelector KNoAnnotationSelectorConstants = 2 )
func (KNoAnnotationSelectorConstants) String ¶
func (e KNoAnnotationSelectorConstants) String() string
type KNoCJKItalicRomanSelectorConstants ¶
type KNoCJKItalicRomanSelectorConstants uint32
const ( KCJKItalicRomanOffSelector KNoCJKItalicRomanSelectorConstants = 3 KCJKItalicRomanOnSelector KNoCJKItalicRomanSelectorConstants = 2 KCJKItalicRomanSelector KNoCJKItalicRomanSelectorConstants = 1 KNoCJKItalicRomanSelector KNoCJKItalicRomanSelectorConstants = 0 )
func (KNoCJKItalicRomanSelectorConstants) String ¶
func (e KNoCJKItalicRomanSelectorConstants) String() string
type KNoCJKSymbolAlternativesSelectorConstants ¶
type KNoCJKSymbolAlternativesSelectorConstants uint32
const ( KCJKSymbolAltFiveSelector KNoCJKSymbolAlternativesSelectorConstants = 5 KCJKSymbolAltFourSelector KNoCJKSymbolAlternativesSelectorConstants = 4 KCJKSymbolAltOneSelector KNoCJKSymbolAlternativesSelectorConstants = 1 KCJKSymbolAltThreeSelector KNoCJKSymbolAlternativesSelectorConstants = 3 KCJKSymbolAltTwoSelector KNoCJKSymbolAlternativesSelectorConstants = 2 KNoCJKSymbolAlternativesSelector KNoCJKSymbolAlternativesSelectorConstants = 0 )
func (KNoCJKSymbolAlternativesSelectorConstants) String ¶
func (e KNoCJKSymbolAlternativesSelectorConstants) String() string
type KNoFractionsSelectorConstants ¶
type KNoFractionsSelectorConstants uint32
const ( KDiagonalFractionsSelector KNoFractionsSelectorConstants = 2 KNoFractionsSelector KNoFractionsSelectorConstants = 0 KVerticalFractionsSelector KNoFractionsSelectorConstants = 1 )
func (KNoFractionsSelectorConstants) String ¶
func (e KNoFractionsSelectorConstants) String() string
type KNoIdeographicAlternativesSelectorConstants ¶
type KNoIdeographicAlternativesSelectorConstants uint32
const ( KIdeographicAltFiveSelector KNoIdeographicAlternativesSelectorConstants = 5 KIdeographicAltFourSelector KNoIdeographicAlternativesSelectorConstants = 4 KIdeographicAltOneSelector KNoIdeographicAlternativesSelectorConstants = 1 KIdeographicAltThreeSelector KNoIdeographicAlternativesSelectorConstants = 3 KIdeographicAltTwoSelector KNoIdeographicAlternativesSelectorConstants = 2 KNoIdeographicAlternativesSelector KNoIdeographicAlternativesSelectorConstants = 0 )
func (KNoIdeographicAlternativesSelectorConstants) String ¶
func (e KNoIdeographicAlternativesSelectorConstants) String() string
type KNoOrnamentsSelectorConstants ¶
type KNoOrnamentsSelectorConstants uint32
const ( KDecorativeBordersSelector KNoOrnamentsSelectorConstants = 4 KDingbatsSelector KNoOrnamentsSelectorConstants = 1 KFleuronsSelector KNoOrnamentsSelectorConstants = 3 KInternationalSymbolsSelector KNoOrnamentsSelectorConstants = 5 KMathSymbolsSelector KNoOrnamentsSelectorConstants = 6 KNoOrnamentsSelector KNoOrnamentsSelectorConstants = 0 KPiCharactersSelector KNoOrnamentsSelectorConstants = 2 )
func (KNoOrnamentsSelectorConstants) String ¶
func (e KNoOrnamentsSelectorConstants) String() string
type KNoRubyKanaSelectorConstants ¶
type KNoRubyKanaSelectorConstants uint32
const ( KNoRubyKanaSelector KNoRubyKanaSelectorConstants = 0 KRubyKanaOffSelector KNoRubyKanaSelectorConstants = 3 KRubyKanaOnSelector KNoRubyKanaSelectorConstants = 2 KRubyKanaSelector KNoRubyKanaSelectorConstants = 1 )
func (KNoRubyKanaSelectorConstants) String ¶
func (e KNoRubyKanaSelectorConstants) String() string
type KNoStyleOptionsSelectorConstants ¶
type KNoStyleOptionsSelectorConstants uint32
const ( KDisplayTextSelector KNoStyleOptionsSelectorConstants = 1 KEngravedTextSelector KNoStyleOptionsSelectorConstants = 2 KIlluminatedCapsSelector KNoStyleOptionsSelectorConstants = 3 KNoStyleOptionsSelector KNoStyleOptionsSelectorConstants = 0 KTallCapsSelector KNoStyleOptionsSelectorConstants = 5 KTitlingCapsSelector KNoStyleOptionsSelectorConstants = 4 )
func (KNoStyleOptionsSelectorConstants) String ¶
func (e KNoStyleOptionsSelectorConstants) String() string
type KNoStylisticAlternatesSelectorConstants ¶
type KNoStylisticAlternatesSelectorConstants uint32
const ( KNoStylisticAlternatesSelector KNoStylisticAlternatesSelectorConstants = 0 KStylisticAltEightOffSelector KNoStylisticAlternatesSelectorConstants = 17 KStylisticAltEightOnSelector KNoStylisticAlternatesSelectorConstants = 16 KStylisticAltEighteenOffSelector KNoStylisticAlternatesSelectorConstants = 37 KStylisticAltEighteenOnSelector KNoStylisticAlternatesSelectorConstants = 36 KStylisticAltElevenOffSelector KNoStylisticAlternatesSelectorConstants = 23 KStylisticAltElevenOnSelector KNoStylisticAlternatesSelectorConstants = 22 KStylisticAltFifteenOffSelector KNoStylisticAlternatesSelectorConstants = 31 KStylisticAltFifteenOnSelector KNoStylisticAlternatesSelectorConstants = 30 KStylisticAltFiveOffSelector KNoStylisticAlternatesSelectorConstants = 11 KStylisticAltFiveOnSelector KNoStylisticAlternatesSelectorConstants = 10 KStylisticAltFourOffSelector KNoStylisticAlternatesSelectorConstants = 9 KStylisticAltFourOnSelector KNoStylisticAlternatesSelectorConstants = 8 KStylisticAltFourteenOffSelector KNoStylisticAlternatesSelectorConstants = 29 KStylisticAltFourteenOnSelector KNoStylisticAlternatesSelectorConstants = 28 KStylisticAltNineOffSelector KNoStylisticAlternatesSelectorConstants = 19 KStylisticAltNineOnSelector KNoStylisticAlternatesSelectorConstants = 18 KStylisticAltNineteenOffSelector KNoStylisticAlternatesSelectorConstants = 39 KStylisticAltNineteenOnSelector KNoStylisticAlternatesSelectorConstants = 38 KStylisticAltOneOffSelector KNoStylisticAlternatesSelectorConstants = 3 KStylisticAltOneOnSelector KNoStylisticAlternatesSelectorConstants = 2 KStylisticAltSevenOffSelector KNoStylisticAlternatesSelectorConstants = 15 KStylisticAltSevenOnSelector KNoStylisticAlternatesSelectorConstants = 14 KStylisticAltSeventeenOffSelector KNoStylisticAlternatesSelectorConstants = 35 KStylisticAltSeventeenOnSelector KNoStylisticAlternatesSelectorConstants = 34 KStylisticAltSixOffSelector KNoStylisticAlternatesSelectorConstants = 13 KStylisticAltSixOnSelector KNoStylisticAlternatesSelectorConstants = 12 KStylisticAltSixteenOffSelector KNoStylisticAlternatesSelectorConstants = 33 KStylisticAltSixteenOnSelector KNoStylisticAlternatesSelectorConstants = 32 KStylisticAltTenOffSelector KNoStylisticAlternatesSelectorConstants = 21 KStylisticAltTenOnSelector KNoStylisticAlternatesSelectorConstants = 20 KStylisticAltThirteenOffSelector KNoStylisticAlternatesSelectorConstants = 27 KStylisticAltThirteenOnSelector KNoStylisticAlternatesSelectorConstants = 26 KStylisticAltThreeOffSelector KNoStylisticAlternatesSelectorConstants = 7 KStylisticAltThreeOnSelector KNoStylisticAlternatesSelectorConstants = 6 KStylisticAltTwelveOffSelector KNoStylisticAlternatesSelectorConstants = 25 KStylisticAltTwelveOnSelector KNoStylisticAlternatesSelectorConstants = 24 KStylisticAltTwentyOffSelector KNoStylisticAlternatesSelectorConstants = 41 KStylisticAltTwentyOnSelector KNoStylisticAlternatesSelectorConstants = 40 KStylisticAltTwoOffSelector KNoStylisticAlternatesSelectorConstants = 5 KStylisticAltTwoOnSelector KNoStylisticAlternatesSelectorConstants = 4 )
func (KNoStylisticAlternatesSelectorConstants) String ¶
func (e KNoStylisticAlternatesSelectorConstants) String() string
type KNoTransliterationSelectorConstants ¶
type KNoTransliterationSelectorConstants uint32
const ( KHanjaToHangulAltOneSelector KNoTransliterationSelectorConstants = 7 KHanjaToHangulAltThreeSelector KNoTransliterationSelectorConstants = 9 KHanjaToHangulAltTwoSelector KNoTransliterationSelectorConstants = 8 KHanjaToHangulSelector KNoTransliterationSelectorConstants = 1 KHiraganaToKatakanaSelector KNoTransliterationSelectorConstants = 2 KKanaToRomanizationSelector KNoTransliterationSelectorConstants = 4 KKatakanaToHiraganaSelector KNoTransliterationSelectorConstants = 3 KNoTransliterationSelector KNoTransliterationSelectorConstants = 0 KRomanizationToHiraganaSelector KNoTransliterationSelectorConstants = 5 KRomanizationToKatakanaSelector KNoTransliterationSelectorConstants = 6 )
func (KNoTransliterationSelectorConstants) String ¶
func (e KNoTransliterationSelectorConstants) String() string
type KNormalPositionSelectorConstants ¶
type KNormalPositionSelectorConstants uint32
const ( KInferiorsSelector KNormalPositionSelectorConstants = 2 KNormalPositionSelector KNormalPositionSelectorConstants = 0 KOrdinalsSelector KNormalPositionSelectorConstants = 3 KScientificInferiorsSelector KNormalPositionSelectorConstants = 4 KSuperiorsSelector KNormalPositionSelectorConstants = 1 )
func (KNormalPositionSelectorConstants) String ¶
func (e KNormalPositionSelectorConstants) String() string
type KPROPLDirectionClassConstants ¶
type KPROPLDirectionClassConstants uint32
const ( KPROPALDirectionClass KPROPLDirectionClassConstants = 2 KPROPANDirectionClass KPROPLDirectionClassConstants = 6 KPROPBNDirectionClass KPROPLDirectionClassConstants = 19 KPROPCSDirectionClass KPROPLDirectionClassConstants = 7 KPROPENDirectionClass KPROPLDirectionClassConstants = 3 KPROPESDirectionClass KPROPLDirectionClassConstants = 4 KPROPETDirectionClass KPROPLDirectionClassConstants = 5 KPROPLDirectionClass KPROPLDirectionClassConstants = 0 KPROPLREDirectionClass KPROPLDirectionClassConstants = 13 KPROPLRODirectionClass KPROPLDirectionClassConstants = 14 KPROPNSMDirectionClass KPROPLDirectionClassConstants = 18 KPROPNumDirectionClasses KPROPLDirectionClassConstants = 20 KPROPONDirectionClass KPROPLDirectionClassConstants = 11 KPROPPDFDirectionClass KPROPLDirectionClassConstants = 17 KPROPPSDirectionClass KPROPLDirectionClassConstants = 8 KPROPRDirectionClass KPROPLDirectionClassConstants = 1 KPROPRLEDirectionClass KPROPLDirectionClassConstants = 15 KPROPRLODirectionClass KPROPLDirectionClassConstants = 16 KPROPSDirectionClass KPROPLDirectionClassConstants = 9 KPROPSENDirectionClass KPROPLDirectionClassConstants = 12 KPROPWSDirectionClass KPROPLDirectionClassConstants = 10 )
func (KPROPLDirectionClassConstants) String ¶
func (e KPROPLDirectionClassConstants) String() string
type KPROPTagConstants ¶
type KPROPTagConstants uint32
const ( KPROPCanHangLTMask KPROPTagConstants = 0x4000 KPROPCanHangRBMask KPROPTagConstants = 0x2000 KPROPCurrentVersion KPROPTagConstants = 0x30000 KPROPDirectionMask KPROPTagConstants = 0x1f KPROPIsFloaterMask KPROPTagConstants = 0x8000 KPROPPairOffsetMask KPROPTagConstants = 0xf00 KPROPPairOffsetShift KPROPTagConstants = 8 KPROPPairOffsetSign KPROPTagConstants = 7 KPROPRightConnectMask KPROPTagConstants = 0x80 KPROPTag KPROPTagConstants = 0x70726f70 KPROPUseRLPairMask KPROPTagConstants = 0x1000 KPROPZeroReserved KPROPTagConstants = 0x60 )
func (KPROPTagConstants) String ¶
func (e KPROPTagConstants) String() string
type KPreventOverlap ¶
type KPreventOverlap uint32
const ( KPreventOverlapOffSelector KPreventOverlap = 1 KPreventOverlapOnSelector KPreventOverlap = 0 )
func (KPreventOverlap) String ¶
func (e KPreventOverlap) String() string
type KProportionalTextSelectorConstants ¶
type KProportionalTextSelectorConstants uint32
const ( KAltHalfWidthTextSelector KProportionalTextSelectorConstants = 6 KAltProportionalTextSelector KProportionalTextSelectorConstants = 5 KHalfWidthTextSelector KProportionalTextSelectorConstants = 2 KMonospacedTextSelector KProportionalTextSelectorConstants = 1 KProportionalTextSelector KProportionalTextSelectorConstants = 0 KQuarterWidthTextSelector KProportionalTextSelectorConstants = 4 KThirdWidthTextSelector KProportionalTextSelectorConstants = 3 )
func (KProportionalTextSelectorConstants) String ¶
func (e KProportionalTextSelectorConstants) String() string
type KRequiredLigaturesOnSelectorConstants ¶
type KRequiredLigaturesOnSelectorConstants uint32
const ( KAbbrevSquaredLigaturesOffSelector KRequiredLigaturesOnSelectorConstants = 15 KAbbrevSquaredLigaturesOnSelector KRequiredLigaturesOnSelectorConstants = 14 KCommonLigaturesOffSelector KRequiredLigaturesOnSelectorConstants = 3 KCommonLigaturesOnSelector KRequiredLigaturesOnSelectorConstants = 2 KContextualLigaturesOffSelector KRequiredLigaturesOnSelectorConstants = 19 KContextualLigaturesOnSelector KRequiredLigaturesOnSelectorConstants = 18 KDiphthongLigaturesOffSelector KRequiredLigaturesOnSelectorConstants = 11 KDiphthongLigaturesOnSelector KRequiredLigaturesOnSelectorConstants = 10 KHistoricalLigaturesOffSelector KRequiredLigaturesOnSelectorConstants = 21 KHistoricalLigaturesOnSelector KRequiredLigaturesOnSelectorConstants = 20 KLogosOffSelector KRequiredLigaturesOnSelectorConstants = 7 KLogosOnSelector KRequiredLigaturesOnSelectorConstants = 6 KRareLigaturesOffSelector KRequiredLigaturesOnSelectorConstants = 5 KRareLigaturesOnSelector KRequiredLigaturesOnSelectorConstants = 4 KRebusPicturesOffSelector KRequiredLigaturesOnSelectorConstants = 9 KRebusPicturesOnSelector KRequiredLigaturesOnSelectorConstants = 8 KRequiredLigaturesOffSelector KRequiredLigaturesOnSelectorConstants = 1 KRequiredLigaturesOnSelector KRequiredLigaturesOnSelectorConstants = 0 KSquaredLigaturesOffSelector KRequiredLigaturesOnSelectorConstants = 13 KSquaredLigaturesOnSelector KRequiredLigaturesOnSelectorConstants = 12 KSymbolLigaturesOffSelector KRequiredLigaturesOnSelectorConstants = 17 KSymbolLigaturesOnSelector KRequiredLigaturesOnSelectorConstants = 16 )
func (KRequiredLigaturesOnSelectorConstants) String ¶
func (e KRequiredLigaturesOnSelectorConstants) String() string
type KSFNTLookup ¶
type KSFNTLookup uint32
const ( KSFNTLookupSegmentArray KSFNTLookup = 4 KSFNTLookupSegmentSingle KSFNTLookup = 2 KSFNTLookupSimpleArray KSFNTLookup = 0 KSFNTLookupSingleTable KSFNTLookup = 6 KSFNTLookupTrimmedArray KSFNTLookup = 8 KSFNTLookupVector KSFNTLookup = 10 )
func (KSFNTLookup) String ¶
func (e KSFNTLookup) String() string
type KShowDiacriticsSelectorConstants ¶
type KShowDiacriticsSelectorConstants uint32
const ( KDecomposeDiacriticsSelector KShowDiacriticsSelectorConstants = 2 KHideDiacriticsSelector KShowDiacriticsSelectorConstants = 1 KShowDiacriticsSelector KShowDiacriticsSelectorConstants = 0 )
func (KShowDiacriticsSelectorConstants) String ¶
func (e KShowDiacriticsSelectorConstants) String() string
type KSubstituteVerticalForms ¶
type KSubstituteVerticalForms uint32
const ( KSubstituteVerticalFormsOffSelector KSubstituteVerticalForms = 1 KSubstituteVerticalFormsOnSelector KSubstituteVerticalForms = 0 )
func (KSubstituteVerticalForms) String ¶
func (e KSubstituteVerticalForms) String() string
type KTraditionalCharactersSelectorConstants ¶
type KTraditionalCharactersSelectorConstants uint32
const ( KExpertCharactersSelector KTraditionalCharactersSelectorConstants = 10 KHojoCharactersSelector KTraditionalCharactersSelectorConstants = 12 KJIS1978CharactersSelector KTraditionalCharactersSelectorConstants = 2 KJIS1983CharactersSelector KTraditionalCharactersSelectorConstants = 3 KJIS1990CharactersSelector KTraditionalCharactersSelectorConstants = 4 KJIS2004CharactersSelector KTraditionalCharactersSelectorConstants = 11 KNLCCharactersSelector KTraditionalCharactersSelectorConstants = 13 KSimplifiedCharactersSelector KTraditionalCharactersSelectorConstants = 1 KTraditionalAltFiveSelector KTraditionalCharactersSelectorConstants = 9 KTraditionalAltFourSelector KTraditionalCharactersSelectorConstants = 8 KTraditionalAltOneSelector KTraditionalCharactersSelectorConstants = 5 KTraditionalAltThreeSelector KTraditionalCharactersSelectorConstants = 7 KTraditionalAltTwoSelector KTraditionalCharactersSelectorConstants = 6 KTraditionalCharactersSelector KTraditionalCharactersSelectorConstants = 0 KTraditionalNamesCharactersSelector KTraditionalCharactersSelectorConstants = 14 )
func (KTraditionalCharactersSelectorConstants) String ¶
func (e KTraditionalCharactersSelectorConstants) String() string
type KUnconnectedSelectorConstants ¶
type KUnconnectedSelectorConstants uint32
const ( KCursiveSelector KUnconnectedSelectorConstants = 2 KPartiallyConnectedSelector KUnconnectedSelectorConstants = 1 KUnconnectedSelector KUnconnectedSelectorConstants = 0 )
func (KUnconnectedSelectorConstants) String ¶
func (e KUnconnectedSelectorConstants) String() string
type KUpperAndLowerCaseSelectorConstants ¶
type KUpperAndLowerCaseSelectorConstants uint32
const ( KAllCapsSelector KUpperAndLowerCaseSelectorConstants = 1 KAllLowerCaseSelector KUpperAndLowerCaseSelectorConstants = 2 KInitialCapsAndSmallCapsSelector KUpperAndLowerCaseSelectorConstants = 5 KInitialCapsSelector KUpperAndLowerCaseSelectorConstants = 4 KSmallCapsSelector KUpperAndLowerCaseSelectorConstants = 3 KUpperAndLowerCaseSelector KUpperAndLowerCaseSelectorConstants = 0 )
func (KUpperAndLowerCaseSelectorConstants) String ¶
func (e KUpperAndLowerCaseSelectorConstants) String() string
type KWordInitialSwashesOnSelectorConstants ¶
type KWordInitialSwashesOnSelectorConstants uint32
const ( KLineFinalSwashesOffSelector KWordInitialSwashesOnSelectorConstants = 7 KLineFinalSwashesOnSelector KWordInitialSwashesOnSelectorConstants = 6 KLineInitialSwashesOffSelector KWordInitialSwashesOnSelectorConstants = 5 KLineInitialSwashesOnSelector KWordInitialSwashesOnSelectorConstants = 4 KNonFinalSwashesOffSelector KWordInitialSwashesOnSelectorConstants = 9 KNonFinalSwashesOnSelector KWordInitialSwashesOnSelectorConstants = 8 KWordFinalSwashesOffSelector KWordInitialSwashesOnSelectorConstants = 3 KWordFinalSwashesOnSelector KWordInitialSwashesOnSelectorConstants = 2 KWordInitialSwashesOffSelector KWordInitialSwashesOnSelectorConstants = 1 KWordInitialSwashesOnSelector KWordInitialSwashesOnSelectorConstants = 0 )
func (KWordInitialSwashesOnSelectorConstants) String ¶
func (e KWordInitialSwashesOnSelectorConstants) String() string
type KernArrayOffset ¶
type KernArrayOffset = uint16
See: https://developer.apple.com/documentation/CoreText/KernArrayOffset
type KernFormatSpecificHeader ¶
type KernFormatSpecificHeader [6]uint16
KernFormatSpecificHeader is a C union type.
func (*KernFormatSpecificHeader) IndexArray ¶
func (u *KernFormatSpecificHeader) IndexArray() *KernIndexArrayHeader
IndexArray returns the union interpreted as *KernIndexArrayHeader. The returned pointer aliases the receiver's memory.
func (*KernFormatSpecificHeader) OrderedList ¶
func (u *KernFormatSpecificHeader) OrderedList() *KernOrderedListHeader
OrderedList returns the union interpreted as *KernOrderedListHeader. The returned pointer aliases the receiver's memory.
func (*KernFormatSpecificHeader) SimpleArray ¶
func (u *KernFormatSpecificHeader) SimpleArray() *KernSimpleArrayHeader
SimpleArray returns the union interpreted as *KernSimpleArrayHeader. The returned pointer aliases the receiver's memory.
func (*KernFormatSpecificHeader) StateTable ¶
func (u *KernFormatSpecificHeader) StateTable() *KernStateHeader
StateTable returns the union interpreted as *KernStateHeader. The returned pointer aliases the receiver's memory.
type KernIndexArrayHeader ¶
type KernIndexArrayHeader struct {
GlyphCount uint16
KernValueCount uint8
LeftClassCount uint8
RightClassCount uint8
Flags uint8
KernValue [1]int16
LeftClass [1]uint8
RightClass [1]uint8
KernIndex [1]uint8
}
KernIndexArrayHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernIndexArrayHeader
type KernKerningPair ¶
KernKerningPair
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernKerningPair
type KernKerningValue ¶
type KernKerningValue = int16
See: https://developer.apple.com/documentation/CoreText/KernKerningValue
type KernOffsetTable ¶
type KernOffsetTable struct {
FirstGlyph uint16
NGlyphs uint16
OffsetTable [1]KernArrayOffset
}
KernOffsetTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernOffsetTable
type KernOffsetTablePtr ¶
type KernOffsetTablePtr = *KernOffsetTable
See: https://developer.apple.com/documentation/CoreText/KernOffsetTablePtr
type KernOrderedListEntry ¶
type KernOrderedListEntry struct {
Pair KernKerningPair
Value KernKerningValue
}
KernOrderedListEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernOrderedListEntry
type KernOrderedListEntryPtr ¶
type KernOrderedListEntryPtr = *KernOrderedListEntry
See: https://developer.apple.com/documentation/CoreText/KernOrderedListEntryPtr
type KernOrderedListHeader ¶
type KernOrderedListHeader struct {
NPairs uint16
SearchRange uint16
EntrySelector uint16
RangeShift uint16
Table [1]uint16
}
KernOrderedListHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernOrderedListHeader
type KernSimpleArrayHeader ¶
type KernSimpleArrayHeader struct {
RowWidth uint16
LeftOffsetTable uint16
RightOffsetTable uint16
TheArray KernArrayOffset
FirstTable [1]uint16
}
KernSimpleArrayHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernSimpleArrayHeader
type KernStateEntry ¶
KernStateEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernStateEntry
type KernStateHeader ¶
KernStateHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernStateHeader
type KernSubtableHeader ¶
type KernSubtableHeader struct {
// contains filtered or unexported fields
}
KernSubtableHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernSubtableHeader
func (*KernSubtableHeader) FsHeader ¶
func (s *KernSubtableHeader) FsHeader() KernFormatSpecificHeader
FsHeader returns the FsHeader field from the record's packed storage.
func (*KernSubtableHeader) Length ¶
func (s *KernSubtableHeader) Length() int32
Length returns the Length field from the record's packed storage.
func (*KernSubtableHeader) SetFsHeader ¶
func (s *KernSubtableHeader) SetFsHeader(v KernFormatSpecificHeader)
SetFsHeader updates the FsHeader field in the record's packed storage.
func (*KernSubtableHeader) SetLength ¶
func (s *KernSubtableHeader) SetLength(v int32)
SetLength updates the Length field in the record's packed storage.
func (*KernSubtableHeader) SetStInfo ¶
func (s *KernSubtableHeader) SetStInfo(v KernSubtableInfo)
SetStInfo updates the StInfo field in the record's packed storage.
func (*KernSubtableHeader) SetTupleIndex ¶
func (s *KernSubtableHeader) SetTupleIndex(v int16)
SetTupleIndex updates the TupleIndex field in the record's packed storage.
func (*KernSubtableHeader) StInfo ¶
func (s *KernSubtableHeader) StInfo() KernSubtableInfo
StInfo returns the StInfo field from the record's packed storage.
func (*KernSubtableHeader) TupleIndex ¶
func (s *KernSubtableHeader) TupleIndex() int16
TupleIndex returns the TupleIndex field from the record's packed storage.
type KernSubtableHeaderPtr ¶
type KernSubtableHeaderPtr = *KernSubtableHeader
See: https://developer.apple.com/documentation/CoreText/KernSubtableHeaderPtr
type KernSubtableInfo ¶
type KernSubtableInfo = uint16
See: https://developer.apple.com/documentation/CoreText/KernSubtableInfo
type KernTableFormat ¶
type KernTableFormat = uint8
See: https://developer.apple.com/documentation/CoreText/KernTableFormat
type KernTableHeader ¶
type KernTableHeader struct {
// contains filtered or unexported fields
}
KernTableHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernTableHeader
func (*KernTableHeader) FirstSubtable ¶
func (s *KernTableHeader) FirstSubtable() [1]uint16
FirstSubtable returns the FirstSubtable field from the record's packed storage.
func (*KernTableHeader) NTables ¶
func (s *KernTableHeader) NTables() int32
NTables returns the NTables field from the record's packed storage.
func (*KernTableHeader) SetFirstSubtable ¶
func (s *KernTableHeader) SetFirstSubtable(v [1]uint16)
SetFirstSubtable updates the FirstSubtable field in the record's packed storage.
func (*KernTableHeader) SetNTables ¶
func (s *KernTableHeader) SetNTables(v int32)
SetNTables updates the NTables field in the record's packed storage.
func (*KernTableHeader) SetVersion ¶
func (s *KernTableHeader) SetVersion(v int32)
SetVersion updates the Version field in the record's packed storage.
func (*KernTableHeader) Version ¶
func (s *KernTableHeader) Version() int32
Version returns the Version field from the record's packed storage.
type KernTableHeaderHandle ¶
type KernTableHeaderHandle = *KernTableHeaderPtr
See: https://developer.apple.com/documentation/CoreText/KernTableHeaderHandle
type KernTableHeaderPtr ¶
type KernTableHeaderPtr = *KernTableHeader
See: https://developer.apple.com/documentation/CoreText/KernTableHeaderPtr
type KernVersion0Header ¶
KernVersion0Header
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernVersion0Header
type KernVersion0SubtableHeader ¶
type KernVersion0SubtableHeader struct {
Version uint16
Length uint16
StInfo KernSubtableInfo
FsHeader KernFormatSpecificHeader
}
KernVersion0SubtableHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KernVersion0SubtableHeader
type KerxAnchorPointAction ¶
KerxAnchorPointAction
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxAnchorPointAction
type KerxArrayOffset ¶
type KerxArrayOffset = uint32
See: https://developer.apple.com/documentation/CoreText/KerxArrayOffset
type KerxControlPointAction ¶
KerxControlPointAction
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxControlPointAction
type KerxControlPointEntry ¶
KerxControlPointEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxControlPointEntry
type KerxControlPointHeader ¶
type KerxControlPointHeader struct {
// contains filtered or unexported fields
}
KerxControlPointHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxControlPointHeader
func (*KerxControlPointHeader) FirstTable ¶
func (s *KerxControlPointHeader) FirstTable() [1]uint8
FirstTable returns the FirstTable field from the record's packed storage.
func (*KerxControlPointHeader) Flags ¶
func (s *KerxControlPointHeader) Flags() uint32
Flags returns the Flags field from the record's packed storage.
func (*KerxControlPointHeader) Header ¶
func (s *KerxControlPointHeader) Header() STXHeader
Header returns the Header field from the record's packed storage.
func (*KerxControlPointHeader) SetFirstTable ¶
func (s *KerxControlPointHeader) SetFirstTable(v [1]uint8)
SetFirstTable updates the FirstTable field in the record's packed storage.
func (*KerxControlPointHeader) SetFlags ¶
func (s *KerxControlPointHeader) SetFlags(v uint32)
SetFlags updates the Flags field in the record's packed storage.
func (*KerxControlPointHeader) SetHeader ¶
func (s *KerxControlPointHeader) SetHeader(v STXHeader)
SetHeader updates the Header field in the record's packed storage.
type KerxCoordinateAction ¶
KerxCoordinateAction
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxCoordinateAction
type KerxFormatSpecificHeader ¶
type KerxFormatSpecificHeader [12]uint16
KerxFormatSpecificHeader is a C union type.
func (*KerxFormatSpecificHeader) ControlPoint ¶
func (u *KerxFormatSpecificHeader) ControlPoint() *KerxControlPointHeader
ControlPoint returns the union interpreted as *KerxControlPointHeader. The returned pointer aliases the receiver's memory.
func (*KerxFormatSpecificHeader) IndexArray ¶
func (u *KerxFormatSpecificHeader) IndexArray() *KerxIndexArrayHeader
IndexArray returns the union interpreted as *KerxIndexArrayHeader. The returned pointer aliases the receiver's memory.
func (*KerxFormatSpecificHeader) OrderedList ¶
func (u *KerxFormatSpecificHeader) OrderedList() *KerxOrderedListHeader
OrderedList returns the union interpreted as *KerxOrderedListHeader. The returned pointer aliases the receiver's memory.
func (*KerxFormatSpecificHeader) SimpleArray ¶
func (u *KerxFormatSpecificHeader) SimpleArray() *KerxSimpleArrayHeader
SimpleArray returns the union interpreted as *KerxSimpleArrayHeader. The returned pointer aliases the receiver's memory.
func (*KerxFormatSpecificHeader) StateTable ¶
func (u *KerxFormatSpecificHeader) StateTable() *KerxStateHeader
StateTable returns the union interpreted as *KerxStateHeader. The returned pointer aliases the receiver's memory.
type KerxIndexArrayHeader ¶
type KerxIndexArrayHeader struct {
// contains filtered or unexported fields
}
KerxIndexArrayHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxIndexArrayHeader
func (*KerxIndexArrayHeader) ColumnCount ¶
func (s *KerxIndexArrayHeader) ColumnCount() uint16
ColumnCount returns the ColumnCount field from the record's packed storage.
func (*KerxIndexArrayHeader) ColumnIndexTableOffset ¶
func (s *KerxIndexArrayHeader) ColumnIndexTableOffset() uint32
ColumnIndexTableOffset returns the ColumnIndexTableOffset field from the record's packed storage.
func (*KerxIndexArrayHeader) Flags ¶
func (s *KerxIndexArrayHeader) Flags() uint32
Flags returns the Flags field from the record's packed storage.
func (*KerxIndexArrayHeader) KerningArrayOffset ¶
func (s *KerxIndexArrayHeader) KerningArrayOffset() uint32
KerningArrayOffset returns the KerningArrayOffset field from the record's packed storage.
func (*KerxIndexArrayHeader) KerningVectorOffset ¶
func (s *KerxIndexArrayHeader) KerningVectorOffset() uint32
KerningVectorOffset returns the KerningVectorOffset field from the record's packed storage.
func (*KerxIndexArrayHeader) RowCount ¶
func (s *KerxIndexArrayHeader) RowCount() uint16
RowCount returns the RowCount field from the record's packed storage.
func (*KerxIndexArrayHeader) RowIndexTableOffset ¶
func (s *KerxIndexArrayHeader) RowIndexTableOffset() uint32
RowIndexTableOffset returns the RowIndexTableOffset field from the record's packed storage.
func (*KerxIndexArrayHeader) SetColumnCount ¶
func (s *KerxIndexArrayHeader) SetColumnCount(v uint16)
SetColumnCount updates the ColumnCount field in the record's packed storage.
func (*KerxIndexArrayHeader) SetColumnIndexTableOffset ¶
func (s *KerxIndexArrayHeader) SetColumnIndexTableOffset(v uint32)
SetColumnIndexTableOffset updates the ColumnIndexTableOffset field in the record's packed storage.
func (*KerxIndexArrayHeader) SetFlags ¶
func (s *KerxIndexArrayHeader) SetFlags(v uint32)
SetFlags updates the Flags field in the record's packed storage.
func (*KerxIndexArrayHeader) SetKerningArrayOffset ¶
func (s *KerxIndexArrayHeader) SetKerningArrayOffset(v uint32)
SetKerningArrayOffset updates the KerningArrayOffset field in the record's packed storage.
func (*KerxIndexArrayHeader) SetKerningVectorOffset ¶
func (s *KerxIndexArrayHeader) SetKerningVectorOffset(v uint32)
SetKerningVectorOffset updates the KerningVectorOffset field in the record's packed storage.
func (*KerxIndexArrayHeader) SetRowCount ¶
func (s *KerxIndexArrayHeader) SetRowCount(v uint16)
SetRowCount updates the RowCount field in the record's packed storage.
func (*KerxIndexArrayHeader) SetRowIndexTableOffset ¶
func (s *KerxIndexArrayHeader) SetRowIndexTableOffset(v uint32)
SetRowIndexTableOffset updates the RowIndexTableOffset field in the record's packed storage.
type KerxKerningPair ¶
KerxKerningPair
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxKerningPair
type KerxOrderedListEntry ¶
type KerxOrderedListEntry struct {
Pair KerxKerningPair
Value KernKerningValue
}
KerxOrderedListEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxOrderedListEntry
type KerxOrderedListEntryPtr ¶
type KerxOrderedListEntryPtr = *KerxOrderedListEntry
See: https://developer.apple.com/documentation/CoreText/KerxOrderedListEntryPtr
type KerxOrderedListHeader ¶
type KerxOrderedListHeader struct {
// contains filtered or unexported fields
}
KerxOrderedListHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxOrderedListHeader
func (*KerxOrderedListHeader) EntrySelector ¶
func (s *KerxOrderedListHeader) EntrySelector() uint32
EntrySelector returns the EntrySelector field from the record's packed storage.
func (*KerxOrderedListHeader) NPairs ¶
func (s *KerxOrderedListHeader) NPairs() uint32
NPairs returns the NPairs field from the record's packed storage.
func (*KerxOrderedListHeader) RangeShift ¶
func (s *KerxOrderedListHeader) RangeShift() uint32
RangeShift returns the RangeShift field from the record's packed storage.
func (*KerxOrderedListHeader) SearchRange ¶
func (s *KerxOrderedListHeader) SearchRange() uint32
SearchRange returns the SearchRange field from the record's packed storage.
func (*KerxOrderedListHeader) SetEntrySelector ¶
func (s *KerxOrderedListHeader) SetEntrySelector(v uint32)
SetEntrySelector updates the EntrySelector field in the record's packed storage.
func (*KerxOrderedListHeader) SetNPairs ¶
func (s *KerxOrderedListHeader) SetNPairs(v uint32)
SetNPairs updates the NPairs field in the record's packed storage.
func (*KerxOrderedListHeader) SetRangeShift ¶
func (s *KerxOrderedListHeader) SetRangeShift(v uint32)
SetRangeShift updates the RangeShift field in the record's packed storage.
func (*KerxOrderedListHeader) SetSearchRange ¶
func (s *KerxOrderedListHeader) SetSearchRange(v uint32)
SetSearchRange updates the SearchRange field in the record's packed storage.
func (*KerxOrderedListHeader) SetTable ¶
func (s *KerxOrderedListHeader) SetTable(v [1]uint32)
SetTable updates the Table field in the record's packed storage.
func (*KerxOrderedListHeader) Table ¶
func (s *KerxOrderedListHeader) Table() [1]uint32
Table returns the Table field from the record's packed storage.
type KerxSimpleArrayHeader ¶
type KerxSimpleArrayHeader struct {
// contains filtered or unexported fields
}
KerxSimpleArrayHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxSimpleArrayHeader
func (*KerxSimpleArrayHeader) FirstTable ¶
func (s *KerxSimpleArrayHeader) FirstTable() [1]uint32
FirstTable returns the FirstTable field from the record's packed storage.
func (*KerxSimpleArrayHeader) LeftOffsetTable ¶
func (s *KerxSimpleArrayHeader) LeftOffsetTable() uint32
LeftOffsetTable returns the LeftOffsetTable field from the record's packed storage.
func (*KerxSimpleArrayHeader) RightOffsetTable ¶
func (s *KerxSimpleArrayHeader) RightOffsetTable() uint32
RightOffsetTable returns the RightOffsetTable field from the record's packed storage.
func (*KerxSimpleArrayHeader) RowWidth ¶
func (s *KerxSimpleArrayHeader) RowWidth() uint32
RowWidth returns the RowWidth field from the record's packed storage.
func (*KerxSimpleArrayHeader) SetFirstTable ¶
func (s *KerxSimpleArrayHeader) SetFirstTable(v [1]uint32)
SetFirstTable updates the FirstTable field in the record's packed storage.
func (*KerxSimpleArrayHeader) SetLeftOffsetTable ¶
func (s *KerxSimpleArrayHeader) SetLeftOffsetTable(v uint32)
SetLeftOffsetTable updates the LeftOffsetTable field in the record's packed storage.
func (*KerxSimpleArrayHeader) SetRightOffsetTable ¶
func (s *KerxSimpleArrayHeader) SetRightOffsetTable(v uint32)
SetRightOffsetTable updates the RightOffsetTable field in the record's packed storage.
func (*KerxSimpleArrayHeader) SetRowWidth ¶
func (s *KerxSimpleArrayHeader) SetRowWidth(v uint32)
SetRowWidth updates the RowWidth field in the record's packed storage.
func (*KerxSimpleArrayHeader) SetTheArray ¶
func (s *KerxSimpleArrayHeader) SetTheArray(v KerxArrayOffset)
SetTheArray updates the TheArray field in the record's packed storage.
func (*KerxSimpleArrayHeader) TheArray ¶
func (s *KerxSimpleArrayHeader) TheArray() KerxArrayOffset
TheArray returns the TheArray field from the record's packed storage.
type KerxStateEntry ¶
KerxStateEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxStateEntry
type KerxStateHeader ¶
type KerxStateHeader struct {
// contains filtered or unexported fields
}
KerxStateHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxStateHeader
func (*KerxStateHeader) FirstTable ¶
func (s *KerxStateHeader) FirstTable() [1]uint8
FirstTable returns the FirstTable field from the record's packed storage.
func (*KerxStateHeader) Header ¶
func (s *KerxStateHeader) Header() STXHeader
Header returns the Header field from the record's packed storage.
func (*KerxStateHeader) SetFirstTable ¶
func (s *KerxStateHeader) SetFirstTable(v [1]uint8)
SetFirstTable updates the FirstTable field in the record's packed storage.
func (*KerxStateHeader) SetHeader ¶
func (s *KerxStateHeader) SetHeader(v STXHeader)
SetHeader updates the Header field in the record's packed storage.
func (*KerxStateHeader) SetValueTable ¶
func (s *KerxStateHeader) SetValueTable(v uint32)
SetValueTable updates the ValueTable field in the record's packed storage.
func (*KerxStateHeader) ValueTable ¶
func (s *KerxStateHeader) ValueTable() uint32
ValueTable returns the ValueTable field from the record's packed storage.
type KerxSubtableCoverage ¶
type KerxSubtableCoverage = uint32
See: https://developer.apple.com/documentation/CoreText/KerxSubtableCoverage
type KerxSubtableHeader ¶
type KerxSubtableHeader struct {
// contains filtered or unexported fields
}
KerxSubtableHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxSubtableHeader
func (*KerxSubtableHeader) FsHeader ¶
func (s *KerxSubtableHeader) FsHeader() KerxFormatSpecificHeader
FsHeader returns the FsHeader field from the record's packed storage.
func (*KerxSubtableHeader) Length ¶
func (s *KerxSubtableHeader) Length() uint32
Length returns the Length field from the record's packed storage.
func (*KerxSubtableHeader) SetFsHeader ¶
func (s *KerxSubtableHeader) SetFsHeader(v KerxFormatSpecificHeader)
SetFsHeader updates the FsHeader field in the record's packed storage.
func (*KerxSubtableHeader) SetLength ¶
func (s *KerxSubtableHeader) SetLength(v uint32)
SetLength updates the Length field in the record's packed storage.
func (*KerxSubtableHeader) SetStInfo ¶
func (s *KerxSubtableHeader) SetStInfo(v KerxSubtableCoverage)
SetStInfo updates the StInfo field in the record's packed storage.
func (*KerxSubtableHeader) SetTupleCount ¶
func (s *KerxSubtableHeader) SetTupleCount(v uint32)
SetTupleCount updates the TupleCount field in the record's packed storage.
func (*KerxSubtableHeader) StInfo ¶
func (s *KerxSubtableHeader) StInfo() KerxSubtableCoverage
StInfo returns the StInfo field from the record's packed storage.
func (*KerxSubtableHeader) TupleCount ¶
func (s *KerxSubtableHeader) TupleCount() uint32
TupleCount returns the TupleCount field from the record's packed storage.
type KerxSubtableHeaderPtr ¶
type KerxSubtableHeaderPtr = *KerxSubtableHeader
See: https://developer.apple.com/documentation/CoreText/KerxSubtableHeaderPtr
type KerxTableHeader ¶
type KerxTableHeader struct {
// contains filtered or unexported fields
}
KerxTableHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/KerxTableHeader
func (*KerxTableHeader) FirstSubtable ¶
func (s *KerxTableHeader) FirstSubtable() [1]uint32
FirstSubtable returns the FirstSubtable field from the record's packed storage.
func (*KerxTableHeader) NTables ¶
func (s *KerxTableHeader) NTables() uint32
NTables returns the NTables field from the record's packed storage.
func (*KerxTableHeader) SetFirstSubtable ¶
func (s *KerxTableHeader) SetFirstSubtable(v [1]uint32)
SetFirstSubtable updates the FirstSubtable field in the record's packed storage.
func (*KerxTableHeader) SetNTables ¶
func (s *KerxTableHeader) SetNTables(v uint32)
SetNTables updates the NTables field in the record's packed storage.
func (*KerxTableHeader) SetVersion ¶
func (s *KerxTableHeader) SetVersion(v int32)
SetVersion updates the Version field in the record's packed storage.
func (*KerxTableHeader) Version ¶
func (s *KerxTableHeader) Version() int32
Version returns the Version field from the record's packed storage.
type KerxTableHeaderHandle ¶
type KerxTableHeaderHandle = *KerxTableHeaderPtr
See: https://developer.apple.com/documentation/CoreText/KerxTableHeaderHandle
type KerxTableHeaderPtr ¶
type KerxTableHeaderPtr = *KerxTableHeader
See: https://developer.apple.com/documentation/CoreText/KerxTableHeaderPtr
type LcarCaretClassEntry ¶
LcarCaretClassEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/LcarCaretClassEntry
type LcarCaretTable ¶
type LcarCaretTable struct {
// contains filtered or unexported fields
}
LcarCaretTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/LcarCaretTable
func (*LcarCaretTable) Format ¶
func (s *LcarCaretTable) Format() uint16
Format returns the Format field from the record's packed storage.
func (*LcarCaretTable) Lookup ¶
func (s *LcarCaretTable) Lookup() SFNTLookupTable
Lookup returns the Lookup field from the record's packed storage.
func (*LcarCaretTable) SetFormat ¶
func (s *LcarCaretTable) SetFormat(v uint16)
SetFormat updates the Format field in the record's packed storage.
func (*LcarCaretTable) SetLookup ¶
func (s *LcarCaretTable) SetLookup(v SFNTLookupTable)
SetLookup updates the Lookup field in the record's packed storage.
func (*LcarCaretTable) SetVersion ¶
func (s *LcarCaretTable) SetVersion(v int32)
SetVersion updates the Version field in the record's packed storage.
func (*LcarCaretTable) Version ¶
func (s *LcarCaretTable) Version() int32
Version returns the Version field from the record's packed storage.
type LcarCaretTablePtr ¶
type LcarCaretTablePtr = *LcarCaretTable
See: https://developer.apple.com/documentation/CoreText/LcarCaretTablePtr
type LtagStringRange ¶
LtagStringRange
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/LtagStringRange
type LtagTable ¶
type LtagTable struct {
// contains filtered or unexported fields
}
LtagTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/LtagTable
func (*LtagTable) SetNumTags ¶
SetNumTags updates the NumTags field in the record's packed storage.
func (*LtagTable) SetTagRange ¶
func (s *LtagTable) SetTagRange(v [1]LtagStringRange)
SetTagRange updates the TagRange field in the record's packed storage.
func (*LtagTable) SetVersion ¶
SetVersion updates the Version field in the record's packed storage.
func (*LtagTable) TagRange ¶
func (s *LtagTable) TagRange() [1]LtagStringRange
TagRange returns the TagRange field from the record's packed storage.
type MortChain ¶
type MortChain struct {
// contains filtered or unexported fields
}
MortChain
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MortChain
func (*MortChain) DefaultFlags ¶
func (s *MortChain) DefaultFlags() MortSubtableMaskFlags
DefaultFlags returns the DefaultFlags field from the record's packed storage.
func (*MortChain) FeatureEntries ¶
func (s *MortChain) FeatureEntries() [1]MortFeatureEntry
FeatureEntries returns the FeatureEntries field from the record's packed storage.
func (*MortChain) NFeatures ¶
NFeatures returns the NFeatures field from the record's packed storage.
func (*MortChain) NSubtables ¶
NSubtables returns the NSubtables field from the record's packed storage.
func (*MortChain) SetDefaultFlags ¶
func (s *MortChain) SetDefaultFlags(v MortSubtableMaskFlags)
SetDefaultFlags updates the DefaultFlags field in the record's packed storage.
func (*MortChain) SetFeatureEntries ¶
func (s *MortChain) SetFeatureEntries(v [1]MortFeatureEntry)
SetFeatureEntries updates the FeatureEntries field in the record's packed storage.
func (*MortChain) SetNFeatures ¶
SetNFeatures updates the NFeatures field in the record's packed storage.
func (*MortChain) SetNSubtables ¶
SetNSubtables updates the NSubtables field in the record's packed storage.
type MortContextualSubtable ¶
MortContextualSubtable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MortContextualSubtable
type MortFeatureEntry ¶
type MortFeatureEntry struct {
// contains filtered or unexported fields
}
MortFeatureEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MortFeatureEntry
func (*MortFeatureEntry) DisableFlags ¶
func (s *MortFeatureEntry) DisableFlags() MortSubtableMaskFlags
DisableFlags returns the DisableFlags field from the record's packed storage.
func (*MortFeatureEntry) EnableFlags ¶
func (s *MortFeatureEntry) EnableFlags() MortSubtableMaskFlags
EnableFlags returns the EnableFlags field from the record's packed storage.
func (*MortFeatureEntry) FeatureSelector ¶
func (s *MortFeatureEntry) FeatureSelector() uint16
FeatureSelector returns the FeatureSelector field from the record's packed storage.
func (*MortFeatureEntry) FeatureType ¶
func (s *MortFeatureEntry) FeatureType() uint16
FeatureType returns the FeatureType field from the record's packed storage.
func (*MortFeatureEntry) SetDisableFlags ¶
func (s *MortFeatureEntry) SetDisableFlags(v MortSubtableMaskFlags)
SetDisableFlags updates the DisableFlags field in the record's packed storage.
func (*MortFeatureEntry) SetEnableFlags ¶
func (s *MortFeatureEntry) SetEnableFlags(v MortSubtableMaskFlags)
SetEnableFlags updates the EnableFlags field in the record's packed storage.
func (*MortFeatureEntry) SetFeatureSelector ¶
func (s *MortFeatureEntry) SetFeatureSelector(v uint16)
SetFeatureSelector updates the FeatureSelector field in the record's packed storage.
func (*MortFeatureEntry) SetFeatureType ¶
func (s *MortFeatureEntry) SetFeatureType(v uint16)
SetFeatureType updates the FeatureType field in the record's packed storage.
type MortInsertionSubtable ¶
type MortInsertionSubtable struct {
Header STHeader
}
MortInsertionSubtable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MortInsertionSubtable
type MortLigatureActionEntry ¶
type MortLigatureActionEntry = uint32
See: https://developer.apple.com/documentation/CoreText/MortLigatureActionEntry
type MortLigatureSubtable ¶
type MortLigatureSubtable struct {
Header STHeader
LigatureActionTableOffset uint16
ComponentTableOffset uint16
LigatureTableOffset uint16
}
MortLigatureSubtable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MortLigatureSubtable
type MortRearrangementSubtable ¶
type MortRearrangementSubtable struct {
Header STHeader
}
MortRearrangementSubtable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MortRearrangementSubtable
type MortSpecificSubtable ¶
type MortSpecificSubtable [9]uint16
MortSpecificSubtable is a C union type.
func (*MortSpecificSubtable) Contextual ¶
func (u *MortSpecificSubtable) Contextual() *MortContextualSubtable
Contextual returns the union interpreted as *MortContextualSubtable. The returned pointer aliases the receiver's memory.
func (*MortSpecificSubtable) Insertion ¶
func (u *MortSpecificSubtable) Insertion() *MortInsertionSubtable
Insertion returns the union interpreted as *MortInsertionSubtable. The returned pointer aliases the receiver's memory.
func (*MortSpecificSubtable) Ligature ¶
func (u *MortSpecificSubtable) Ligature() *MortLigatureSubtable
Ligature returns the union interpreted as *MortLigatureSubtable. The returned pointer aliases the receiver's memory.
func (*MortSpecificSubtable) Rearrangement ¶
func (u *MortSpecificSubtable) Rearrangement() *MortRearrangementSubtable
Rearrangement returns the union interpreted as *MortRearrangementSubtable. The returned pointer aliases the receiver's memory.
func (*MortSpecificSubtable) Swash ¶
func (u *MortSpecificSubtable) Swash() *MortSwashSubtable
Swash returns the union interpreted as *MortSwashSubtable. The returned pointer aliases the receiver's memory.
type MortSubtable ¶
type MortSubtable struct {
// contains filtered or unexported fields
}
MortSubtable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MortSubtable
func (*MortSubtable) Coverage ¶
func (s *MortSubtable) Coverage() uint16
Coverage returns the Coverage field from the record's packed storage.
func (*MortSubtable) Flags ¶
func (s *MortSubtable) Flags() MortSubtableMaskFlags
Flags returns the Flags field from the record's packed storage.
func (*MortSubtable) Length ¶
func (s *MortSubtable) Length() uint16
Length returns the Length field from the record's packed storage.
func (*MortSubtable) SetCoverage ¶
func (s *MortSubtable) SetCoverage(v uint16)
SetCoverage updates the Coverage field in the record's packed storage.
func (*MortSubtable) SetFlags ¶
func (s *MortSubtable) SetFlags(v MortSubtableMaskFlags)
SetFlags updates the Flags field in the record's packed storage.
func (*MortSubtable) SetLength ¶
func (s *MortSubtable) SetLength(v uint16)
SetLength updates the Length field in the record's packed storage.
func (*MortSubtable) SetU ¶
func (s *MortSubtable) SetU(v MortSpecificSubtable)
SetU updates the U field in the record's packed storage.
func (*MortSubtable) U ¶
func (s *MortSubtable) U() MortSpecificSubtable
U returns the U field from the record's packed storage.
type MortSubtableMaskFlags ¶
type MortSubtableMaskFlags = uint32
See: https://developer.apple.com/documentation/CoreText/MortSubtableMaskFlags
type MortSwashSubtable ¶
type MortSwashSubtable struct {
Lookup SFNTLookupTable
}
MortSwashSubtable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MortSwashSubtable
type MortTable ¶
type MortTable struct {
// contains filtered or unexported fields
}
MortTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MortTable
func (*MortTable) SetNChains ¶
SetNChains updates the NChains field in the record's packed storage.
func (*MortTable) SetVersion ¶
SetVersion updates the Version field in the record's packed storage.
type MorxChain ¶
type MorxChain struct {
// contains filtered or unexported fields
}
MorxChain
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MorxChain
func (*MorxChain) DefaultFlags ¶
func (s *MorxChain) DefaultFlags() MortSubtableMaskFlags
DefaultFlags returns the DefaultFlags field from the record's packed storage.
func (*MorxChain) FeatureEntries ¶
func (s *MorxChain) FeatureEntries() [1]MortFeatureEntry
FeatureEntries returns the FeatureEntries field from the record's packed storage.
func (*MorxChain) NFeatures ¶
NFeatures returns the NFeatures field from the record's packed storage.
func (*MorxChain) NSubtables ¶
NSubtables returns the NSubtables field from the record's packed storage.
func (*MorxChain) SetDefaultFlags ¶
func (s *MorxChain) SetDefaultFlags(v MortSubtableMaskFlags)
SetDefaultFlags updates the DefaultFlags field in the record's packed storage.
func (*MorxChain) SetFeatureEntries ¶
func (s *MorxChain) SetFeatureEntries(v [1]MortFeatureEntry)
SetFeatureEntries updates the FeatureEntries field in the record's packed storage.
func (*MorxChain) SetNFeatures ¶
SetNFeatures updates the NFeatures field in the record's packed storage.
func (*MorxChain) SetNSubtables ¶
SetNSubtables updates the NSubtables field in the record's packed storage.
type MorxContextualSubtable ¶
type MorxContextualSubtable struct {
// contains filtered or unexported fields
}
MorxContextualSubtable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MorxContextualSubtable
func (*MorxContextualSubtable) Header ¶
func (s *MorxContextualSubtable) Header() STXHeader
Header returns the Header field from the record's packed storage.
func (*MorxContextualSubtable) SetHeader ¶
func (s *MorxContextualSubtable) SetHeader(v STXHeader)
SetHeader updates the Header field in the record's packed storage.
func (*MorxContextualSubtable) SetSubstitutionTableOffset ¶
func (s *MorxContextualSubtable) SetSubstitutionTableOffset(v uint32)
SetSubstitutionTableOffset updates the SubstitutionTableOffset field in the record's packed storage.
func (*MorxContextualSubtable) SubstitutionTableOffset ¶
func (s *MorxContextualSubtable) SubstitutionTableOffset() uint32
SubstitutionTableOffset returns the SubstitutionTableOffset field from the record's packed storage.
type MorxInsertionSubtable ¶
type MorxInsertionSubtable struct {
// contains filtered or unexported fields
}
MorxInsertionSubtable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MorxInsertionSubtable
func (*MorxInsertionSubtable) Header ¶
func (s *MorxInsertionSubtable) Header() STXHeader
Header returns the Header field from the record's packed storage.
func (*MorxInsertionSubtable) InsertionGlyphTableOffset ¶
func (s *MorxInsertionSubtable) InsertionGlyphTableOffset() uint32
InsertionGlyphTableOffset returns the InsertionGlyphTableOffset field from the record's packed storage.
func (*MorxInsertionSubtable) SetHeader ¶
func (s *MorxInsertionSubtable) SetHeader(v STXHeader)
SetHeader updates the Header field in the record's packed storage.
func (*MorxInsertionSubtable) SetInsertionGlyphTableOffset ¶
func (s *MorxInsertionSubtable) SetInsertionGlyphTableOffset(v uint32)
SetInsertionGlyphTableOffset updates the InsertionGlyphTableOffset field in the record's packed storage.
type MorxLigatureSubtable ¶
type MorxLigatureSubtable struct {
// contains filtered or unexported fields
}
MorxLigatureSubtable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MorxLigatureSubtable
func (*MorxLigatureSubtable) ComponentTableOffset ¶
func (s *MorxLigatureSubtable) ComponentTableOffset() uint32
ComponentTableOffset returns the ComponentTableOffset field from the record's packed storage.
func (*MorxLigatureSubtable) Header ¶
func (s *MorxLigatureSubtable) Header() STXHeader
Header returns the Header field from the record's packed storage.
func (*MorxLigatureSubtable) LigatureActionTableOffset ¶
func (s *MorxLigatureSubtable) LigatureActionTableOffset() uint32
LigatureActionTableOffset returns the LigatureActionTableOffset field from the record's packed storage.
func (*MorxLigatureSubtable) LigatureTableOffset ¶
func (s *MorxLigatureSubtable) LigatureTableOffset() uint32
LigatureTableOffset returns the LigatureTableOffset field from the record's packed storage.
func (*MorxLigatureSubtable) SetComponentTableOffset ¶
func (s *MorxLigatureSubtable) SetComponentTableOffset(v uint32)
SetComponentTableOffset updates the ComponentTableOffset field in the record's packed storage.
func (*MorxLigatureSubtable) SetHeader ¶
func (s *MorxLigatureSubtable) SetHeader(v STXHeader)
SetHeader updates the Header field in the record's packed storage.
func (*MorxLigatureSubtable) SetLigatureActionTableOffset ¶
func (s *MorxLigatureSubtable) SetLigatureActionTableOffset(v uint32)
SetLigatureActionTableOffset updates the LigatureActionTableOffset field in the record's packed storage.
func (*MorxLigatureSubtable) SetLigatureTableOffset ¶
func (s *MorxLigatureSubtable) SetLigatureTableOffset(v uint32)
SetLigatureTableOffset updates the LigatureTableOffset field in the record's packed storage.
type MorxRearrangementSubtable ¶
type MorxRearrangementSubtable struct {
// contains filtered or unexported fields
}
MorxRearrangementSubtable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MorxRearrangementSubtable
func (*MorxRearrangementSubtable) Header ¶
func (s *MorxRearrangementSubtable) Header() STXHeader
Header returns the Header field from the record's packed storage.
func (*MorxRearrangementSubtable) SetHeader ¶
func (s *MorxRearrangementSubtable) SetHeader(v STXHeader)
SetHeader updates the Header field in the record's packed storage.
type MorxSpecificSubtable ¶
type MorxSpecificSubtable [14]uint16
MorxSpecificSubtable is a C union type.
func (*MorxSpecificSubtable) Contextual ¶
func (u *MorxSpecificSubtable) Contextual() *MorxContextualSubtable
Contextual returns the union interpreted as *MorxContextualSubtable. The returned pointer aliases the receiver's memory.
func (*MorxSpecificSubtable) Insertion ¶
func (u *MorxSpecificSubtable) Insertion() *MorxInsertionSubtable
Insertion returns the union interpreted as *MorxInsertionSubtable. The returned pointer aliases the receiver's memory.
func (*MorxSpecificSubtable) Ligature ¶
func (u *MorxSpecificSubtable) Ligature() *MorxLigatureSubtable
Ligature returns the union interpreted as *MorxLigatureSubtable. The returned pointer aliases the receiver's memory.
func (*MorxSpecificSubtable) Rearrangement ¶
func (u *MorxSpecificSubtable) Rearrangement() *MorxRearrangementSubtable
Rearrangement returns the union interpreted as *MorxRearrangementSubtable. The returned pointer aliases the receiver's memory.
func (*MorxSpecificSubtable) Swash ¶
func (u *MorxSpecificSubtable) Swash() *MortSwashSubtable
Swash returns the union interpreted as *MortSwashSubtable. The returned pointer aliases the receiver's memory.
type MorxSubtable ¶
type MorxSubtable struct {
// contains filtered or unexported fields
}
MorxSubtable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MorxSubtable
func (*MorxSubtable) Coverage ¶
func (s *MorxSubtable) Coverage() uint32
Coverage returns the Coverage field from the record's packed storage.
func (*MorxSubtable) Flags ¶
func (s *MorxSubtable) Flags() MortSubtableMaskFlags
Flags returns the Flags field from the record's packed storage.
func (*MorxSubtable) Length ¶
func (s *MorxSubtable) Length() uint32
Length returns the Length field from the record's packed storage.
func (*MorxSubtable) SetCoverage ¶
func (s *MorxSubtable) SetCoverage(v uint32)
SetCoverage updates the Coverage field in the record's packed storage.
func (*MorxSubtable) SetFlags ¶
func (s *MorxSubtable) SetFlags(v MortSubtableMaskFlags)
SetFlags updates the Flags field in the record's packed storage.
func (*MorxSubtable) SetLength ¶
func (s *MorxSubtable) SetLength(v uint32)
SetLength updates the Length field in the record's packed storage.
func (*MorxSubtable) SetU ¶
func (s *MorxSubtable) SetU(v MorxSpecificSubtable)
SetU updates the U field in the record's packed storage.
func (*MorxSubtable) U ¶
func (s *MorxSubtable) U() MorxSpecificSubtable
U returns the U field from the record's packed storage.
type MorxTable ¶
type MorxTable struct {
// contains filtered or unexported fields
}
MorxTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/MorxTable
func (*MorxTable) SetNChains ¶
SetNChains updates the NChains field in the record's packed storage.
func (*MorxTable) SetVersion ¶
SetVersion updates the Version field in the record's packed storage.
type OpbdSideValues ¶
type OpbdSideValues struct {
LeftSideShift int16
TopSideShift int16
RightSideShift int16
BottomSideShift int16
}
OpbdSideValues
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/OpbdSideValues
type OpbdTable ¶
type OpbdTable struct {
// contains filtered or unexported fields
}
OpbdTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/OpbdTable
func (*OpbdTable) Format ¶
func (s *OpbdTable) Format() OpbdTableFormat
Format returns the Format field from the record's packed storage.
func (*OpbdTable) LookupTable ¶
func (s *OpbdTable) LookupTable() SFNTLookupTable
LookupTable returns the LookupTable field from the record's packed storage.
func (*OpbdTable) SetFormat ¶
func (s *OpbdTable) SetFormat(v OpbdTableFormat)
SetFormat updates the Format field in the record's packed storage.
func (*OpbdTable) SetLookupTable ¶
func (s *OpbdTable) SetLookupTable(v SFNTLookupTable)
SetLookupTable updates the LookupTable field in the record's packed storage.
func (*OpbdTable) SetVersion ¶
SetVersion updates the Version field in the record's packed storage.
type OpbdTableFormat ¶
type OpbdTableFormat = uint16
See: https://developer.apple.com/documentation/CoreText/OpbdTableFormat
type PropCharProperties ¶
type PropCharProperties = uint16
See: https://developer.apple.com/documentation/CoreText/PropCharProperties
type PropLookupSegment ¶
PropLookupSegment
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/PropLookupSegment
type PropLookupSingle ¶
type PropLookupSingle struct {
Glyph uint16
Props PropCharProperties
}
PropLookupSingle
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/PropLookupSingle
type PropTable ¶
type PropTable struct {
// contains filtered or unexported fields
}
PropTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/PropTable
func (*PropTable) DefaultProps ¶
func (s *PropTable) DefaultProps() PropCharProperties
DefaultProps returns the DefaultProps field from the record's packed storage.
func (*PropTable) Lookup ¶
func (s *PropTable) Lookup() SFNTLookupTable
Lookup returns the Lookup field from the record's packed storage.
func (*PropTable) SetDefaultProps ¶
func (s *PropTable) SetDefaultProps(v PropCharProperties)
SetDefaultProps updates the DefaultProps field in the record's packed storage.
func (*PropTable) SetLookup ¶
func (s *PropTable) SetLookup(v SFNTLookupTable)
SetLookup updates the Lookup field in the record's packed storage.
func (*PropTable) SetVersion ¶
SetVersion updates the Version field in the record's packed storage.
type ROTAGlyphEntry ¶
ROTAGlyphEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/ROTAGlyphEntry
type ROTAHeader ¶
type ROTAHeader struct {
// contains filtered or unexported fields
}
ROTAHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/ROTAHeader
func (*ROTAHeader) FirstGlyph ¶
func (s *ROTAHeader) FirstGlyph() uint16
FirstGlyph returns the FirstGlyph field from the record's packed storage.
func (*ROTAHeader) Flags ¶
func (s *ROTAHeader) Flags() uint16
Flags returns the Flags field from the record's packed storage.
func (*ROTAHeader) LastGlyph ¶
func (s *ROTAHeader) LastGlyph() uint16
LastGlyph returns the LastGlyph field from the record's packed storage.
func (*ROTAHeader) Lookup ¶
func (s *ROTAHeader) Lookup() SFNTLookupTable
Lookup returns the Lookup field from the record's packed storage.
func (*ROTAHeader) NMasters ¶
func (s *ROTAHeader) NMasters() uint16
NMasters returns the NMasters field from the record's packed storage.
func (*ROTAHeader) SetFirstGlyph ¶
func (s *ROTAHeader) SetFirstGlyph(v uint16)
SetFirstGlyph updates the FirstGlyph field in the record's packed storage.
func (*ROTAHeader) SetFlags ¶
func (s *ROTAHeader) SetFlags(v uint16)
SetFlags updates the Flags field in the record's packed storage.
func (*ROTAHeader) SetLastGlyph ¶
func (s *ROTAHeader) SetLastGlyph(v uint16)
SetLastGlyph updates the LastGlyph field in the record's packed storage.
func (*ROTAHeader) SetLookup ¶
func (s *ROTAHeader) SetLookup(v SFNTLookupTable)
SetLookup updates the Lookup field in the record's packed storage.
func (*ROTAHeader) SetNMasters ¶
func (s *ROTAHeader) SetNMasters(v uint16)
SetNMasters updates the NMasters field in the record's packed storage.
func (*ROTAHeader) SetVersion ¶
func (s *ROTAHeader) SetVersion(v int32)
SetVersion updates the Version field in the record's packed storage.
func (*ROTAHeader) Version ¶
func (s *ROTAHeader) Version() int32
Version returns the Version field from the record's packed storage.
type SFNTLookupArrayHeader ¶
type SFNTLookupArrayHeader struct {
LookupValues [1]SFNTLookupValue
}
SFNTLookupArrayHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/SFNTLookupArrayHeader
type SFNTLookupBinarySearchHeader ¶
type SFNTLookupBinarySearchHeader struct {
UnitSize uint16
NUnits uint16
SearchRange uint16
EntrySelector uint16
RangeShift uint16
}
SFNTLookupBinarySearchHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/SFNTLookupBinarySearchHeader
type SFNTLookupFormatSpecificHeader ¶
type SFNTLookupFormatSpecificHeader [8]uint16
SFNTLookupFormatSpecificHeader is a C union type.
func (*SFNTLookupFormatSpecificHeader) Segment ¶
func (u *SFNTLookupFormatSpecificHeader) Segment() *SFNTLookupSegmentHeader
Segment returns the union interpreted as *SFNTLookupSegmentHeader. The returned pointer aliases the receiver's memory.
func (*SFNTLookupFormatSpecificHeader) Single ¶
func (u *SFNTLookupFormatSpecificHeader) Single() *SFNTLookupSingleHeader
Single returns the union interpreted as *SFNTLookupSingleHeader. The returned pointer aliases the receiver's memory.
func (*SFNTLookupFormatSpecificHeader) TheArray ¶
func (u *SFNTLookupFormatSpecificHeader) TheArray() *SFNTLookupArrayHeader
TheArray returns the union interpreted as *SFNTLookupArrayHeader. The returned pointer aliases the receiver's memory.
func (*SFNTLookupFormatSpecificHeader) TrimmedArray ¶
func (u *SFNTLookupFormatSpecificHeader) TrimmedArray() *SFNTLookupTrimmedArrayHeader
TrimmedArray returns the union interpreted as *SFNTLookupTrimmedArrayHeader. The returned pointer aliases the receiver's memory.
func (*SFNTLookupFormatSpecificHeader) Vector ¶
func (u *SFNTLookupFormatSpecificHeader) Vector() *SFNTLookupVectorHeader
Vector returns the union interpreted as *SFNTLookupVectorHeader. The returned pointer aliases the receiver's memory.
type SFNTLookupKind ¶
type SFNTLookupKind = uint32
See: https://developer.apple.com/documentation/CoreText/SFNTLookupKind
type SFNTLookupOffset ¶
type SFNTLookupOffset = uint16
See: https://developer.apple.com/documentation/CoreText/SFNTLookupOffset
type SFNTLookupSegment ¶
SFNTLookupSegment
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/SFNTLookupSegment
type SFNTLookupSegmentHeader ¶
type SFNTLookupSegmentHeader struct {
BinSearch SFNTLookupBinarySearchHeader
Segments [1]SFNTLookupSegment
}
SFNTLookupSegmentHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/SFNTLookupSegmentHeader
type SFNTLookupSingle ¶
SFNTLookupSingle
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/SFNTLookupSingle
type SFNTLookupSingleHeader ¶
type SFNTLookupSingleHeader struct {
BinSearch SFNTLookupBinarySearchHeader
Entries [1]SFNTLookupSingle
}
SFNTLookupSingleHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/SFNTLookupSingleHeader
type SFNTLookupTable ¶
type SFNTLookupTable struct {
Format SFNTLookupTableFormat
FsHeader SFNTLookupFormatSpecificHeader
}
SFNTLookupTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/SFNTLookupTable
type SFNTLookupTableFormat ¶
type SFNTLookupTableFormat = uint16
See: https://developer.apple.com/documentation/CoreText/SFNTLookupTableFormat
type SFNTLookupTableHandle ¶
type SFNTLookupTableHandle = *SFNTLookupTablePtr
See: https://developer.apple.com/documentation/CoreText/SFNTLookupTableHandle
type SFNTLookupTablePtr ¶
type SFNTLookupTablePtr = *SFNTLookupTable
See: https://developer.apple.com/documentation/CoreText/SFNTLookupTablePtr
type SFNTLookupTrimmedArrayHeader ¶
type SFNTLookupTrimmedArrayHeader struct {
FirstGlyph uint16
Count uint16
ValueArray [1]SFNTLookupValue
}
SFNTLookupTrimmedArrayHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/SFNTLookupTrimmedArrayHeader
type SFNTLookupValue ¶
type SFNTLookupValue = uint16
See: https://developer.apple.com/documentation/CoreText/SFNTLookupValue
type SFNTLookupVectorHeader ¶
type SFNTLookupVectorHeader struct {
ValueSize uint16
FirstGlyph uint16
Count uint16
Values [1]uint8
}
SFNTLookupVectorHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/SFNTLookupVectorHeader
type STClassTable ¶
STClassTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/STClassTable
type STEntryIndex ¶
type STEntryIndex = uint8
See: https://developer.apple.com/documentation/CoreText/STEntryIndex
type STEntryOne ¶
STEntryOne
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/STEntryOne
type STEntryTwo ¶
STEntryTwo
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/STEntryTwo
type STEntryZero ¶
STEntryZero
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/STEntryZero
type STHeader ¶
type STHeader struct {
Filler uint8
NClasses STClass
ClassTableOffset uint16
StateArrayOffset uint16
EntryTableOffset uint16
}
STHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/STHeader
type STXClass ¶
type STXClass = uint16
See: https://developer.apple.com/documentation/CoreText/STXClass
type STXClassTable ¶
type STXClassTable = SFNTLookupTable
See: https://developer.apple.com/documentation/CoreText/STXClassTable
type STXEntryIndex ¶
type STXEntryIndex = uint16
See: https://developer.apple.com/documentation/CoreText/STXEntryIndex
type STXEntryOne ¶
type STXEntryOne struct {
NewState STXStateIndex
Flags uint16
Index1 uint16
}
STXEntryOne
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/STXEntryOne
type STXEntryTwo ¶
type STXEntryTwo struct {
NewState STXStateIndex
Flags uint16
Index1 uint16
Index2 uint16
}
STXEntryTwo
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/STXEntryTwo
type STXEntryZero ¶
type STXEntryZero struct {
NewState STXStateIndex
Flags uint16
}
STXEntryZero
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/STXEntryZero
type STXHeader ¶
type STXHeader struct {
// contains filtered or unexported fields
}
STXHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/STXHeader
func (*STXHeader) ClassTableOffset ¶
ClassTableOffset returns the ClassTableOffset field from the record's packed storage.
func (*STXHeader) EntryTableOffset ¶
EntryTableOffset returns the EntryTableOffset field from the record's packed storage.
func (*STXHeader) SetClassTableOffset ¶
SetClassTableOffset updates the ClassTableOffset field in the record's packed storage.
func (*STXHeader) SetEntryTableOffset ¶
SetEntryTableOffset updates the EntryTableOffset field in the record's packed storage.
func (*STXHeader) SetNClasses ¶
SetNClasses updates the NClasses field in the record's packed storage.
func (*STXHeader) SetStateArrayOffset ¶
SetStateArrayOffset updates the StateArrayOffset field in the record's packed storage.
func (*STXHeader) StateArrayOffset ¶
StateArrayOffset returns the StateArrayOffset field from the record's packed storage.
type STXStateIndex ¶
type STXStateIndex = uint16
See: https://developer.apple.com/documentation/CoreText/STXStateIndex
type SfntCMapEncoding ¶
type SfntCMapEncoding struct {
// contains filtered or unexported fields
}
SfntCMapEncoding
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntCMapEncoding
func (*SfntCMapEncoding) Offset ¶
func (s *SfntCMapEncoding) Offset() uint32
Offset returns the Offset field from the record's packed storage.
func (*SfntCMapEncoding) PlatformID ¶
func (s *SfntCMapEncoding) PlatformID() uint16
PlatformID returns the PlatformID field from the record's packed storage.
func (*SfntCMapEncoding) ScriptID ¶
func (s *SfntCMapEncoding) ScriptID() uint16
ScriptID returns the ScriptID field from the record's packed storage.
func (*SfntCMapEncoding) SetOffset ¶
func (s *SfntCMapEncoding) SetOffset(v uint32)
SetOffset updates the Offset field in the record's packed storage.
func (*SfntCMapEncoding) SetPlatformID ¶
func (s *SfntCMapEncoding) SetPlatformID(v uint16)
SetPlatformID updates the PlatformID field in the record's packed storage.
func (*SfntCMapEncoding) SetScriptID ¶
func (s *SfntCMapEncoding) SetScriptID(v uint16)
SetScriptID updates the ScriptID field in the record's packed storage.
type SfntCMapExtendedSubHeader ¶
type SfntCMapExtendedSubHeader struct {
// contains filtered or unexported fields
}
SfntCMapExtendedSubHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntCMapExtendedSubHeader
func (*SfntCMapExtendedSubHeader) Format ¶
func (s *SfntCMapExtendedSubHeader) Format() uint16
Format returns the Format field from the record's packed storage.
func (*SfntCMapExtendedSubHeader) Language ¶
func (s *SfntCMapExtendedSubHeader) Language() uint32
Language returns the Language field from the record's packed storage.
func (*SfntCMapExtendedSubHeader) Length ¶
func (s *SfntCMapExtendedSubHeader) Length() uint32
Length returns the Length field from the record's packed storage.
func (*SfntCMapExtendedSubHeader) Reserved ¶
func (s *SfntCMapExtendedSubHeader) Reserved() uint16
Reserved returns the Reserved field from the record's packed storage.
func (*SfntCMapExtendedSubHeader) SetFormat ¶
func (s *SfntCMapExtendedSubHeader) SetFormat(v uint16)
SetFormat updates the Format field in the record's packed storage.
func (*SfntCMapExtendedSubHeader) SetLanguage ¶
func (s *SfntCMapExtendedSubHeader) SetLanguage(v uint32)
SetLanguage updates the Language field in the record's packed storage.
func (*SfntCMapExtendedSubHeader) SetLength ¶
func (s *SfntCMapExtendedSubHeader) SetLength(v uint32)
SetLength updates the Length field in the record's packed storage.
func (*SfntCMapExtendedSubHeader) SetReserved ¶
func (s *SfntCMapExtendedSubHeader) SetReserved(v uint16)
SetReserved updates the Reserved field in the record's packed storage.
type SfntCMapHeader ¶
type SfntCMapHeader struct {
Version uint16
NumTables uint16
Encoding [1]SfntCMapEncoding
}
SfntCMapHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntCMapHeader
type SfntCMapSubHeader ¶
SfntCMapSubHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntCMapSubHeader
type SfntDescriptorHeader ¶
type SfntDescriptorHeader struct {
// contains filtered or unexported fields
}
SfntDescriptorHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntDescriptorHeader
func (*SfntDescriptorHeader) Descriptor ¶
func (s *SfntDescriptorHeader) Descriptor() [1]SfntFontDescriptor
Descriptor returns the Descriptor field from the record's packed storage.
func (*SfntDescriptorHeader) DescriptorCount ¶
func (s *SfntDescriptorHeader) DescriptorCount() int32
DescriptorCount returns the DescriptorCount field from the record's packed storage.
func (*SfntDescriptorHeader) SetDescriptor ¶
func (s *SfntDescriptorHeader) SetDescriptor(v [1]SfntFontDescriptor)
SetDescriptor updates the Descriptor field in the record's packed storage.
func (*SfntDescriptorHeader) SetDescriptorCount ¶
func (s *SfntDescriptorHeader) SetDescriptorCount(v int32)
SetDescriptorCount updates the DescriptorCount field in the record's packed storage.
func (*SfntDescriptorHeader) SetVersion ¶
func (s *SfntDescriptorHeader) SetVersion(v int32)
SetVersion updates the Version field in the record's packed storage.
func (*SfntDescriptorHeader) Version ¶
func (s *SfntDescriptorHeader) Version() int32
Version returns the Version field from the record's packed storage.
type SfntDirectory ¶
type SfntDirectory struct {
// contains filtered or unexported fields
}
SfntDirectory
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntDirectory
func (*SfntDirectory) EntrySelector ¶
func (s *SfntDirectory) EntrySelector() uint16
EntrySelector returns the EntrySelector field from the record's packed storage.
func (*SfntDirectory) Format ¶
func (s *SfntDirectory) Format() uint32
Format returns the Format field from the record's packed storage.
func (*SfntDirectory) NumOffsets ¶
func (s *SfntDirectory) NumOffsets() uint16
NumOffsets returns the NumOffsets field from the record's packed storage.
func (*SfntDirectory) RangeShift ¶
func (s *SfntDirectory) RangeShift() uint16
RangeShift returns the RangeShift field from the record's packed storage.
func (*SfntDirectory) SearchRange ¶
func (s *SfntDirectory) SearchRange() uint16
SearchRange returns the SearchRange field from the record's packed storage.
func (*SfntDirectory) SetEntrySelector ¶
func (s *SfntDirectory) SetEntrySelector(v uint16)
SetEntrySelector updates the EntrySelector field in the record's packed storage.
func (*SfntDirectory) SetFormat ¶
func (s *SfntDirectory) SetFormat(v uint32)
SetFormat updates the Format field in the record's packed storage.
func (*SfntDirectory) SetNumOffsets ¶
func (s *SfntDirectory) SetNumOffsets(v uint16)
SetNumOffsets updates the NumOffsets field in the record's packed storage.
func (*SfntDirectory) SetRangeShift ¶
func (s *SfntDirectory) SetRangeShift(v uint16)
SetRangeShift updates the RangeShift field in the record's packed storage.
func (*SfntDirectory) SetSearchRange ¶
func (s *SfntDirectory) SetSearchRange(v uint16)
SetSearchRange updates the SearchRange field in the record's packed storage.
func (*SfntDirectory) SetTable ¶
func (s *SfntDirectory) SetTable(v [1]SfntDirectoryEntry)
SetTable updates the Table field in the record's packed storage.
func (*SfntDirectory) Table ¶
func (s *SfntDirectory) Table() [1]SfntDirectoryEntry
Table returns the Table field from the record's packed storage.
type SfntDirectoryEntry ¶
type SfntDirectoryEntry struct {
// contains filtered or unexported fields
}
SfntDirectoryEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntDirectoryEntry
func (*SfntDirectoryEntry) CheckSum ¶
func (s *SfntDirectoryEntry) CheckSum() uint32
CheckSum returns the CheckSum field from the record's packed storage.
func (*SfntDirectoryEntry) Length ¶
func (s *SfntDirectoryEntry) Length() uint32
Length returns the Length field from the record's packed storage.
func (*SfntDirectoryEntry) Offset ¶
func (s *SfntDirectoryEntry) Offset() uint32
Offset returns the Offset field from the record's packed storage.
func (*SfntDirectoryEntry) SetCheckSum ¶
func (s *SfntDirectoryEntry) SetCheckSum(v uint32)
SetCheckSum updates the CheckSum field in the record's packed storage.
func (*SfntDirectoryEntry) SetLength ¶
func (s *SfntDirectoryEntry) SetLength(v uint32)
SetLength updates the Length field in the record's packed storage.
func (*SfntDirectoryEntry) SetOffset ¶
func (s *SfntDirectoryEntry) SetOffset(v uint32)
SetOffset updates the Offset field in the record's packed storage.
func (*SfntDirectoryEntry) SetTableTag ¶
func (s *SfntDirectoryEntry) SetTableTag(v uint32)
SetTableTag updates the TableTag field in the record's packed storage.
func (*SfntDirectoryEntry) TableTag ¶
func (s *SfntDirectoryEntry) TableTag() uint32
TableTag returns the TableTag field from the record's packed storage.
type SfntFeatureHeader ¶
type SfntFeatureHeader struct {
// contains filtered or unexported fields
}
SfntFeatureHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntFeatureHeader
func (*SfntFeatureHeader) FeatureNameCount ¶
func (s *SfntFeatureHeader) FeatureNameCount() uint16
FeatureNameCount returns the FeatureNameCount field from the record's packed storage.
func (*SfntFeatureHeader) FeatureSetCount ¶
func (s *SfntFeatureHeader) FeatureSetCount() uint16
FeatureSetCount returns the FeatureSetCount field from the record's packed storage.
func (*SfntFeatureHeader) Names ¶
func (s *SfntFeatureHeader) Names() [1]SfntFeatureName
Names returns the Names field from the record's packed storage.
func (*SfntFeatureHeader) Reserved ¶
func (s *SfntFeatureHeader) Reserved() int32
Reserved returns the Reserved field from the record's packed storage.
func (*SfntFeatureHeader) Runs ¶
func (s *SfntFeatureHeader) Runs() [1]SfntFontRunFeature
Runs returns the Runs field from the record's packed storage.
func (*SfntFeatureHeader) SetFeatureNameCount ¶
func (s *SfntFeatureHeader) SetFeatureNameCount(v uint16)
SetFeatureNameCount updates the FeatureNameCount field in the record's packed storage.
func (*SfntFeatureHeader) SetFeatureSetCount ¶
func (s *SfntFeatureHeader) SetFeatureSetCount(v uint16)
SetFeatureSetCount updates the FeatureSetCount field in the record's packed storage.
func (*SfntFeatureHeader) SetNames ¶
func (s *SfntFeatureHeader) SetNames(v [1]SfntFeatureName)
SetNames updates the Names field in the record's packed storage.
func (*SfntFeatureHeader) SetReserved ¶
func (s *SfntFeatureHeader) SetReserved(v int32)
SetReserved updates the Reserved field in the record's packed storage.
func (*SfntFeatureHeader) SetRuns ¶
func (s *SfntFeatureHeader) SetRuns(v [1]SfntFontRunFeature)
SetRuns updates the Runs field in the record's packed storage.
func (*SfntFeatureHeader) SetSettings ¶
func (s *SfntFeatureHeader) SetSettings(v [1]SfntFontFeatureSetting)
SetSettings updates the Settings field in the record's packed storage.
func (*SfntFeatureHeader) SetVersion ¶
func (s *SfntFeatureHeader) SetVersion(v int32)
SetVersion updates the Version field in the record's packed storage.
func (*SfntFeatureHeader) Settings ¶
func (s *SfntFeatureHeader) Settings() [1]SfntFontFeatureSetting
Settings returns the Settings field from the record's packed storage.
func (*SfntFeatureHeader) Version ¶
func (s *SfntFeatureHeader) Version() int32
Version returns the Version field from the record's packed storage.
type SfntFeatureName ¶
type SfntFeatureName struct {
// contains filtered or unexported fields
}
SfntFeatureName
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntFeatureName
func (*SfntFeatureName) FeatureFlags ¶
func (s *SfntFeatureName) FeatureFlags() uint16
FeatureFlags returns the FeatureFlags field from the record's packed storage.
func (*SfntFeatureName) FeatureType ¶
func (s *SfntFeatureName) FeatureType() uint16
FeatureType returns the FeatureType field from the record's packed storage.
func (*SfntFeatureName) NameID ¶
func (s *SfntFeatureName) NameID() int16
NameID returns the NameID field from the record's packed storage.
func (*SfntFeatureName) OffsetToSettings ¶
func (s *SfntFeatureName) OffsetToSettings() int32
OffsetToSettings returns the OffsetToSettings field from the record's packed storage.
func (*SfntFeatureName) SetFeatureFlags ¶
func (s *SfntFeatureName) SetFeatureFlags(v uint16)
SetFeatureFlags updates the FeatureFlags field in the record's packed storage.
func (*SfntFeatureName) SetFeatureType ¶
func (s *SfntFeatureName) SetFeatureType(v uint16)
SetFeatureType updates the FeatureType field in the record's packed storage.
func (*SfntFeatureName) SetNameID ¶
func (s *SfntFeatureName) SetNameID(v int16)
SetNameID updates the NameID field in the record's packed storage.
func (*SfntFeatureName) SetOffsetToSettings ¶
func (s *SfntFeatureName) SetOffsetToSettings(v int32)
SetOffsetToSettings updates the OffsetToSettings field in the record's packed storage.
func (*SfntFeatureName) SetSettingCount ¶
func (s *SfntFeatureName) SetSettingCount(v uint16)
SetSettingCount updates the SettingCount field in the record's packed storage.
func (*SfntFeatureName) SettingCount ¶
func (s *SfntFeatureName) SettingCount() uint16
SettingCount returns the SettingCount field from the record's packed storage.
type SfntFontDescriptor ¶
type SfntFontDescriptor struct {
// contains filtered or unexported fields
}
SfntFontDescriptor
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntFontDescriptor
func (*SfntFontDescriptor) Name ¶
func (s *SfntFontDescriptor) Name() uint32
Name returns the Name field from the record's packed storage.
func (*SfntFontDescriptor) SetName ¶
func (s *SfntFontDescriptor) SetName(v uint32)
SetName updates the Name field in the record's packed storage.
func (*SfntFontDescriptor) SetValue ¶
func (s *SfntFontDescriptor) SetValue(v int32)
SetValue updates the Value field in the record's packed storage.
func (*SfntFontDescriptor) Value ¶
func (s *SfntFontDescriptor) Value() int32
Value returns the Value field from the record's packed storage.
type SfntFontFeatureSetting ¶
SfntFontFeatureSetting
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntFontFeatureSetting
type SfntFontRunFeature ¶
SfntFontRunFeature
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntFontRunFeature
type SfntInstance ¶
type SfntInstance struct {
// contains filtered or unexported fields
}
SfntInstance
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntInstance
func (*SfntInstance) Coord ¶
func (s *SfntInstance) Coord() [1]int32
Coord returns the Coord field from the record's packed storage.
func (*SfntInstance) Flags ¶
func (s *SfntInstance) Flags() int16
Flags returns the Flags field from the record's packed storage.
func (*SfntInstance) NameID ¶
func (s *SfntInstance) NameID() int16
NameID returns the NameID field from the record's packed storage.
func (*SfntInstance) SetCoord ¶
func (s *SfntInstance) SetCoord(v [1]int32)
SetCoord updates the Coord field in the record's packed storage.
func (*SfntInstance) SetFlags ¶
func (s *SfntInstance) SetFlags(v int16)
SetFlags updates the Flags field in the record's packed storage.
func (*SfntInstance) SetNameID ¶
func (s *SfntInstance) SetNameID(v int16)
SetNameID updates the NameID field in the record's packed storage.
type SfntNameHeader ¶
type SfntNameHeader struct {
Format uint16
Count uint16
StringOffset uint16
Rec [1]SfntNameRecord
}
SfntNameHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntNameHeader
type SfntNameRecord ¶
type SfntNameRecord struct {
PlatformID uint16
ScriptID uint16
LanguageID uint16
NameID uint16
Length uint16
Offset uint16
}
SfntNameRecord
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntNameRecord
type SfntVariationAxis ¶
type SfntVariationAxis struct {
// contains filtered or unexported fields
}
SfntVariationAxis
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntVariationAxis
func (*SfntVariationAxis) AxisTag ¶
func (s *SfntVariationAxis) AxisTag() uint32
AxisTag returns the AxisTag field from the record's packed storage.
func (*SfntVariationAxis) DefaultValue ¶
func (s *SfntVariationAxis) DefaultValue() int32
DefaultValue returns the DefaultValue field from the record's packed storage.
func (*SfntVariationAxis) Flags ¶
func (s *SfntVariationAxis) Flags() int16
Flags returns the Flags field from the record's packed storage.
func (*SfntVariationAxis) MaxValue ¶
func (s *SfntVariationAxis) MaxValue() int32
MaxValue returns the MaxValue field from the record's packed storage.
func (*SfntVariationAxis) MinValue ¶
func (s *SfntVariationAxis) MinValue() int32
MinValue returns the MinValue field from the record's packed storage.
func (*SfntVariationAxis) NameID ¶
func (s *SfntVariationAxis) NameID() int16
NameID returns the NameID field from the record's packed storage.
func (*SfntVariationAxis) SetAxisTag ¶
func (s *SfntVariationAxis) SetAxisTag(v uint32)
SetAxisTag updates the AxisTag field in the record's packed storage.
func (*SfntVariationAxis) SetDefaultValue ¶
func (s *SfntVariationAxis) SetDefaultValue(v int32)
SetDefaultValue updates the DefaultValue field in the record's packed storage.
func (*SfntVariationAxis) SetFlags ¶
func (s *SfntVariationAxis) SetFlags(v int16)
SetFlags updates the Flags field in the record's packed storage.
func (*SfntVariationAxis) SetMaxValue ¶
func (s *SfntVariationAxis) SetMaxValue(v int32)
SetMaxValue updates the MaxValue field in the record's packed storage.
func (*SfntVariationAxis) SetMinValue ¶
func (s *SfntVariationAxis) SetMinValue(v int32)
SetMinValue updates the MinValue field in the record's packed storage.
func (*SfntVariationAxis) SetNameID ¶
func (s *SfntVariationAxis) SetNameID(v int16)
SetNameID updates the NameID field in the record's packed storage.
type SfntVariationHeader ¶
type SfntVariationHeader struct {
// contains filtered or unexported fields
}
SfntVariationHeader
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/sfntVariationHeader
func (*SfntVariationHeader) Axis ¶
func (s *SfntVariationHeader) Axis() [1]SfntVariationAxis
Axis returns the Axis field from the record's packed storage.
func (*SfntVariationHeader) AxisCount ¶
func (s *SfntVariationHeader) AxisCount() uint16
AxisCount returns the AxisCount field from the record's packed storage.
func (*SfntVariationHeader) AxisSize ¶
func (s *SfntVariationHeader) AxisSize() uint16
AxisSize returns the AxisSize field from the record's packed storage.
func (*SfntVariationHeader) CountSizePairs ¶
func (s *SfntVariationHeader) CountSizePairs() uint16
CountSizePairs returns the CountSizePairs field from the record's packed storage.
func (*SfntVariationHeader) Instance ¶
func (s *SfntVariationHeader) Instance() [1]SfntInstance
Instance returns the Instance field from the record's packed storage.
func (*SfntVariationHeader) InstanceCount ¶
func (s *SfntVariationHeader) InstanceCount() uint16
InstanceCount returns the InstanceCount field from the record's packed storage.
func (*SfntVariationHeader) InstanceSize ¶
func (s *SfntVariationHeader) InstanceSize() uint16
InstanceSize returns the InstanceSize field from the record's packed storage.
func (*SfntVariationHeader) OffsetToData ¶
func (s *SfntVariationHeader) OffsetToData() uint16
OffsetToData returns the OffsetToData field from the record's packed storage.
func (*SfntVariationHeader) SetAxis ¶
func (s *SfntVariationHeader) SetAxis(v [1]SfntVariationAxis)
SetAxis updates the Axis field in the record's packed storage.
func (*SfntVariationHeader) SetAxisCount ¶
func (s *SfntVariationHeader) SetAxisCount(v uint16)
SetAxisCount updates the AxisCount field in the record's packed storage.
func (*SfntVariationHeader) SetAxisSize ¶
func (s *SfntVariationHeader) SetAxisSize(v uint16)
SetAxisSize updates the AxisSize field in the record's packed storage.
func (*SfntVariationHeader) SetCountSizePairs ¶
func (s *SfntVariationHeader) SetCountSizePairs(v uint16)
SetCountSizePairs updates the CountSizePairs field in the record's packed storage.
func (*SfntVariationHeader) SetInstance ¶
func (s *SfntVariationHeader) SetInstance(v [1]SfntInstance)
SetInstance updates the Instance field in the record's packed storage.
func (*SfntVariationHeader) SetInstanceCount ¶
func (s *SfntVariationHeader) SetInstanceCount(v uint16)
SetInstanceCount updates the InstanceCount field in the record's packed storage.
func (*SfntVariationHeader) SetInstanceSize ¶
func (s *SfntVariationHeader) SetInstanceSize(v uint16)
SetInstanceSize updates the InstanceSize field in the record's packed storage.
func (*SfntVariationHeader) SetOffsetToData ¶
func (s *SfntVariationHeader) SetOffsetToData(v uint16)
SetOffsetToData updates the OffsetToData field in the record's packed storage.
func (*SfntVariationHeader) SetVersion ¶
func (s *SfntVariationHeader) SetVersion(v int32)
SetVersion updates the Version field in the record's packed storage.
func (*SfntVariationHeader) Version ¶
func (s *SfntVariationHeader) Version() int32
Version returns the Version field from the record's packed storage.
type SizeofSfntcmapencoding ¶
type SizeofSfntcmapencoding uint32
const (
Sizeof_sfntCMapEncoding SizeofSfntcmapencoding = 8
)
func (SizeofSfntcmapencoding) String ¶
func (e SizeofSfntcmapencoding) String() string
type SizeofSfntcmapextendedsubheader ¶
type SizeofSfntcmapextendedsubheader uint32
const (
Sizeof_sfntCMapExtendedSubHeader SizeofSfntcmapextendedsubheader = 12
)
func (SizeofSfntcmapextendedsubheader) String ¶
func (e SizeofSfntcmapextendedsubheader) String() string
type SizeofSfntcmapheader ¶
type SizeofSfntcmapheader uint32
const (
Sizeof_sfntCMapHeader SizeofSfntcmapheader = 4
)
func (SizeofSfntcmapheader) String ¶
func (e SizeofSfntcmapheader) String() string
type SizeofSfntcmapsubheader ¶
type SizeofSfntcmapsubheader uint32
const (
Sizeof_sfntCMapSubHeader SizeofSfntcmapsubheader = 6
)
func (SizeofSfntcmapsubheader) String ¶
func (e SizeofSfntcmapsubheader) String() string
type SizeofSfntdescriptorheader ¶
type SizeofSfntdescriptorheader uint32
const (
Sizeof_sfntDescriptorHeader SizeofSfntdescriptorheader = 8
)
func (SizeofSfntdescriptorheader) String ¶
func (e SizeofSfntdescriptorheader) String() string
type SizeofSfntdirectory ¶
type SizeofSfntdirectory uint32
const (
Sizeof_sfntDirectory SizeofSfntdirectory = 12
)
func (SizeofSfntdirectory) String ¶
func (e SizeofSfntdirectory) String() string
type SizeofSfntinstance ¶
type SizeofSfntinstance uint32
const (
Sizeof_sfntInstance SizeofSfntinstance = 4
)
func (SizeofSfntinstance) String ¶
func (e SizeofSfntinstance) String() string
type SizeofSfntnameheader ¶
type SizeofSfntnameheader uint32
const (
Sizeof_sfntNameHeader SizeofSfntnameheader = 6
)
func (SizeofSfntnameheader) String ¶
func (e SizeofSfntnameheader) String() string
type SizeofSfntnamerecord ¶
type SizeofSfntnamerecord uint32
const (
Sizeof_sfntNameRecord SizeofSfntnamerecord = 12
)
func (SizeofSfntnamerecord) String ¶
func (e SizeofSfntnamerecord) String() string
type SizeofSfntvariationaxis ¶
type SizeofSfntvariationaxis uint32
const (
Sizeof_sfntVariationAxis SizeofSfntvariationaxis = 20
)
func (SizeofSfntvariationaxis) String ¶
func (e SizeofSfntvariationaxis) String() string
type SizeofSfntvariationheader ¶
type SizeofSfntvariationheader uint32
const (
Sizeof_sfntVariationHeader SizeofSfntvariationheader = 16
)
func (SizeofSfntvariationheader) String ¶
func (e SizeofSfntvariationheader) String() string
type TrakTable ¶
type TrakTable struct {
// contains filtered or unexported fields
}
TrakTable
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/TrakTable
func (*TrakTable) HorizOffset ¶
HorizOffset returns the HorizOffset field from the record's packed storage.
func (*TrakTable) SetHorizOffset ¶
SetHorizOffset updates the HorizOffset field in the record's packed storage.
func (*TrakTable) SetVersion ¶
SetVersion updates the Version field in the record's packed storage.
func (*TrakTable) SetVertOffset ¶
SetVertOffset updates the VertOffset field in the record's packed storage.
func (*TrakTable) VertOffset ¶
VertOffset returns the VertOffset field from the record's packed storage.
type TrakTableData ¶
type TrakTableData struct {
// contains filtered or unexported fields
}
TrakTableData
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/TrakTableData
func (*TrakTableData) NSizes ¶
func (s *TrakTableData) NSizes() uint16
NSizes returns the NSizes field from the record's packed storage.
func (*TrakTableData) NTracks ¶
func (s *TrakTableData) NTracks() uint16
NTracks returns the NTracks field from the record's packed storage.
func (*TrakTableData) SetNSizes ¶
func (s *TrakTableData) SetNSizes(v uint16)
SetNSizes updates the NSizes field in the record's packed storage.
func (*TrakTableData) SetNTracks ¶
func (s *TrakTableData) SetNTracks(v uint16)
SetNTracks updates the NTracks field in the record's packed storage.
func (*TrakTableData) SetSizeTableOffset ¶
func (s *TrakTableData) SetSizeTableOffset(v uint32)
SetSizeTableOffset updates the SizeTableOffset field in the record's packed storage.
func (*TrakTableData) SetTrakTable ¶
func (s *TrakTableData) SetTrakTable(v [1]TrakTableEntry)
SetTrakTable updates the TrakTable field in the record's packed storage.
func (*TrakTableData) SizeTableOffset ¶
func (s *TrakTableData) SizeTableOffset() uint32
SizeTableOffset returns the SizeTableOffset field from the record's packed storage.
func (*TrakTableData) TrakTable ¶
func (s *TrakTableData) TrakTable() [1]TrakTableEntry
TrakTable returns the TrakTable field from the record's packed storage.
type TrakTableEntry ¶
type TrakTableEntry struct {
// contains filtered or unexported fields
}
TrakTableEntry
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreText/TrakTableEntry
func (*TrakTableEntry) NameTableIndex ¶
func (s *TrakTableEntry) NameTableIndex() uint16
NameTableIndex returns the NameTableIndex field from the record's packed storage.
func (*TrakTableEntry) SetNameTableIndex ¶
func (s *TrakTableEntry) SetNameTableIndex(v uint16)
SetNameTableIndex updates the NameTableIndex field in the record's packed storage.
func (*TrakTableEntry) SetSizesOffset ¶
func (s *TrakTableEntry) SetSizesOffset(v uint16)
SetSizesOffset updates the SizesOffset field in the record's packed storage.
func (*TrakTableEntry) SetTrack ¶
func (s *TrakTableEntry) SetTrack(v int32)
SetTrack updates the Track field in the record's packed storage.
func (*TrakTableEntry) SizesOffset ¶
func (s *TrakTableEntry) SizesOffset() uint16
SizesOffset returns the SizesOffset field from the record's packed storage.
func (*TrakTableEntry) Track ¶
func (s *TrakTableEntry) Track() int32
Track returns the Track field from the record's packed storage.
type TrakValue ¶
type TrakValue = int16
See: https://developer.apple.com/documentation/CoreText/TrakValue