Documentation
¶
Overview ¶
Package coretext provides a fluent Go API over the macOS CoreText framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Index ¶
- Constants
- 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, sortCallback unsafe.Pointer, ...) corefoundation.CFArrayRef
- func CTFontCollectionCreateMatchingFontDescriptorsWithOptions(collection CTFontCollectionRef, options corefoundation.CFDictionaryRef) corefoundation.CFArrayRef
- func CTFontCollectionGetTypeID() int
- func CTFontCollectionSetExclusionDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef)
- func CTFontCollectionSetQueryDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef)
- func CTFontCopyAttribute(font CTFontRef, attribute corefoundation.CFStringRef) obj.Object
- func CTFontCopyAvailableTables(font CTFontRef, options CTFontTableOptions) corefoundation.CFArrayRef
- func CTFontCopyCharacterSet(font CTFontRef) corefoundation.CFCharacterSetRef
- 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 unsafe.Pointer) coregraphics.CGFontRef
- 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 int, 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) obj.Object
- func CTFontDescriptorCopyAttributes(descriptor CTFontDescriptorRef) corefoundation.CFDictionaryRef
- func CTFontDescriptorCopyLocalizedAttribute(descriptor CTFontDescriptorRef, attribute corefoundation.CFStringRef, ...) obj.Object
- func CTFontDescriptorCreateMatchingFontDescriptors(descriptor CTFontDescriptorRef, mandatoryAttributes corefoundation.CFSetRef) corefoundation.CFArrayRef
- func CTFontDescriptorGetTypeID() int
- func CTFontDescriptorMatchFontDescriptorsWithProgressHandler(descriptors corefoundation.CFArrayRef, ...) bool
- func CTFontDrawGlyphs(font CTFontRef, glyphs unsafe.Pointer, positions unsafe.Pointer, count int, ...)
- func CTFontDrawImageFromAdaptiveImageProviderAtPoint(font CTFontRef, provider unsafe.Pointer, point corefoundation.CGPoint, ...)
- 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 unsafe.Pointer, glyphs unsafe.Pointer, count int) bool
- func CTFontGetLeading(font CTFontRef) float64
- func CTFontGetLigatureCaretPositions(font CTFontRef, glyph uint16, maxPositions int) (result int, positions float64)
- func CTFontGetMatrix(font CTFontRef) corefoundation.CGAffineTransform
- func CTFontGetOpticalBoundsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, boundingRects unsafe.Pointer, count int, ...) corefoundation.CGRect
- func CTFontGetPlatformFont(font CTFontRef, attributes unsafe.Pointer) int
- func CTFontGetSize(font CTFontRef) float64
- func CTFontGetSlantAngle(font CTFontRef) float64
- func CTFontGetStringEncoding(font CTFontRef) int
- func CTFontGetTypeID() int
- func CTFontGetTypographicBoundsForAdaptiveImageProvider(font CTFontRef, provider unsafe.Pointer) corefoundation.CGRect
- func CTFontGetUnderlinePosition(font CTFontRef) float64
- func CTFontGetUnderlineThickness(font CTFontRef) float64
- func CTFontGetUnitsPerEm(font CTFontRef) int
- func CTFontGetVerticalTranslationsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, translations unsafe.Pointer, count int)
- func CTFontGetXHeight(font CTFontRef) float64
- func CTFontHasTable(font CTFontRef, tag int) bool
- func CTFontManagerCompareFontFamilyNames(family1 unsafe.Pointer, family2 unsafe.Pointer, context_ unsafe.Pointer) unsafe.Pointer
- 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 func(unsafe.Pointer, int) int) corefoundation.CFRunLoopSourceRef
- 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) error
- func CTFontManagerRegisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, ...) bool
- func CTFontManagerRegisterGraphicsFont(font coregraphics.CGFontRef) error
- 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) error
- func CTFontManagerUnregisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, ...) bool
- func CTFontManagerUnregisterGraphicsFont(font coregraphics.CGFontRef) error
- 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() int
- func CTFrameGetVisibleStringRange(frame CTFrameRef) corefoundation.CFRange
- func CTFramesetterGetTypeID() int
- func CTFramesetterSuggestFrameSizeWithConstraints(framesetter CTFramesetterRef, stringRange corefoundation.CFRange, ...) corefoundation.CGSize
- func CTGetCoreTextVersion() uint32
- func CTGlyphInfoGetCharacterIdentifier(glyphInfo CTGlyphInfoRef) uint16
- func CTGlyphInfoGetGlyph(glyphInfo CTGlyphInfoRef) uint16
- func CTGlyphInfoGetGlyphName(glyphInfo CTGlyphInfoRef) corefoundation.CFStringRef
- func CTGlyphInfoGetTypeID() int
- func CTLineDraw(line CTLineRef, context_ coregraphics.CGContextRef)
- func CTLineEnumerateCaretOffsets(line CTLineRef, block unsafe.Pointer)
- 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) (result float64, secondaryOffset 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() int
- func CTLineGetTypographicBounds(line CTLineRef) (result float64, ascent float64, descent float64, leading float64)
- func CTParagraphStyleGetTypeID() int
- func CTParagraphStyleGetValueForSpecifier(paragraphStyle CTParagraphStyleRef, spec CTParagraphStyleSpecifier, ...) bool
- func CTRubyAnnotationGetSizeFactor(rubyAnnotation CTRubyAnnotationRef) float64
- func CTRubyAnnotationGetTextForPosition(rubyAnnotation CTRubyAnnotationRef, position CTRubyPosition) corefoundation.CFStringRef
- func CTRubyAnnotationGetTypeID() int
- func CTRunDelegateGetRefCon(runDelegate CTRunDelegateRef) unsafe.Pointer
- func CTRunDelegateGetTypeID() int
- func CTRunDraw(run CTRunRef, context_ coregraphics.CGContextRef, ...)
- 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 uint16)
- func CTRunGetGlyphsPtr(run CTRunRef) unsafe.Pointer
- func CTRunGetImageBounds(run CTRunRef, context_ coregraphics.CGContextRef, ...) 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) unsafe.Pointer
- func CTRunGetStringRange(run CTRunRef) corefoundation.CFRange
- func CTRunGetTextMatrix(run CTRunRef) corefoundation.CGAffineTransform
- func CTRunGetTypeID() int
- func CTRunGetTypographicBounds(run CTRunRef, range_ corefoundation.CFRange) (result float64, ascent float64, descent float64, leading float64)
- func CTTextTabGetLocation(tab CTTextTabRef) float64
- func CTTextTabGetOptions(tab CTTextTabRef) corefoundation.CFDictionaryRef
- func CTTextTabGetTypeID() int
- func CTTypesetterGetTypeID() int
- 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 KCTAdaptiveImageProviderAttributeName() obj.Object
- func KCTBackgroundColorAttributeName() obj.Object
- func KCTBaselineClassAttributeName() obj.Object
- func KCTBaselineClassHanging() obj.Object
- func KCTBaselineClassIdeographicCentered() obj.Object
- func KCTBaselineClassIdeographicHigh() obj.Object
- func KCTBaselineClassIdeographicLow() obj.Object
- func KCTBaselineClassMath() obj.Object
- func KCTBaselineClassRoman() obj.Object
- func KCTBaselineInfoAttributeName() obj.Object
- func KCTBaselineOffsetAttributeName() obj.Object
- func KCTBaselineOriginalFont() obj.Object
- func KCTBaselineReferenceFont() obj.Object
- func KCTBaselineReferenceInfoAttributeName() obj.Object
- func KCTCharacterShapeAttributeName() obj.Object
- func KCTFontAttributeName() obj.Object
- func KCTFontBaselineAdjustAttribute() obj.Object
- func KCTFontCascadeListAttribute() obj.Object
- func KCTFontCharacterSetAttribute() obj.Object
- func KCTFontCollectionDisallowAutoActivationOption() obj.Object
- func KCTFontCollectionIncludeDisabledFontsOption() obj.Object
- func KCTFontCollectionRemoveDuplicatesOption() obj.Object
- func KCTFontCopyrightNameKey() obj.Object
- func KCTFontDescriptionNameKey() obj.Object
- func KCTFontDescriptorLanguageAttribute() obj.Object
- func KCTFontDescriptorMatchingCurrentAssetSize() obj.Object
- func KCTFontDescriptorMatchingDescriptors() obj.Object
- func KCTFontDescriptorMatchingError() obj.Object
- func KCTFontDescriptorMatchingPercentage() obj.Object
- func KCTFontDescriptorMatchingResult() obj.Object
- func KCTFontDescriptorMatchingSourceDescriptor() obj.Object
- func KCTFontDescriptorMatchingTotalAssetSize() obj.Object
- func KCTFontDescriptorMatchingTotalDownloadedSize() obj.Object
- func KCTFontDesignerNameKey() obj.Object
- func KCTFontDesignerURLNameKey() obj.Object
- func KCTFontDisplayNameAttribute() obj.Object
- func KCTFontDownloadableAttribute() obj.Object
- func KCTFontDownloadedAttribute() obj.Object
- func KCTFontEnabledAttribute() obj.Object
- func KCTFontFamilyNameAttribute() obj.Object
- func KCTFontFamilyNameKey() obj.Object
- func KCTFontFeatureSampleTextKey() obj.Object
- func KCTFontFeatureSelectorDefaultKey() obj.Object
- func KCTFontFeatureSelectorIdentifierKey() obj.Object
- func KCTFontFeatureSelectorNameKey() obj.Object
- func KCTFontFeatureSelectorSettingKey() obj.Object
- func KCTFontFeatureSettingsAttribute() obj.Object
- func KCTFontFeatureTooltipTextKey() obj.Object
- func KCTFontFeatureTypeExclusiveKey() obj.Object
- func KCTFontFeatureTypeIdentifierKey() obj.Object
- func KCTFontFeatureTypeNameKey() obj.Object
- func KCTFontFeatureTypeSelectorsKey() obj.Object
- func KCTFontFeaturesAttribute() obj.Object
- func KCTFontFixedAdvanceAttribute() obj.Object
- func KCTFontFormatAttribute() obj.Object
- func KCTFontFullNameKey() obj.Object
- func KCTFontLanguagesAttribute() obj.Object
- func KCTFontLicenseNameKey() obj.Object
- func KCTFontLicenseURLNameKey() obj.Object
- func KCTFontMacintoshEncodingsAttribute() obj.Object
- func KCTFontManagerBundleIdentifier() obj.Object
- func KCTFontManagerErrorDomain() obj.Object
- func KCTFontManagerErrorFontURLsKey() obj.Object
- func KCTFontManagerRegisteredFontsChangedNotification() obj.Object
- func KCTFontManufacturerNameKey() obj.Object
- func KCTFontMatrixAttribute() obj.Object
- func KCTFontNameAttribute() obj.Object
- func KCTFontOpenTypeFeatureTag() obj.Object
- func KCTFontOpenTypeFeatureValue() obj.Object
- func KCTFontOpticalSizeAttribute() obj.Object
- func KCTFontOrientationAttribute() obj.Object
- func KCTFontPostScriptCIDNameKey() obj.Object
- func KCTFontPostScriptNameKey() obj.Object
- func KCTFontPriorityAttribute() obj.Object
- func KCTFontRegistrationScopeAttribute() obj.Object
- func KCTFontSampleTextNameKey() obj.Object
- func KCTFontSizeAttribute() obj.Object
- func KCTFontSlantTrait() obj.Object
- func KCTFontStyleNameAttribute() obj.Object
- func KCTFontStyleNameKey() obj.Object
- func KCTFontSubFamilyNameKey() obj.Object
- func KCTFontSymbolicTrait() obj.Object
- func KCTFontTrademarkNameKey() obj.Object
- func KCTFontTraitsAttribute() obj.Object
- func KCTFontURLAttribute() obj.Object
- func KCTFontUniqueNameKey() obj.Object
- func KCTFontVariationAttribute() obj.Object
- func KCTFontVariationAxesAttribute() obj.Object
- func KCTFontVariationAxisDefaultValueKey() obj.Object
- func KCTFontVariationAxisHiddenKey() obj.Object
- func KCTFontVariationAxisIdentifierKey() obj.Object
- func KCTFontVariationAxisMaximumValueKey() obj.Object
- func KCTFontVariationAxisMinimumValueKey() obj.Object
- func KCTFontVariationAxisNameKey() obj.Object
- func KCTFontVendorURLNameKey() obj.Object
- func KCTFontVersionNameKey() obj.Object
- func KCTFontWeightTrait() obj.Object
- func KCTFontWidthTrait() obj.Object
- func KCTForegroundColorAttributeName() obj.Object
- func KCTForegroundColorFromContextAttributeName() obj.Object
- func KCTFrameClippingPathsAttributeName() obj.Object
- func KCTFramePathClippingPathAttributeName() obj.Object
- func KCTFramePathFillRuleAttributeName() obj.Object
- func KCTFramePathWidthAttributeName() obj.Object
- func KCTFrameProgressionAttributeName() obj.Object
- func KCTGlyphInfoAttributeName() obj.Object
- func KCTHorizontalInVerticalFormsAttributeName() obj.Object
- func KCTKernAttributeName() obj.Object
- func KCTLanguageAttributeName() obj.Object
- func KCTLigatureAttributeName() obj.Object
- func KCTParagraphStyleAttributeName() obj.Object
- func KCTRubyAnnotationAttributeName() obj.Object
- func KCTRubyAnnotationScaleToFitAttributeName() obj.Object
- func KCTRubyAnnotationSizeFactorAttributeName() obj.Object
- func KCTRunDelegateAttributeName() obj.Object
- func KCTStrokeColorAttributeName() obj.Object
- func KCTStrokeWidthAttributeName() obj.Object
- func KCTSuperscriptAttributeName() obj.Object
- func KCTTabColumnTerminatorsAttributeName() obj.Object
- func KCTTrackingAttributeName() obj.Object
- func KCTTypesetterOptionAllowUnboundedLayout() obj.Object
- func KCTTypesetterOptionDisableBidiProcessing() obj.Object
- func KCTTypesetterOptionForcedEmbeddingLevel() obj.Object
- func KCTUnderlineColorAttributeName() obj.Object
- func KCTUnderlineStyleAttributeName() obj.Object
- func KCTVerticalFormsAttributeName() obj.Object
- func KCTWritingDirectionAttributeName() obj.Object
- type ALMXGlyphEntry
- type ALMXHeader
- type AnchorPoint
- type AnchorPointTable
- type AnkrTable
- type BslnFormat0Part
- type BslnFormat1Part
- type BslnFormat2Part
- type BslnFormat3Part
- type BslnFormatUnion
- type BslnTable
- type CTAdaptiveImageProviding
- type CTCharacterCollection
- type CTFont
- type CTFontCollection
- type CTFontCollectionCopyOptions
- type CTFontCollectionRef
- func CTFontCollectionCreateCopyWithFontDescriptors(original CTFontCollectionRef, queryDescriptors corefoundation.CFArrayRef, ...) CTFontCollectionRef
- func CTFontCollectionCreateFromAvailableFonts(options corefoundation.CFDictionaryRef) CTFontCollectionRef
- func CTFontCollectionCreateWithFontDescriptors(queryDescriptors corefoundation.CFArrayRef, ...) CTFontCollectionRef
- type CTFontDescriptor
- type CTFontDescriptorMatchingState
- 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
- type CTFontFormat
- type CTFontManagerAutoActivationSetting
- type CTFontManagerError
- type CTFontManagerScope
- type CTFontOptions
- type CTFontOrientation
- 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, str corefoundation.CFStringRef, ...) CTFontRef
- func CTFontCreateForStringWithLanguage(currentFont CTFontRef, str 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.CGFontRef, size float64, ...) CTFontRef
- func CTFontCreateWithName(name corefoundation.CFStringRef, size float64, ...) CTFontRef
- func CTFontCreateWithNameAndOptions(name corefoundation.CFStringRef, size float64, ...) CTFontRef
- func CTFontCreateWithPlatformFont(platformFont int, size float64, matrix *corefoundation.CGAffineTransform, ...) CTFontRef
- func CTFontCreateWithQuickdrawInstance(identifier int16, style uint8, size float64) (result CTFontRef, name uint8)
- type CTFontStylisticClass
- type CTFontSymbolicTraits
- type CTFontTableOptions
- type CTFontUIFontType
- type CTFrame
- type CTFramePathFillRule
- type CTFrameProgression
- type CTFrameRef
- type CTFramesetter
- type CTFramesetterRef
- type CTGlyphInfo
- 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
- type CTLine
- 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
- type CTLineTruncationType
- type CTMutableFontCollectionRef
- type CTParagraphStyle
- type CTParagraphStyleRef
- type CTParagraphStyleSetting
- type CTParagraphStyleSpecifier
- type CTRubyAlignment
- type CTRubyAnnotation
- 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
- type CTRubyOverhang
- type CTRubyPosition
- type CTRun
- type CTRunDelegate
- type CTRunDelegateCallbacks
- type CTRunDelegateRef
- type CTRunRef
- type CTRunStatus
- type CTTextAlignment
- type CTTextTab
- type CTTextTabRef
- type CTTypesetter
- type CTTypesetterRef
- type CTUnderlineStyle
- type CTUnderlineStyleModifiers
- type CTWritingDirection
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type EvCmd
- type FilesecProperty
- type Flag
- type FontVariation
- type Idtype
- type IpcInfoObjectType
- type JustDirectionTable
- type JustPCAction
- type JustPCActionSubrecord
- type JustPCConditionalAddAction
- type JustPCDecompositionAction
- type JustPCDuctilityAction
- type JustPCGlyphRepeatAddAction
- type JustPostcompTable
- type JustTable
- type JustWidthDeltaEntry
- type JustWidthDeltaGroup
- type KernFormatSpecificHeader
- type KernIndexArrayHeader
- type KernKerningPair
- type KernOffsetTable
- type KernOrderedListEntry
- type KernOrderedListHeader
- type KernSimpleArrayHeader
- type KernStateEntry
- type KernStateHeader
- type KernSubtableHeader
- type KernTableHeader
- type KernVersion0Header
- type KernVersion0SubtableHeader
- type KerxAnchorPointAction
- type KerxControlPointAction
- type KerxControlPointEntry
- type KerxControlPointHeader
- type KerxCoordinateAction
- type KerxFormatSpecificHeader
- type KerxIndexArrayHeader
- type KerxKerningPair
- type KerxOrderedListEntry
- type KerxOrderedListHeader
- type KerxSimpleArrayHeader
- type KerxStateEntry
- type KerxStateHeader
- type KerxSubtableHeader
- type KerxTableHeader
- type LcarCaretClassEntry
- type LcarCaretTable
- type LtagStringRange
- type LtagTable
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MortChain
- type MortContextualSubtable
- type MortFeatureEntry
- type MortInsertionSubtable
- type MortLigatureSubtable
- type MortRearrangementSubtable
- type MortSpecificSubtable
- type MortSubtable
- type MortSwashSubtable
- type MortTable
- type MorxChain
- type MorxContextualSubtable
- type MorxInsertionSubtable
- type MorxLigatureSubtable
- type MorxRearrangementSubtable
- type MorxSpecificSubtable
- type MorxSubtable
- type MorxTable
- type MpoFlags
- type NXMouseButton
- type OSClockid
- type OpbdSideValues
- type OpbdTable
- type Perm
- type PropLookupSegment
- type PropLookupSingle
- type PropTable
- type PtrauthKey
- type QosClass
- type ROTAGlyphEntry
- type ROTAHeader
- type SFNTLookupArrayHeader
- type SFNTLookupBinarySearchHeader
- type SFNTLookupFormatSpecificHeader
- type SFNTLookupSegment
- type SFNTLookupSegmentHeader
- type SFNTLookupSingle
- type SFNTLookupSingleHeader
- type SFNTLookupTable
- type SFNTLookupTrimmedArrayHeader
- type SFNTLookupVectorHeader
- type STClassTable
- type STEntryOne
- type STEntryTwo
- type STEntryZero
- type STHeader
- type STXEntryOne
- type STXEntryTwo
- type STXEntryZero
- type STXHeader
- type SfntCMapEncoding
- type SfntCMapExtendedSubHeader
- type SfntCMapHeader
- type SfntCMapSubHeader
- type SfntDescriptorHeader
- type SfntDirectory
- type SfntDirectoryEntry
- type SfntFeatureHeader
- type SfntFeatureName
- type SfntFontDescriptor
- type SfntFontFeatureSetting
- type SfntFontRunFeature
- type SfntInstance
- type SfntNameHeader
- type SfntNameRecord
- type SfntVariationAxis
- type SfntVariationHeader
- type Tag
- type TrakTable
- type TrakTableData
- type TrakTableEntry
- type Type
- type VirtualMemoryGuardExceptionCode
Constants ¶
const ( CmapFontTableTag = 1668112752 DescriptorFontTableTag = 1717859171 FeatureFontTableTag = 1717920116 KANKRCurrentVersion = 0 KAbbrevSquaredLigaturesOffSelector = 15 KAbbrevSquaredLigaturesOnSelector = 14 KAllCapsSelector = 1 KAllLowerCaseSelector = 2 KAllTypeFeaturesOffSelector = 1 KAllTypeFeaturesOnSelector = 0 KAllTypographicFeaturesType = 0 KAltHalfWidthTextSelector = 6 KAltProportionalTextSelector = 5 KAlternateHorizKanaOffSelector = 1 KAlternateHorizKanaOnSelector = 0 KAlternateKanaType = 34 KAlternateVertKanaOffSelector = 3 KAlternateVertKanaOnSelector = 2 KAnnotationType = 24 KAsteriskToMultiplyOffSelector = 3 KAsteriskToMultiplyOnSelector = 2 KBSLNControlPointFormatNoMap = 2 KBSLNControlPointFormatWithMap = 3 KBSLNCurrentVersion = 65536 KBSLNDistanceFormatNoMap = 0 KBSLNDistanceFormatWithMap = 1 KBSLNHangingBaseline = 3 KBSLNIdeographicCenterBaseline = 1 KBSLNIdeographicHighBaseline = 5 KBSLNIdeographicLowBaseline = 2 KBSLNLastBaseline = 31 KBSLNMathBaseline = 4 KBSLNNoBaseline = 255 KBSLNNoBaselineOverride = 255 KBSLNNumBaselineClasses = 32 KBSLNRomanBaseline = 0 KBSLNTag = 1651731566 KBoxAnnotationSelector = 1 KCJKItalicRomanOffSelector = 3 KCJKItalicRomanOnSelector = 2 KCJKItalicRomanSelector = 1 KCJKRomanSpacingType = 103 KCJKSymbolAltFiveSelector = 5 KCJKSymbolAltFourSelector = 4 KCJKSymbolAltOneSelector = 1 KCJKSymbolAltThreeSelector = 3 KCJKSymbolAltTwoSelector = 2 KCJKSymbolAlternativesType = 29 KCJKVerticalRomanCenteredSelector = 0 KCJKVerticalRomanHBaselineSelector = 1 KCJKVerticalRomanPlacementType = 31 KCTFontClassMaskShift = 28 KCTFontPriorityComputer = 30000 KCTFontPriorityDynamic = 50000 KCTFontPriorityNetwork = 20000 KCTFontPriorityProcess = 60000 KCTFontPrioritySystem = 10000 KCTFontPriorityUser = 40000 KCTFontTableAcnt = 1633906292 KCTFontTableAnkr = 1634626418 KCTFontTableAvar = 1635148146 KCTFontTableBASE = 1111577413 KCTFontTableBdat = 1650745716 KCTFontTableBhed = 1651008868 KCTFontTableBloc = 1651273571 KCTFontTableBsln = 1651731566 KCTFontTableCBDT = 1128416340 KCTFontTableCBLC = 1128418371 KCTFontTableCFF = 1128678944 KCTFontTableCFF2 = 1128678962 KCTFontTableCOLR = 1129270354 KCTFontTableCPAL = 1129333068 KCTFontTableCidg = 1667851367 KCTFontTableCmap = 1668112752 KCTFontTableCvar = 1668702578 KCTFontTableCvt = 1668707360 KCTFontTableDSIG = 1146308935 KCTFontTableEBDT = 1161970772 KCTFontTableEBLC = 1161972803 KCTFontTableEBSC = 1161974595 KCTFontTableFdsc = 1717859171 KCTFontTableFeat = 1717920116 KCTFontTableFmtx = 1718449272 KCTFontTableFond = 1718578788 KCTFontTableFpgm = 1718642541 KCTFontTableFvar = 1719034226 KCTFontTableGDEF = 1195656518 KCTFontTableGPOS = 1196445523 KCTFontTableGSUB = 1196643650 KCTFontTableGasp = 1734439792 KCTFontTableGlyf = 1735162214 KCTFontTableGvar = 1735811442 KCTFontTableHVAR = 1213612370 KCTFontTableHdmx = 1751412088 KCTFontTableHead = 1751474532 KCTFontTableHhea = 1751672161 KCTFontTableHmtx = 1752003704 KCTFontTableHsty = 1752396921 KCTFontTableJSTF = 1246975046 KCTFontTableJust = 1786082164 KCTFontTableKern = 1801810542 KCTFontTableKerx = 1801810552 KCTFontTableLTSH = 1280594760 KCTFontTableLcar = 1818452338 KCTFontTableLoca = 1819239265 KCTFontTableLtag = 1819566439 KCTFontTableMATH = 1296127048 KCTFontTableMERG = 1296388679 KCTFontTableMVAR = 1297498450 KCTFontTableMaxp = 1835104368 KCTFontTableMeta = 1835365473 KCTFontTableMort = 1836020340 KCTFontTableMorx = 1836020344 KCTFontTableName = 1851878757 KCTFontTableOS2 = 1330851634 KCTFontTableOpbd = 1869636196 KCTFontTablePCLT = 1346587732 KCTFontTablePost = 1886352244 KCTFontTablePrep = 1886545264 KCTFontTableProp = 1886547824 KCTFontTableSTAT = 1398030676 KCTFontTableSVG = 1398163232 KCTFontTableSbit = 1935829364 KCTFontTableSbix = 1935829368 KCTFontTableTrak = 1953653099 KCTFontTableVDMX = 1447316824 KCTFontTableVORG = 1448038983 KCTFontTableVVAR = 1448493394 KCTFontTableVhea = 1986553185 KCTFontTableVmtx = 1986884728 KCTFontTableXref = 2020762982 KCTFontTableZapf = 1516335206 KCTRunDelegateCurrentVersion = 1 KCTRunDelegateVersion1 = 1 KCTWritingDirectionEmbedding = 0 KCTWritingDirectionOverride = 2 KCanonicalCompositionOffSelector = 1 KCanonicalCompositionOnSelector = 0 KCaseSensitiveLayoutOffSelector = 1 KCaseSensitiveLayoutOnSelector = 0 KCaseSensitiveLayoutType = 33 KCaseSensitiveSpacingOffSelector = 3 KCaseSensitiveSpacingOnSelector = 2 KCharacterAlternativesType = 17 KCharacterShapeType = 20 KCircleAnnotationSelector = 3 KCommonLigaturesOffSelector = 3 KCommonLigaturesOnSelector = 2 KCompatibilityCompositionOffSelector = 3 KCompatibilityCompositionOnSelector = 2 KContextualAlternatesOffSelector = 1 KContextualAlternatesOnSelector = 0 KContextualAlternatesType = 36 KContextualLigaturesOffSelector = 19 KContextualLigaturesOnSelector = 18 KContextualSwashAlternatesOffSelector = 5 KContextualSwashAlternatesOnSelector = 4 KCursiveConnectionType = 2 KCursiveSelector = 2 KDecomposeDiacriticsSelector = 2 KDecorativeBordersSelector = 4 KDefaultCJKRomanSelector = 2 KDefaultLowerCaseSelector = 0 KDefaultUpperCaseSelector = 0 KDesignComplexityType = 18 KDesignLevel1Selector = 0 KDesignLevel2Selector = 1 KDesignLevel3Selector = 2 KDesignLevel4Selector = 3 KDesignLevel5Selector = 4 KDiacriticsType = 9 KDiagonalFractionsSelector = 2 KDiamondAnnotationSelector = 8 KDingbatsSelector = 1 KDiphthongLigaturesOffSelector = 11 KDiphthongLigaturesOnSelector = 10 KDisplayTextSelector = 1 KEngravedTextSelector = 2 KExpertCharactersSelector = 10 KExponentsOffSelector = 9 KExponentsOnSelector = 8 KFleuronsSelector = 3 KFontAlbanianLanguage = 36 KFontAmharicLanguage = 85 KFontAmharicScript = 28 KFontArabicLanguage = 12 KFontArabicScript = 4 KFontArmenianLanguage = 51 KFontArmenianScript = 24 KFontAssameseLanguage = 68 KFontAymaraLanguage = 134 KFontAzerbaijanArLanguage = 50 KFontAzerbaijaniLanguage = 49 KFontBasqueLanguage = 129 KFontBengaliLanguage = 67 KFontBengaliScript = 13 KFontBulgarianLanguage = 44 KFontBurmeseLanguage = 77 KFontBurmeseScript = 19 KFontByelorussianLanguage = 46 KFontCatalanLanguage = 130 KFontChewaLanguage = 92 KFontChineseScript = 2 KFontCopyrightName = 0 KFontCroatianLanguage = 18 KFontCustom16BitScript = 2 KFontCustom816BitScript = 1 KFontCustom8BitScript = 0 KFontCustomPlatform = 4 KFontCyrillicScript = 7 KFontCzechLanguage = 38 KFontDanishLanguage = 7 KFontDescriptionName = 10 KFontDesignerName = 9 KFontDesignerURLName = 12 KFontDevanagariScript = 9 KFontDutchLanguage = 4 KFontDzongkhaLanguage = 137 KFontEastEuropeanRomanScript = 29 KFontEnglishLanguage = 0 KFontEsperantoLanguage = 94 KFontEstonianLanguage = 27 KFontEthiopicScript = 28 KFontExtendedArabicScript = 31 KFontFaeroeseLanguage = 30 KFontFamilyName = 1 KFontFarsiLanguage = 31 KFontFinnishLanguage = 13 KFontFlemishLanguage = 34 KFontFrenchLanguage = 1 KFontFullName = 4 KFontGallaLanguage = 87 KFontGeezScript = 28 KFontGeorgianLanguage = 52 KFontGeorgianScript = 23 KFontGermanLanguage = 2 KFontGreekLanguage = 14 KFontGreekScript = 6 KFontGuaraniLanguage = 133 KFontGujaratiLanguage = 69 KFontGujaratiScript = 11 KFontGurmukhiScript = 10 KFontHebrewLanguage = 10 KFontHebrewScript = 5 KFontHindiLanguage = 21 KFontHungarianLanguage = 26 KFontISO10646_1993Semantics = 2 KFontIcelandicLanguage = 15 KFontIndonesianLanguage = 81 KFontIrishLanguage = 35 KFontItalianLanguage = 3 KFontJapaneseLanguage = 11 KFontJapaneseScript = 1 KFontJavaneseRomLanguage = 138 KFontKannadaLanguage = 73 KFontKannadaScript = 16 KFontKashmiriLanguage = 61 KFontKazakhLanguage = 48 KFontKhmerLanguage = 78 KFontKhmerScript = 20 KFontKirghizLanguage = 54 KFontKoreanLanguage = 23 KFontKoreanScript = 3 KFontKurdishLanguage = 60 KFontLaoLanguage = 79 KFontLaotianScript = 22 KFontLappishLanguage = 29 KFontLastReservedName = 255 KFontLatinLanguage = 131 KFontLatvianLanguage = 28 KFontLettishLanguage = 28 KFontLicenseDescriptionName = 13 KFontLicenseInfoURLName = 14 KFontLithuanianLanguage = 24 KFontMacCompatibleFullName = 18 KFontMacedonianLanguage = 43 KFontMacintoshPlatform = 1 KFontMalagasyLanguage = 93 KFontMalayArabicLanguage = 84 KFontMalayRomanLanguage = 83 KFontMalayalamLanguage = 72 KFontMalayalamScript = 17 KFontMalteseLanguage = 16 KFontManufacturerName = 8 KFontMarathiLanguage = 66 KFontMicrosoftPlatform = 3 KFontMicrosoftStandardScript = 1 KFontMicrosoftSymbolScript = 0 KFontMicrosoftUCS4Script = 10 KFontMoldavianLanguage = 53 KFontMongolianCyrLanguage = 58 KFontMongolianLanguage = 57 KFontMongolianScript = 27 KFontNepaliLanguage = 64 KFontNoLanguageCode = 4294967295 KFontNoNameCode = 4294967295 KFontNoPlatformCode = 4294967295 KFontNoScriptCode = 4294967295 KFontNorwegianLanguage = 9 KFontOriyaLanguage = 71 KFontOriyaScript = 12 KFontOromoLanguage = 87 KFontPashtoLanguage = 59 KFontPersianLanguage = 31 KFontPolishLanguage = 25 KFontPortugueseLanguage = 8 KFontPostScriptCIDName = 20 KFontPostscriptName = 6 KFontPreferredFamilyName = 16 KFontPreferredSubfamilyName = 17 KFontPunjabiLanguage = 70 KFontQuechuaLanguage = 132 KFontRSymbolScript = 8 KFontReservedPlatform = 2 KFontRomanScript = 0 KFontRomanianLanguage = 37 KFontRuandaLanguage = 90 KFontRundiLanguage = 91 KFontRussian = 7 KFontRussianLanguage = 32 KFontSaamiskLanguage = 29 KFontSampleTextName = 19 KFontSanskritLanguage = 65 KFontSerbianLanguage = 42 KFontSimpChineseLanguage = 33 KFontSimpleChineseScript = 25 KFontSindhiLanguage = 62 KFontSindhiScript = 31 KFontSinhaleseLanguage = 76 KFontSinhaleseScript = 18 KFontSlavicScript = 29 KFontSlovakLanguage = 39 KFontSlovenianLanguage = 40 KFontSomaliLanguage = 88 KFontSpanishLanguage = 6 KFontStyleName = 2 KFontSundaneseRomLanguage = 139 KFontSwahiliLanguage = 89 KFontSwedishLanguage = 5 KFontTagalogLanguage = 82 KFontTajikiLanguage = 55 KFontTamilLanguage = 74 KFontTamilScript = 14 KFontTatarLanguage = 135 KFontTeluguLanguage = 75 KFontTeluguScript = 15 KFontThaiLanguage = 22 KFontThaiScript = 21 KFontTibetanLanguage = 63 KFontTibetanScript = 26 KFontTigrinyaLanguage = 86 KFontTradChineseLanguage = 19 KFontTrademarkName = 7 KFontTraditionalChineseScript = 2 KFontTurkishLanguage = 17 KFontTurkmenLanguage = 56 KFontUighurLanguage = 136 KFontUkrainianLanguage = 45 KFontUnicodeDefaultSemantics = 0 KFontUnicodePlatform = 0 KFontUnicodeV1_1Semantics = 1 KFontUnicodeV2_0BMPOnlySemantics = 3 KFontUnicodeV2_0FullCoverageSemantics = 4 KFontUnicodeV4_0VariationSequenceSemantics = 5 KFontUnicode_FullRepertoire = 6 KFontUninterpretedScript = 32 KFontUniqueName = 3 KFontUrduLanguage = 20 KFontUzbekLanguage = 47 KFontVendorURLName = 11 KFontVersionName = 5 KFontVietnameseLanguage = 80 KFontVietnameseScript = 30 KFontWelshLanguage = 128 KFontYiddishLanguage = 41 KFormInterrobangOffSelector = 7 KFormInterrobangOnSelector = 6 KFractionsType = 11 KFullWidthCJKRomanSelector = 3 KFullWidthIdeographsSelector = 0 KFullWidthKanaSelector = 0 KHalfWidthCJKRomanSelector = 0 KHalfWidthIdeographsSelector = 2 KHalfWidthTextSelector = 2 KHanjaToHangulAltOneSelector = 7 KHanjaToHangulAltThreeSelector = 9 KHanjaToHangulAltTwoSelector = 8 KHanjaToHangulSelector = 1 KHideDiacriticsSelector = 1 KHiraganaToKatakanaSelector = 2 KHistoricalLigaturesOffSelector = 21 KHistoricalLigaturesOnSelector = 20 KHojoCharactersSelector = 12 KHyphenToEnDashOffSelector = 3 KHyphenToEnDashOnSelector = 2 KHyphenToMinusOffSelector = 1 KHyphenToMinusOnSelector = 0 KHyphensToEmDashOffSelector = 1 KHyphensToEmDashOnSelector = 0 KIdeographicAltFiveSelector = 5 KIdeographicAltFourSelector = 4 KIdeographicAltOneSelector = 1 KIdeographicAltThreeSelector = 3 KIdeographicAltTwoSelector = 2 KIdeographicAlternativesType = 30 KIdeographicSpacingType = 26 KIlluminatedCapsSelector = 3 KInequalityLigaturesOffSelector = 7 KInequalityLigaturesOnSelector = 6 KInferiorsSelector = 2 KInitialCapsAndSmallCapsSelector = 5 KInitialCapsSelector = 4 KInternationalSymbolsSelector = 5 KInvertedBoxAnnotationSelector = 9 KInvertedCircleAnnotationSelector = 4 KInvertedRoundedBoxAnnotationSelector = 10 KItalicCJKRomanType = 32 KJIS1978CharactersSelector = 2 KJIS1983CharactersSelector = 3 KJIS1990CharactersSelector = 4 KJIS2004CharactersSelector = 11 KJUSTCurrentVersion = 65536 KJUSTKashidaPriority = 0 KJUSTLetterPriority = 2 KJUSTNullPriority = 3 KJUSTOverrideLimits = 16384 KJUSTOverridePriority = 32768 KJUSTOverrideUnlimited = 8192 KJUSTPriorityCount = 4 KJUSTPriorityMask = 3 KJUSTSpacePriority = 1 KJUSTStandardFormat = 0 KJUSTTag = 1786082164 KJUSTUnlimited = 4096 KJUSTnoGlyphcode = 65535 KJUSTpcConditionalAddAction = 2 KJUSTpcDecompositionAction = 0 KJUSTpcDuctilityAction = 4 KJUSTpcGlyphRepeatAddAction = 5 KJUSTpcGlyphStretchAction = 3 KJUSTpcUnconditionalAddAction = 1 KKERNCrossStream = 16384 KKERNCrossStreamResetNote = 2 KKERNCurrentVersion = 65536 KKERNFormatMask = 255 KKERNIndexArray = 3 KKERNLineEndKerning = 2 KKERNLineStart = 1 KKERNNoCrossKerning = 4 KKERNNoStakeNote = 1 KKERNNotApplied = 1 KKERNNotesRequested = 8 KKERNOrderedList = 0 KKERNResetCrossStream = 32768 KKERNSimpleArray = 2 KKERNStateTable = 1 KKERNTag = 1801810542 KKERNUnusedBits = 7936 KKERNVariation = 8192 KKERNVertical = 32768 KKERXActionOffsetMask = 16777215 KKERXActionTypeAnchorPoints = 1073741824 KKERXActionTypeControlPoints = 0 KKERXActionTypeCoordinates = 2147483648 KKERXActionTypeMask = 3221225472 KKERXControlPoint = 4 KKERXCrossStream = 1073741824 KKERXCrossStreamResetNote = 2 KKERXCurrentVersion = 131072 KKERXDescending = 268435456 KKERXFormatMask = 255 KKERXIndexArray = 6 KKERXLineEndKerning = 2 KKERXLineStart = 1 KKERXNoCrossKerning = 4 KKERXNoStakeNote = 1 KKERXNotApplied = 1 KKERXNotesRequested = 8 KKERXOrderedList = 0 KKERXResetCrossStream = 32768 KKERXSimpleArray = 2 KKERXStateTable = 1 KKERXTag = 1801810552 KKERXUnusedBits = 268435200 KKERXUnusedFlags = 1056964608 KKERXValuesAreLong = 1 KKERXVariation = 536870912 KKERXVertical = -2147483648 KKanaSpacingType = 25 KKanaToRomanizationSelector = 4 KKatakanaToHiraganaSelector = 3 KLCARCtlPointFormat = 1 KLCARCurrentVersion = 65536 KLCARLinearFormat = 0 KLCARTag = 1818452338 KLTAGCurrentVersion = 1 KLanguageTagType = 39 KLastFeatureType = -1 KLetterCaseType = 3 KLigaturesType = 1 KLineFinalSwashesOffSelector = 7 KLineFinalSwashesOnSelector = 6 KLineInitialSwashesOffSelector = 5 KLineInitialSwashesOnSelector = 4 KLinguisticRearrangementOffSelector = 1 KLinguisticRearrangementOnSelector = 0 KLinguisticRearrangementType = 5 KLogosOffSelector = 7 KLogosOnSelector = 6 KLowerCaseNumbersSelector = 0 KLowerCasePetiteCapsSelector = 2 KLowerCaseSmallCapsSelector = 1 KLowerCaseType = 37 KMORTContextualType = 1 KMORTCoverDescending = 16384 KMORTCoverIgnoreVertical = 8192 KMORTCoverTypeMask = 15 KMORTCoverVertical = 32768 KMORTCurrInsertBefore = 2048 KMORTCurrInsertCountMask = 992 KMORTCurrInsertCountShift = 5 KMORTCurrInsertKashidaLike = 8192 KMORTCurrJustTableCountMask = 127 KMORTCurrJustTableCountShift = 0 KMORTCurrentVersion = 65536 KMORTDoInsertionsBefore = 128 KMORTInsertionType = 5 KMORTInsertionsCountMask = 63 KMORTIsSplitVowelPiece = 64 KMORTLigFormOffsetMask = 1073741823 KMORTLigFormOffsetShift = 2 KMORTLigLastAction = -2147483648 KMORTLigStoreLigature = 1073741824 KMORTLigatureType = 2 KMORTMarkInsertBefore = 1024 KMORTMarkInsertCountMask = 31 KMORTMarkInsertCountShift = 0 KMORTMarkInsertKashidaLike = 4096 KMORTMarkJustTableCountMask = 16256 KMORTMarkJustTableCountShift = 7 KMORTRearrangementType = 0 KMORTSwashType = 4 KMORTTag = 1836020340 KMORTraCDx = 6 KMORTraCDxA = 8 KMORTraCDxAB = 12 KMORTraCDxBA = 13 KMORTraDCx = 7 KMORTraDCxA = 9 KMORTraDCxAB = 14 KMORTraDCxBA = 15 KMORTraDx = 2 KMORTraDxA = 3 KMORTraDxAB = 10 KMORTraDxBA = 11 KMORTraNoAction = 0 KMORTraxA = 1 KMORTraxAB = 4 KMORTraxBA = 5 KMORXCoverDescending = 1073741824 KMORXCoverIgnoreVertical = 536870912 KMORXCoverLogicalOrder = 268435456 KMORXCoverTypeMask = 255 KMORXCoverVertical = -2147483648 KMORXCurrentVersion = 131072 KMORXTag = 1836020344 KMathSymbolsSelector = 6 KMathematicalExtrasType = 15 KMathematicalGreekOffSelector = 11 KMathematicalGreekOnSelector = 10 KMonospacedNumbersSelector = 0 KMonospacedTextSelector = 1 KNLCCharactersSelector = 13 KNoAlternatesSelector = 0 KNoAnnotationSelector = 0 KNoCJKItalicRomanSelector = 0 KNoCJKSymbolAlternativesSelector = 0 KNoFractionsSelector = 0 KNoIdeographicAlternativesSelector = 0 KNoOrnamentsSelector = 0 KNoRubyKanaSelector = 0 KNoStyleOptionsSelector = 0 KNoStylisticAlternatesSelector = 0 KNoTransliterationSelector = 0 KNonFinalSwashesOffSelector = 9 KNonFinalSwashesOnSelector = 8 KNormalPositionSelector = 0 KNumberCaseType = 21 KNumberSpacingType = 6 KOPBDControlPointFormat = 1 KOPBDCurrentVersion = 65536 KOPBDDistanceFormat = 0 KOPBDTag = 1869636196 KOrdinalsSelector = 3 KOrnamentSetsType = 16 KOverlappingCharactersType = 13 KPROPALDirectionClass = 2 KPROPANDirectionClass = 6 KPROPBNDirectionClass = 19 KPROPCSDirectionClass = 7 KPROPCanHangLTMask = 16384 KPROPCanHangRBMask = 8192 KPROPCurrentVersion = 196608 KPROPDirectionMask = 31 KPROPENDirectionClass = 3 KPROPESDirectionClass = 4 KPROPETDirectionClass = 5 KPROPIsFloaterMask = 32768 KPROPLDirectionClass = 0 KPROPLREDirectionClass = 13 KPROPLRODirectionClass = 14 KPROPNSMDirectionClass = 18 KPROPNumDirectionClasses = 20 KPROPONDirectionClass = 11 KPROPPDFDirectionClass = 17 KPROPPSDirectionClass = 8 KPROPPairOffsetMask = 3840 KPROPPairOffsetShift = 8 KPROPPairOffsetSign = 7 KPROPRDirectionClass = 1 KPROPRLEDirectionClass = 15 KPROPRLODirectionClass = 16 KPROPRightConnectMask = 128 KPROPSDirectionClass = 9 KPROPSENDirectionClass = 12 KPROPTag = 1886547824 KPROPUseRLPairMask = 4096 KPROPWSDirectionClass = 10 KPROPZeroReserved = 96 KParenthesisAnnotationSelector = 5 KPartiallyConnectedSelector = 1 KPeriodAnnotationSelector = 6 KPeriodsToEllipsisOffSelector = 11 KPeriodsToEllipsisOnSelector = 10 KPiCharactersSelector = 2 KPreventOverlapOffSelector = 1 KPreventOverlapOnSelector = 0 KProportionalCJKRomanSelector = 1 KProportionalIdeographsSelector = 1 KProportionalKanaSelector = 1 KProportionalNumbersSelector = 1 KProportionalTextSelector = 0 KQuarterWidthNumbersSelector = 3 KQuarterWidthTextSelector = 4 KRareLigaturesOffSelector = 5 KRareLigaturesOnSelector = 4 KRebusPicturesOffSelector = 9 KRebusPicturesOnSelector = 8 KRequiredLigaturesOffSelector = 1 KRequiredLigaturesOnSelector = 0 KRomanNumeralAnnotationSelector = 7 KRomanizationToHiraganaSelector = 5 KRomanizationToKatakanaSelector = 6 KRoundedBoxAnnotationSelector = 2 KRubyKanaOffSelector = 3 KRubyKanaOnSelector = 2 KRubyKanaSelector = 1 KRubyKanaType = 28 KSFNTLookupSegmentArray = 4 KSFNTLookupSegmentSingle = 2 KSFNTLookupSimpleArray = 0 KSFNTLookupSingleTable = 6 KSFNTLookupTrimmedArray = 8 KSFNTLookupVector = 10 KSTClassDeletedGlyph = 2 KSTClassEndOfLine = 3 KSTClassEndOfText = 0 KSTClassOutOfBounds = 1 KSTKCrossStreamReset = 8192 KSTLigActionMask = 16383 KSTMarkEnd = 8192 KSTNoAdvance = 16384 KSTRearrVerbMask = 15 KSTSetMark = 32768 KSTXHasLigAction = 8192 KScientificInferiorsSelector = 4 KShowDiacriticsSelector = 0 KSimplifiedCharactersSelector = 1 KSlashToDivideOffSelector = 5 KSlashToDivideOnSelector = 4 KSlashedZeroOffSelector = 5 KSlashedZeroOnSelector = 4 KSmallCapsSelector = 3 KSmartQuotesOffSelector = 9 KSmartQuotesOnSelector = 8 KSmartSwashType = 8 KSquaredLigaturesOffSelector = 13 KSquaredLigaturesOnSelector = 12 KStyleOptionsType = 19 KStylisticAltEightOffSelector = 17 KStylisticAltEightOnSelector = 16 KStylisticAltEighteenOffSelector = 37 KStylisticAltEighteenOnSelector = 36 KStylisticAltElevenOffSelector = 23 KStylisticAltElevenOnSelector = 22 KStylisticAltFifteenOffSelector = 31 KStylisticAltFifteenOnSelector = 30 KStylisticAltFiveOffSelector = 11 KStylisticAltFiveOnSelector = 10 KStylisticAltFourOffSelector = 9 KStylisticAltFourOnSelector = 8 KStylisticAltFourteenOffSelector = 29 KStylisticAltFourteenOnSelector = 28 KStylisticAltNineOffSelector = 19 KStylisticAltNineOnSelector = 18 KStylisticAltNineteenOffSelector = 39 KStylisticAltNineteenOnSelector = 38 KStylisticAltOneOffSelector = 3 KStylisticAltOneOnSelector = 2 KStylisticAltSevenOffSelector = 15 KStylisticAltSevenOnSelector = 14 KStylisticAltSeventeenOffSelector = 35 KStylisticAltSeventeenOnSelector = 34 KStylisticAltSixOffSelector = 13 KStylisticAltSixOnSelector = 12 KStylisticAltSixteenOffSelector = 33 KStylisticAltSixteenOnSelector = 32 KStylisticAltTenOffSelector = 21 KStylisticAltTenOnSelector = 20 KStylisticAltThirteenOffSelector = 27 KStylisticAltThirteenOnSelector = 26 KStylisticAltThreeOffSelector = 7 KStylisticAltThreeOnSelector = 6 KStylisticAltTwelveOffSelector = 25 KStylisticAltTwelveOnSelector = 24 KStylisticAltTwentyOffSelector = 41 KStylisticAltTwentyOnSelector = 40 KStylisticAltTwoOffSelector = 5 KStylisticAltTwoOnSelector = 4 KStylisticAlternativesType = 35 KSubstituteVerticalFormsOffSelector = 1 KSubstituteVerticalFormsOnSelector = 0 KSuperiorsSelector = 1 KSwashAlternatesOffSelector = 3 KSwashAlternatesOnSelector = 2 KSymbolLigaturesOffSelector = 17 KSymbolLigaturesOnSelector = 16 KTRAKCurrentVersion = 65536 KTRAKTag = 1953653099 KTRAKUniformFormat = 0 KTallCapsSelector = 5 KTextSpacingType = 22 KThirdWidthNumbersSelector = 2 KThirdWidthTextSelector = 3 KTitlingCapsSelector = 4 KTraditionalAltFiveSelector = 9 KTraditionalAltFourSelector = 8 KTraditionalAltOneSelector = 5 KTraditionalAltThreeSelector = 7 KTraditionalAltTwoSelector = 6 KTraditionalCharactersSelector = 0 KTraditionalNamesCharactersSelector = 14 KTranscodingCompositionOffSelector = 5 KTranscodingCompositionOnSelector = 4 KTransliterationType = 23 KTypographicExtrasType = 14 KUnconnectedSelector = 0 KUnicodeDecompositionType = 27 KUpperAndLowerCaseSelector = 0 KUpperCaseNumbersSelector = 1 KUpperCasePetiteCapsSelector = 2 KUpperCaseSmallCapsSelector = 1 KUpperCaseType = 38 KVerticalFractionsSelector = 1 KVerticalPositionType = 10 KVerticalSubstitutionType = 4 KWordFinalSwashesOffSelector = 3 KWordFinalSwashesOnSelector = 2 KWordInitialSwashesOffSelector = 1 KWordInitialSwashesOnSelector = 0 NameFontTableTag = 1851878757 NonGlyphID = 65535 Os2FontTableTag = 1330851634 Sizeof_sfntCMapEncoding = 8 Sizeof_sfntCMapExtendedSubHeader = 12 Sizeof_sfntCMapHeader = 4 Sizeof_sfntCMapSubHeader = 6 Sizeof_sfntDescriptorHeader = 8 Sizeof_sfntDirectory = 12 Sizeof_sfntInstance = 4 Sizeof_sfntNameHeader = 6 Sizeof_sfntNameRecord = 12 Sizeof_sfntVariationAxis = 20 Sizeof_sfntVariationHeader = 16 VariationFontTableTag = 1719034226 )
Variables ¶
This section is empty.
Functions ¶
func CTFontCollectionCopyExclusionDescriptors ¶
func CTFontCollectionCopyExclusionDescriptors(collection CTFontCollectionRef) corefoundation.CFArrayRef
CTFontCollectionCopyExclusionDescriptors calls the CoreText framework function CTFontCollectionCopyExclusionDescriptors.
func CTFontCollectionCopyFontAttribute ¶
func CTFontCollectionCopyFontAttribute(collection CTFontCollectionRef, attributeName corefoundation.CFStringRef, options CTFontCollectionCopyOptions) corefoundation.CFArrayRef
CTFontCollectionCopyFontAttribute calls the CoreText framework function CTFontCollectionCopyFontAttribute.
func CTFontCollectionCopyFontAttributes ¶
func CTFontCollectionCopyFontAttributes(collection CTFontCollectionRef, attributeNames corefoundation.CFSetRef, options CTFontCollectionCopyOptions) corefoundation.CFArrayRef
CTFontCollectionCopyFontAttributes calls the CoreText framework function CTFontCollectionCopyFontAttributes.
func CTFontCollectionCopyQueryDescriptors ¶
func CTFontCollectionCopyQueryDescriptors(collection CTFontCollectionRef) corefoundation.CFArrayRef
CTFontCollectionCopyQueryDescriptors calls the CoreText framework function CTFontCollectionCopyQueryDescriptors.
func CTFontCollectionCreateMatchingFontDescriptors ¶
func CTFontCollectionCreateMatchingFontDescriptors(collection CTFontCollectionRef) corefoundation.CFArrayRef
CTFontCollectionCreateMatchingFontDescriptors calls the CoreText framework function CTFontCollectionCreateMatchingFontDescriptors.
func CTFontCollectionCreateMatchingFontDescriptorsForFamily ¶
func CTFontCollectionCreateMatchingFontDescriptorsForFamily(collection CTFontCollectionRef, familyName corefoundation.CFStringRef, options corefoundation.CFDictionaryRef) corefoundation.CFArrayRef
CTFontCollectionCreateMatchingFontDescriptorsForFamily calls the CoreText framework function CTFontCollectionCreateMatchingFontDescriptorsForFamily.
func CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback ¶
func CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(collection CTFontCollectionRef, sortCallback unsafe.Pointer, refCon unsafe.Pointer) corefoundation.CFArrayRef
CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback calls the CoreText framework function CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback.
func CTFontCollectionCreateMatchingFontDescriptorsWithOptions ¶
func CTFontCollectionCreateMatchingFontDescriptorsWithOptions(collection CTFontCollectionRef, options corefoundation.CFDictionaryRef) corefoundation.CFArrayRef
CTFontCollectionCreateMatchingFontDescriptorsWithOptions calls the CoreText framework function CTFontCollectionCreateMatchingFontDescriptorsWithOptions.
func CTFontCollectionGetTypeID ¶
func CTFontCollectionGetTypeID() int
CTFontCollectionGetTypeID calls the CoreText framework function CTFontCollectionGetTypeID.
func CTFontCollectionSetExclusionDescriptors ¶
func CTFontCollectionSetExclusionDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef)
CTFontCollectionSetExclusionDescriptors calls the CoreText framework function CTFontCollectionSetExclusionDescriptors.
func CTFontCollectionSetQueryDescriptors ¶
func CTFontCollectionSetQueryDescriptors(collection CTMutableFontCollectionRef, descriptors corefoundation.CFArrayRef)
CTFontCollectionSetQueryDescriptors calls the CoreText framework function CTFontCollectionSetQueryDescriptors.
func CTFontCopyAttribute ¶
func CTFontCopyAttribute(font CTFontRef, attribute corefoundation.CFStringRef) obj.Object
CTFontCopyAttribute calls the CoreText framework function CTFontCopyAttribute.
func CTFontCopyAvailableTables ¶
func CTFontCopyAvailableTables(font CTFontRef, options CTFontTableOptions) corefoundation.CFArrayRef
CTFontCopyAvailableTables calls the CoreText framework function CTFontCopyAvailableTables.
func CTFontCopyCharacterSet ¶
func CTFontCopyCharacterSet(font CTFontRef) corefoundation.CFCharacterSetRef
CTFontCopyCharacterSet calls the CoreText framework function CTFontCopyCharacterSet.
func CTFontCopyDefaultCascadeListForLanguages ¶
func CTFontCopyDefaultCascadeListForLanguages(font CTFontRef, languagePrefList corefoundation.CFArrayRef) corefoundation.CFArrayRef
CTFontCopyDefaultCascadeListForLanguages calls the CoreText framework function CTFontCopyDefaultCascadeListForLanguages.
func CTFontCopyDisplayName ¶
func CTFontCopyDisplayName(font CTFontRef) corefoundation.CFStringRef
CTFontCopyDisplayName calls the CoreText framework function CTFontCopyDisplayName.
func CTFontCopyFamilyName ¶
func CTFontCopyFamilyName(font CTFontRef) corefoundation.CFStringRef
CTFontCopyFamilyName calls the CoreText framework function CTFontCopyFamilyName.
func CTFontCopyFeatureSettings ¶
func CTFontCopyFeatureSettings(font CTFontRef) corefoundation.CFArrayRef
CTFontCopyFeatureSettings calls the CoreText framework function CTFontCopyFeatureSettings.
func CTFontCopyFeatures ¶
func CTFontCopyFeatures(font CTFontRef) corefoundation.CFArrayRef
CTFontCopyFeatures calls the CoreText framework function CTFontCopyFeatures.
func CTFontCopyFullName ¶
func CTFontCopyFullName(font CTFontRef) corefoundation.CFStringRef
CTFontCopyFullName calls the CoreText framework function CTFontCopyFullName.
func CTFontCopyGraphicsFont ¶
func CTFontCopyGraphicsFont(font CTFontRef, attributes unsafe.Pointer) coregraphics.CGFontRef
CTFontCopyGraphicsFont calls the CoreText framework function CTFontCopyGraphicsFont.
func CTFontCopyLocalizedName ¶
func CTFontCopyLocalizedName(font CTFontRef, nameKey corefoundation.CFStringRef, actualLanguage unsafe.Pointer) corefoundation.CFStringRef
CTFontCopyLocalizedName calls the CoreText framework function CTFontCopyLocalizedName.
func CTFontCopyName ¶
func CTFontCopyName(font CTFontRef, nameKey corefoundation.CFStringRef) corefoundation.CFStringRef
CTFontCopyName calls the CoreText framework function CTFontCopyName.
func CTFontCopyNameForGlyph ¶
func CTFontCopyNameForGlyph(font CTFontRef, glyph uint16) corefoundation.CFStringRef
CTFontCopyNameForGlyph calls the CoreText framework function CTFontCopyNameForGlyph.
func CTFontCopyPostScriptName ¶
func CTFontCopyPostScriptName(font CTFontRef) corefoundation.CFStringRef
CTFontCopyPostScriptName calls the CoreText framework function CTFontCopyPostScriptName.
func CTFontCopySupportedLanguages ¶
func CTFontCopySupportedLanguages(font CTFontRef) corefoundation.CFArrayRef
CTFontCopySupportedLanguages calls the CoreText framework function CTFontCopySupportedLanguages.
func CTFontCopyTable ¶
func CTFontCopyTable(font CTFontRef, table int, options CTFontTableOptions) corefoundation.CFDataRef
CTFontCopyTable calls the CoreText framework function CTFontCopyTable.
func CTFontCopyTraits ¶
func CTFontCopyTraits(font CTFontRef) corefoundation.CFDictionaryRef
CTFontCopyTraits calls the CoreText framework function CTFontCopyTraits.
func CTFontCopyVariation ¶
func CTFontCopyVariation(font CTFontRef) corefoundation.CFDictionaryRef
CTFontCopyVariation calls the CoreText framework function CTFontCopyVariation.
func CTFontCopyVariationAxes ¶
func CTFontCopyVariationAxes(font CTFontRef) corefoundation.CFArrayRef
CTFontCopyVariationAxes calls the CoreText framework function CTFontCopyVariationAxes.
func CTFontCreatePathForGlyph ¶
func CTFontCreatePathForGlyph(font CTFontRef, glyph uint16, matrix *corefoundation.CGAffineTransform) coregraphics.CGPathRef
CTFontCreatePathForGlyph calls the CoreText framework function CTFontCreatePathForGlyph.
func CTFontDescriptorCopyAttribute ¶
func CTFontDescriptorCopyAttribute(descriptor CTFontDescriptorRef, attribute corefoundation.CFStringRef) obj.Object
CTFontDescriptorCopyAttribute calls the CoreText framework function CTFontDescriptorCopyAttribute.
func CTFontDescriptorCopyAttributes ¶
func CTFontDescriptorCopyAttributes(descriptor CTFontDescriptorRef) corefoundation.CFDictionaryRef
CTFontDescriptorCopyAttributes calls the CoreText framework function CTFontDescriptorCopyAttributes.
func CTFontDescriptorCopyLocalizedAttribute ¶
func CTFontDescriptorCopyLocalizedAttribute(descriptor CTFontDescriptorRef, attribute corefoundation.CFStringRef, language unsafe.Pointer) obj.Object
CTFontDescriptorCopyLocalizedAttribute calls the CoreText framework function CTFontDescriptorCopyLocalizedAttribute.
func CTFontDescriptorCreateMatchingFontDescriptors ¶
func CTFontDescriptorCreateMatchingFontDescriptors(descriptor CTFontDescriptorRef, mandatoryAttributes corefoundation.CFSetRef) corefoundation.CFArrayRef
CTFontDescriptorCreateMatchingFontDescriptors calls the CoreText framework function CTFontDescriptorCreateMatchingFontDescriptors.
func CTFontDescriptorGetTypeID ¶
func CTFontDescriptorGetTypeID() int
CTFontDescriptorGetTypeID calls the CoreText framework function CTFontDescriptorGetTypeID.
func CTFontDescriptorMatchFontDescriptorsWithProgressHandler ¶
func CTFontDescriptorMatchFontDescriptorsWithProgressHandler(descriptors corefoundation.CFArrayRef, mandatoryAttributes corefoundation.CFSetRef, progressBlock func(CTFontDescriptorMatchingState, unsafe.Pointer) bool) bool
CTFontDescriptorMatchFontDescriptorsWithProgressHandler calls the CoreText framework function CTFontDescriptorMatchFontDescriptorsWithProgressHandler.
func CTFontDrawGlyphs ¶
func CTFontDrawGlyphs(font CTFontRef, glyphs unsafe.Pointer, positions unsafe.Pointer, count int, context_ coregraphics.CGContextRef)
CTFontDrawGlyphs calls the CoreText framework function CTFontDrawGlyphs.
func CTFontDrawImageFromAdaptiveImageProviderAtPoint ¶
func CTFontDrawImageFromAdaptiveImageProviderAtPoint(font CTFontRef, provider unsafe.Pointer, point corefoundation.CGPoint, context_ coregraphics.CGContextRef)
CTFontDrawImageFromAdaptiveImageProviderAtPoint calls the CoreText framework function CTFontDrawImageFromAdaptiveImageProviderAtPoint.
func CTFontGetAdvancesForGlyphs ¶
func CTFontGetAdvancesForGlyphs(font CTFontRef, orientation CTFontOrientation, glyphs unsafe.Pointer, advances unsafe.Pointer, count int) float64
CTFontGetAdvancesForGlyphs calls the CoreText framework function CTFontGetAdvancesForGlyphs.
func CTFontGetAscent ¶
CTFontGetAscent calls the CoreText framework function CTFontGetAscent.
func CTFontGetBoundingBox ¶
func CTFontGetBoundingBox(font CTFontRef) corefoundation.CGRect
CTFontGetBoundingBox calls the CoreText framework function CTFontGetBoundingBox.
func CTFontGetBoundingRectsForGlyphs ¶
func CTFontGetBoundingRectsForGlyphs(font CTFontRef, orientation CTFontOrientation, glyphs unsafe.Pointer, boundingRects unsafe.Pointer, count int) corefoundation.CGRect
CTFontGetBoundingRectsForGlyphs calls the CoreText framework function CTFontGetBoundingRectsForGlyphs.
func CTFontGetCapHeight ¶
CTFontGetCapHeight calls the CoreText framework function CTFontGetCapHeight.
func CTFontGetDescent ¶
CTFontGetDescent calls the CoreText framework function CTFontGetDescent.
func CTFontGetGlyphCount ¶
CTFontGetGlyphCount calls the CoreText framework function CTFontGetGlyphCount.
func CTFontGetGlyphWithName ¶
func CTFontGetGlyphWithName(font CTFontRef, glyphName corefoundation.CFStringRef) uint16
CTFontGetGlyphWithName calls the CoreText framework function CTFontGetGlyphWithName.
func CTFontGetGlyphsForCharacters ¶
func CTFontGetGlyphsForCharacters(font CTFontRef, characters unsafe.Pointer, glyphs unsafe.Pointer, count int) bool
CTFontGetGlyphsForCharacters calls the CoreText framework function CTFontGetGlyphsForCharacters.
func CTFontGetLeading ¶
CTFontGetLeading calls the CoreText framework function CTFontGetLeading.
func CTFontGetLigatureCaretPositions ¶
func CTFontGetLigatureCaretPositions(font CTFontRef, glyph uint16, maxPositions int) (result int, positions float64)
CTFontGetLigatureCaretPositions calls the CoreText framework function CTFontGetLigatureCaretPositions.
func CTFontGetMatrix ¶
func CTFontGetMatrix(font CTFontRef) corefoundation.CGAffineTransform
CTFontGetMatrix calls the CoreText framework function CTFontGetMatrix.
func CTFontGetOpticalBoundsForGlyphs ¶
func CTFontGetOpticalBoundsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, boundingRects unsafe.Pointer, count int, options int) corefoundation.CGRect
CTFontGetOpticalBoundsForGlyphs calls the CoreText framework function CTFontGetOpticalBoundsForGlyphs.
func CTFontGetPlatformFont ¶
CTFontGetPlatformFont calls the CoreText framework function CTFontGetPlatformFont.
func CTFontGetSize ¶
CTFontGetSize calls the CoreText framework function CTFontGetSize.
func CTFontGetSlantAngle ¶
CTFontGetSlantAngle calls the CoreText framework function CTFontGetSlantAngle.
func CTFontGetStringEncoding ¶
CTFontGetStringEncoding calls the CoreText framework function CTFontGetStringEncoding.
func CTFontGetTypeID ¶
func CTFontGetTypeID() int
CTFontGetTypeID calls the CoreText framework function CTFontGetTypeID.
func CTFontGetTypographicBoundsForAdaptiveImageProvider ¶
func CTFontGetTypographicBoundsForAdaptiveImageProvider(font CTFontRef, provider unsafe.Pointer) corefoundation.CGRect
CTFontGetTypographicBoundsForAdaptiveImageProvider calls the CoreText framework function CTFontGetTypographicBoundsForAdaptiveImageProvider.
func CTFontGetUnderlinePosition ¶
CTFontGetUnderlinePosition calls the CoreText framework function CTFontGetUnderlinePosition.
func CTFontGetUnderlineThickness ¶
CTFontGetUnderlineThickness calls the CoreText framework function CTFontGetUnderlineThickness.
func CTFontGetUnitsPerEm ¶
CTFontGetUnitsPerEm calls the CoreText framework function CTFontGetUnitsPerEm.
func CTFontGetVerticalTranslationsForGlyphs ¶
func CTFontGetVerticalTranslationsForGlyphs(font CTFontRef, glyphs unsafe.Pointer, translations unsafe.Pointer, count int)
CTFontGetVerticalTranslationsForGlyphs calls the CoreText framework function CTFontGetVerticalTranslationsForGlyphs.
func CTFontGetXHeight ¶
CTFontGetXHeight calls the CoreText framework function CTFontGetXHeight.
func CTFontHasTable ¶
CTFontHasTable calls the CoreText framework function CTFontHasTable.
func CTFontManagerCompareFontFamilyNames ¶
func CTFontManagerCompareFontFamilyNames(family1 unsafe.Pointer, family2 unsafe.Pointer, context_ unsafe.Pointer) unsafe.Pointer
CTFontManagerCompareFontFamilyNames calls the CoreText framework function CTFontManagerCompareFontFamilyNames.
func CTFontManagerCopyAvailableFontFamilyNames ¶
func CTFontManagerCopyAvailableFontFamilyNames() corefoundation.CFArrayRef
CTFontManagerCopyAvailableFontFamilyNames calls the CoreText framework function CTFontManagerCopyAvailableFontFamilyNames.
func CTFontManagerCopyAvailableFontURLs ¶
func CTFontManagerCopyAvailableFontURLs() corefoundation.CFArrayRef
CTFontManagerCopyAvailableFontURLs calls the CoreText framework function CTFontManagerCopyAvailableFontURLs.
func CTFontManagerCopyAvailablePostScriptNames ¶
func CTFontManagerCopyAvailablePostScriptNames() corefoundation.CFArrayRef
CTFontManagerCopyAvailablePostScriptNames calls the CoreText framework function CTFontManagerCopyAvailablePostScriptNames.
func CTFontManagerCreateFontDescriptorsFromData ¶
func CTFontManagerCreateFontDescriptorsFromData(data corefoundation.CFDataRef) corefoundation.CFArrayRef
CTFontManagerCreateFontDescriptorsFromData calls the CoreText framework function CTFontManagerCreateFontDescriptorsFromData.
func CTFontManagerCreateFontDescriptorsFromURL ¶
func CTFontManagerCreateFontDescriptorsFromURL(fileURL corefoundation.CFURLRef) corefoundation.CFArrayRef
CTFontManagerCreateFontDescriptorsFromURL calls the CoreText framework function CTFontManagerCreateFontDescriptorsFromURL.
func CTFontManagerCreateFontRequestRunLoopSource ¶
func CTFontManagerCreateFontRequestRunLoopSource(sourceOrder int, createMatchesCallback func(unsafe.Pointer, int) int) corefoundation.CFRunLoopSourceRef
CTFontManagerCreateFontRequestRunLoopSource calls the CoreText framework function CTFontManagerCreateFontRequestRunLoopSource.
func CTFontManagerEnableFontDescriptors ¶
func CTFontManagerEnableFontDescriptors(descriptors corefoundation.CFArrayRef, enable bool)
CTFontManagerEnableFontDescriptors calls the CoreText framework function CTFontManagerEnableFontDescriptors.
func CTFontManagerIsSupportedFont ¶
func CTFontManagerIsSupportedFont(fontURL corefoundation.CFURLRef) bool
CTFontManagerIsSupportedFont calls the CoreText framework function CTFontManagerIsSupportedFont.
func CTFontManagerRegisterFontDescriptors ¶
func CTFontManagerRegisterFontDescriptors(fontDescriptors corefoundation.CFArrayRef, scope CTFontManagerScope, enabled bool, registrationHandler func(unsafe.Pointer, bool) bool)
CTFontManagerRegisterFontDescriptors calls the CoreText framework function CTFontManagerRegisterFontDescriptors.
func CTFontManagerRegisterFontURLs ¶
func CTFontManagerRegisterFontURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, enabled bool, registrationHandler func(unsafe.Pointer, bool) bool)
CTFontManagerRegisterFontURLs calls the CoreText framework function CTFontManagerRegisterFontURLs.
func CTFontManagerRegisterFontsForURL ¶
func CTFontManagerRegisterFontsForURL(fontURL corefoundation.CFURLRef, scope CTFontManagerScope) error
func CTFontManagerRegisterFontsForURLs ¶
func CTFontManagerRegisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, errors_ unsafe.Pointer) bool
CTFontManagerRegisterFontsForURLs calls the CoreText framework function CTFontManagerRegisterFontsForURLs.
func CTFontManagerRegisterGraphicsFont ¶
func CTFontManagerRegisterGraphicsFont(font coregraphics.CGFontRef) error
func CTFontManagerSetAutoActivationSetting ¶
func CTFontManagerSetAutoActivationSetting(bundleIdentifier corefoundation.CFStringRef, setting CTFontManagerAutoActivationSetting)
CTFontManagerSetAutoActivationSetting calls the CoreText framework function CTFontManagerSetAutoActivationSetting.
func CTFontManagerUnregisterFontDescriptors ¶
func CTFontManagerUnregisterFontDescriptors(fontDescriptors corefoundation.CFArrayRef, scope CTFontManagerScope, registrationHandler func(unsafe.Pointer, bool) bool)
CTFontManagerUnregisterFontDescriptors calls the CoreText framework function CTFontManagerUnregisterFontDescriptors.
func CTFontManagerUnregisterFontURLs ¶
func CTFontManagerUnregisterFontURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, registrationHandler func(unsafe.Pointer, bool) bool)
CTFontManagerUnregisterFontURLs calls the CoreText framework function CTFontManagerUnregisterFontURLs.
func CTFontManagerUnregisterFontsForURL ¶
func CTFontManagerUnregisterFontsForURL(fontURL corefoundation.CFURLRef, scope CTFontManagerScope) error
func CTFontManagerUnregisterFontsForURLs ¶
func CTFontManagerUnregisterFontsForURLs(fontURLs corefoundation.CFArrayRef, scope CTFontManagerScope, errors_ unsafe.Pointer) bool
CTFontManagerUnregisterFontsForURLs calls the CoreText framework function CTFontManagerUnregisterFontsForURLs.
func CTFontManagerUnregisterGraphicsFont ¶
func CTFontManagerUnregisterGraphicsFont(font coregraphics.CGFontRef) error
func CTFrameDraw ¶
func CTFrameDraw(frame CTFrameRef, context_ coregraphics.CGContextRef)
CTFrameDraw calls the CoreText framework function CTFrameDraw.
func CTFrameGetFrameAttributes ¶
func CTFrameGetFrameAttributes(frame CTFrameRef) corefoundation.CFDictionaryRef
CTFrameGetFrameAttributes calls the CoreText framework function CTFrameGetFrameAttributes.
func CTFrameGetLineOrigins ¶
func CTFrameGetLineOrigins(frame CTFrameRef, range_ corefoundation.CFRange, origins *corefoundation.CGPoint)
CTFrameGetLineOrigins calls the CoreText framework function CTFrameGetLineOrigins.
func CTFrameGetLines ¶
func CTFrameGetLines(frame CTFrameRef) corefoundation.CFArrayRef
CTFrameGetLines calls the CoreText framework function CTFrameGetLines.
func CTFrameGetPath ¶
func CTFrameGetPath(frame CTFrameRef) coregraphics.CGPathRef
CTFrameGetPath calls the CoreText framework function CTFrameGetPath.
func CTFrameGetStringRange ¶
func CTFrameGetStringRange(frame CTFrameRef) corefoundation.CFRange
CTFrameGetStringRange calls the CoreText framework function CTFrameGetStringRange.
func CTFrameGetTypeID ¶
func CTFrameGetTypeID() int
CTFrameGetTypeID calls the CoreText framework function CTFrameGetTypeID.
func CTFrameGetVisibleStringRange ¶
func CTFrameGetVisibleStringRange(frame CTFrameRef) corefoundation.CFRange
CTFrameGetVisibleStringRange calls the CoreText framework function CTFrameGetVisibleStringRange.
func CTFramesetterGetTypeID ¶
func CTFramesetterGetTypeID() int
CTFramesetterGetTypeID calls the CoreText framework function CTFramesetterGetTypeID.
func CTFramesetterSuggestFrameSizeWithConstraints ¶
func CTFramesetterSuggestFrameSizeWithConstraints(framesetter CTFramesetterRef, stringRange corefoundation.CFRange, frameAttributes corefoundation.CFDictionaryRef, constraints corefoundation.CGSize, fitRange *corefoundation.CFRange) corefoundation.CGSize
CTFramesetterSuggestFrameSizeWithConstraints calls the CoreText framework function CTFramesetterSuggestFrameSizeWithConstraints.
func CTGetCoreTextVersion ¶
func CTGetCoreTextVersion() uint32
CTGetCoreTextVersion calls the CoreText framework function CTGetCoreTextVersion.
func CTGlyphInfoGetCharacterIdentifier ¶
func CTGlyphInfoGetCharacterIdentifier(glyphInfo CTGlyphInfoRef) uint16
CTGlyphInfoGetCharacterIdentifier calls the CoreText framework function CTGlyphInfoGetCharacterIdentifier.
func CTGlyphInfoGetGlyph ¶
func CTGlyphInfoGetGlyph(glyphInfo CTGlyphInfoRef) uint16
CTGlyphInfoGetGlyph calls the CoreText framework function CTGlyphInfoGetGlyph.
func CTGlyphInfoGetGlyphName ¶
func CTGlyphInfoGetGlyphName(glyphInfo CTGlyphInfoRef) corefoundation.CFStringRef
CTGlyphInfoGetGlyphName calls the CoreText framework function CTGlyphInfoGetGlyphName.
func CTGlyphInfoGetTypeID ¶
func CTGlyphInfoGetTypeID() int
CTGlyphInfoGetTypeID calls the CoreText framework function CTGlyphInfoGetTypeID.
func CTLineDraw ¶
func CTLineDraw(line CTLineRef, context_ coregraphics.CGContextRef)
CTLineDraw calls the CoreText framework function CTLineDraw.
func CTLineEnumerateCaretOffsets ¶
CTLineEnumerateCaretOffsets calls the CoreText framework function CTLineEnumerateCaretOffsets.
func CTLineGetBoundsWithOptions ¶
func CTLineGetBoundsWithOptions(line CTLineRef, options CTLineBoundsOptions) corefoundation.CGRect
CTLineGetBoundsWithOptions calls the CoreText framework function CTLineGetBoundsWithOptions.
func CTLineGetGlyphCount ¶
CTLineGetGlyphCount calls the CoreText framework function CTLineGetGlyphCount.
func CTLineGetGlyphRuns ¶
func CTLineGetGlyphRuns(line CTLineRef) corefoundation.CFArrayRef
CTLineGetGlyphRuns calls the CoreText framework function CTLineGetGlyphRuns.
func CTLineGetImageBounds ¶
func CTLineGetImageBounds(line CTLineRef, context_ coregraphics.CGContextRef) corefoundation.CGRect
CTLineGetImageBounds calls the CoreText framework function CTLineGetImageBounds.
func CTLineGetOffsetForStringIndex ¶
func CTLineGetOffsetForStringIndex(line CTLineRef, charIndex int) (result float64, secondaryOffset float64)
CTLineGetOffsetForStringIndex calls the CoreText framework function CTLineGetOffsetForStringIndex.
func CTLineGetPenOffsetForFlush ¶
CTLineGetPenOffsetForFlush calls the CoreText framework function CTLineGetPenOffsetForFlush.
func CTLineGetStringIndexForPosition ¶
func CTLineGetStringIndexForPosition(line CTLineRef, position corefoundation.CGPoint) int
CTLineGetStringIndexForPosition calls the CoreText framework function CTLineGetStringIndexForPosition.
func CTLineGetStringRange ¶
func CTLineGetStringRange(line CTLineRef) corefoundation.CFRange
CTLineGetStringRange calls the CoreText framework function CTLineGetStringRange.
func CTLineGetTrailingWhitespaceWidth ¶
CTLineGetTrailingWhitespaceWidth calls the CoreText framework function CTLineGetTrailingWhitespaceWidth.
func CTLineGetTypeID ¶
func CTLineGetTypeID() int
CTLineGetTypeID calls the CoreText framework function CTLineGetTypeID.
func CTLineGetTypographicBounds ¶
func CTLineGetTypographicBounds(line CTLineRef) (result float64, ascent float64, descent float64, leading float64)
CTLineGetTypographicBounds calls the CoreText framework function CTLineGetTypographicBounds.
func CTParagraphStyleGetTypeID ¶
func CTParagraphStyleGetTypeID() int
CTParagraphStyleGetTypeID calls the CoreText framework function CTParagraphStyleGetTypeID.
func CTParagraphStyleGetValueForSpecifier ¶
func CTParagraphStyleGetValueForSpecifier(paragraphStyle CTParagraphStyleRef, spec CTParagraphStyleSpecifier, valueBufferSize int, valueBuffer unsafe.Pointer) bool
CTParagraphStyleGetValueForSpecifier calls the CoreText framework function CTParagraphStyleGetValueForSpecifier.
func CTRubyAnnotationGetSizeFactor ¶
func CTRubyAnnotationGetSizeFactor(rubyAnnotation CTRubyAnnotationRef) float64
CTRubyAnnotationGetSizeFactor calls the CoreText framework function CTRubyAnnotationGetSizeFactor.
func CTRubyAnnotationGetTextForPosition ¶
func CTRubyAnnotationGetTextForPosition(rubyAnnotation CTRubyAnnotationRef, position CTRubyPosition) corefoundation.CFStringRef
CTRubyAnnotationGetTextForPosition calls the CoreText framework function CTRubyAnnotationGetTextForPosition.
func CTRubyAnnotationGetTypeID ¶
func CTRubyAnnotationGetTypeID() int
CTRubyAnnotationGetTypeID calls the CoreText framework function CTRubyAnnotationGetTypeID.
func CTRunDelegateGetRefCon ¶
func CTRunDelegateGetRefCon(runDelegate CTRunDelegateRef) unsafe.Pointer
CTRunDelegateGetRefCon calls the CoreText framework function CTRunDelegateGetRefCon.
func CTRunDelegateGetTypeID ¶
func CTRunDelegateGetTypeID() int
CTRunDelegateGetTypeID calls the CoreText framework function CTRunDelegateGetTypeID.
func CTRunDraw ¶
func CTRunDraw(run CTRunRef, context_ coregraphics.CGContextRef, range_ corefoundation.CFRange)
CTRunDraw calls the CoreText framework function CTRunDraw.
func CTRunGetAdvances ¶
func CTRunGetAdvances(run CTRunRef, range_ corefoundation.CFRange, buffer *corefoundation.CGSize)
CTRunGetAdvances calls the CoreText framework function CTRunGetAdvances.
func CTRunGetAdvancesPtr ¶
func CTRunGetAdvancesPtr(run CTRunRef) *corefoundation.CGSize
CTRunGetAdvancesPtr calls the CoreText framework function CTRunGetAdvancesPtr.
func CTRunGetAttributes ¶
func CTRunGetAttributes(run CTRunRef) corefoundation.CFDictionaryRef
CTRunGetAttributes calls the CoreText framework function CTRunGetAttributes.
func CTRunGetBaseAdvancesAndOrigins ¶
func CTRunGetBaseAdvancesAndOrigins(runRef CTRunRef, range_ corefoundation.CFRange, advancesBuffer *corefoundation.CGSize, originsBuffer *corefoundation.CGPoint)
CTRunGetBaseAdvancesAndOrigins calls the CoreText framework function CTRunGetBaseAdvancesAndOrigins.
func CTRunGetGlyphCount ¶
CTRunGetGlyphCount calls the CoreText framework function CTRunGetGlyphCount.
func CTRunGetGlyphs ¶
func CTRunGetGlyphs(run CTRunRef, range_ corefoundation.CFRange) (buffer uint16)
CTRunGetGlyphs calls the CoreText framework function CTRunGetGlyphs.
func CTRunGetGlyphsPtr ¶
CTRunGetGlyphsPtr calls the CoreText framework function CTRunGetGlyphsPtr.
func CTRunGetImageBounds ¶
func CTRunGetImageBounds(run CTRunRef, context_ coregraphics.CGContextRef, range_ corefoundation.CFRange) corefoundation.CGRect
CTRunGetImageBounds calls the CoreText framework function CTRunGetImageBounds.
func CTRunGetPositions ¶
func CTRunGetPositions(run CTRunRef, range_ corefoundation.CFRange, buffer *corefoundation.CGPoint)
CTRunGetPositions calls the CoreText framework function CTRunGetPositions.
func CTRunGetPositionsPtr ¶
func CTRunGetPositionsPtr(run CTRunRef) *corefoundation.CGPoint
CTRunGetPositionsPtr calls the CoreText framework function CTRunGetPositionsPtr.
func CTRunGetStringIndices ¶
func CTRunGetStringIndices(run CTRunRef, range_ corefoundation.CFRange) (buffer int)
CTRunGetStringIndices calls the CoreText framework function CTRunGetStringIndices.
func CTRunGetStringIndicesPtr ¶
CTRunGetStringIndicesPtr calls the CoreText framework function CTRunGetStringIndicesPtr.
func CTRunGetStringRange ¶
func CTRunGetStringRange(run CTRunRef) corefoundation.CFRange
CTRunGetStringRange calls the CoreText framework function CTRunGetStringRange.
func CTRunGetTextMatrix ¶
func CTRunGetTextMatrix(run CTRunRef) corefoundation.CGAffineTransform
CTRunGetTextMatrix calls the CoreText framework function CTRunGetTextMatrix.
func CTRunGetTypeID ¶
func CTRunGetTypeID() int
CTRunGetTypeID calls the CoreText framework function CTRunGetTypeID.
func CTRunGetTypographicBounds ¶
func CTRunGetTypographicBounds(run CTRunRef, range_ corefoundation.CFRange) (result float64, ascent float64, descent float64, leading float64)
CTRunGetTypographicBounds calls the CoreText framework function CTRunGetTypographicBounds.
func CTTextTabGetLocation ¶
func CTTextTabGetLocation(tab CTTextTabRef) float64
CTTextTabGetLocation calls the CoreText framework function CTTextTabGetLocation.
func CTTextTabGetOptions ¶
func CTTextTabGetOptions(tab CTTextTabRef) corefoundation.CFDictionaryRef
CTTextTabGetOptions calls the CoreText framework function CTTextTabGetOptions.
func CTTextTabGetTypeID ¶
func CTTextTabGetTypeID() int
CTTextTabGetTypeID calls the CoreText framework function CTTextTabGetTypeID.
func CTTypesetterGetTypeID ¶
func CTTypesetterGetTypeID() int
CTTypesetterGetTypeID calls the CoreText framework function CTTypesetterGetTypeID.
func CTTypesetterSuggestClusterBreak ¶
func CTTypesetterSuggestClusterBreak(typesetter CTTypesetterRef, startIndex int, width float64) int
CTTypesetterSuggestClusterBreak calls the CoreText framework function CTTypesetterSuggestClusterBreak.
func CTTypesetterSuggestClusterBreakWithOffset ¶
func CTTypesetterSuggestClusterBreakWithOffset(typesetter CTTypesetterRef, startIndex int, width float64, offset float64) int
CTTypesetterSuggestClusterBreakWithOffset calls the CoreText framework function CTTypesetterSuggestClusterBreakWithOffset.
func CTTypesetterSuggestLineBreak ¶
func CTTypesetterSuggestLineBreak(typesetter CTTypesetterRef, startIndex int, width float64) int
CTTypesetterSuggestLineBreak calls the CoreText framework function CTTypesetterSuggestLineBreak.
func CTTypesetterSuggestLineBreakWithOffset ¶
func CTTypesetterSuggestLineBreakWithOffset(typesetter CTTypesetterRef, startIndex int, width float64, offset float64) int
CTTypesetterSuggestLineBreakWithOffset calls the CoreText framework function CTTypesetterSuggestLineBreakWithOffset.
func KCTAdaptiveImageProviderAttributeName ¶
KCTAdaptiveImageProviderAttributeName returns the value of the constant kCTAdaptiveImageProviderAttributeName.
func KCTBackgroundColorAttributeName ¶
KCTBackgroundColorAttributeName returns the value of the constant kCTBackgroundColorAttributeName.
func KCTBaselineClassAttributeName ¶
KCTBaselineClassAttributeName returns the value of the constant kCTBaselineClassAttributeName.
func KCTBaselineClassHanging ¶
KCTBaselineClassHanging returns the value of the constant kCTBaselineClassHanging.
func KCTBaselineClassIdeographicCentered ¶
KCTBaselineClassIdeographicCentered returns the value of the constant kCTBaselineClassIdeographicCentered.
func KCTBaselineClassIdeographicHigh ¶
KCTBaselineClassIdeographicHigh returns the value of the constant kCTBaselineClassIdeographicHigh.
func KCTBaselineClassIdeographicLow ¶
KCTBaselineClassIdeographicLow returns the value of the constant kCTBaselineClassIdeographicLow.
func KCTBaselineClassMath ¶
KCTBaselineClassMath returns the value of the constant kCTBaselineClassMath.
func KCTBaselineClassRoman ¶
KCTBaselineClassRoman returns the value of the constant kCTBaselineClassRoman.
func KCTBaselineInfoAttributeName ¶
KCTBaselineInfoAttributeName returns the value of the constant kCTBaselineInfoAttributeName.
func KCTBaselineOffsetAttributeName ¶
KCTBaselineOffsetAttributeName returns the value of the constant kCTBaselineOffsetAttributeName.
func KCTBaselineOriginalFont ¶
KCTBaselineOriginalFont returns the value of the constant kCTBaselineOriginalFont.
func KCTBaselineReferenceFont ¶
KCTBaselineReferenceFont returns the value of the constant kCTBaselineReferenceFont.
func KCTBaselineReferenceInfoAttributeName ¶
KCTBaselineReferenceInfoAttributeName returns the value of the constant kCTBaselineReferenceInfoAttributeName.
func KCTCharacterShapeAttributeName ¶
KCTCharacterShapeAttributeName returns the value of the constant kCTCharacterShapeAttributeName.
func KCTFontAttributeName ¶
KCTFontAttributeName returns the value of the constant kCTFontAttributeName.
func KCTFontBaselineAdjustAttribute ¶
KCTFontBaselineAdjustAttribute returns the value of the constant kCTFontBaselineAdjustAttribute.
func KCTFontCascadeListAttribute ¶
KCTFontCascadeListAttribute returns the value of the constant kCTFontCascadeListAttribute.
func KCTFontCharacterSetAttribute ¶
KCTFontCharacterSetAttribute returns the value of the constant kCTFontCharacterSetAttribute.
func KCTFontCollectionDisallowAutoActivationOption ¶
KCTFontCollectionDisallowAutoActivationOption returns the value of the constant kCTFontCollectionDisallowAutoActivationOption.
func KCTFontCollectionIncludeDisabledFontsOption ¶
KCTFontCollectionIncludeDisabledFontsOption returns the value of the constant kCTFontCollectionIncludeDisabledFontsOption.
func KCTFontCollectionRemoveDuplicatesOption ¶
KCTFontCollectionRemoveDuplicatesOption returns the value of the constant kCTFontCollectionRemoveDuplicatesOption.
func KCTFontCopyrightNameKey ¶
KCTFontCopyrightNameKey returns the value of the constant kCTFontCopyrightNameKey.
func KCTFontDescriptionNameKey ¶
KCTFontDescriptionNameKey returns the value of the constant kCTFontDescriptionNameKey.
func KCTFontDescriptorLanguageAttribute ¶
KCTFontDescriptorLanguageAttribute returns the value of the constant kCTFontDescriptorLanguageAttribute.
func KCTFontDescriptorMatchingCurrentAssetSize ¶
KCTFontDescriptorMatchingCurrentAssetSize returns the value of the constant kCTFontDescriptorMatchingCurrentAssetSize.
func KCTFontDescriptorMatchingDescriptors ¶
KCTFontDescriptorMatchingDescriptors returns the value of the constant kCTFontDescriptorMatchingDescriptors.
func KCTFontDescriptorMatchingError ¶
KCTFontDescriptorMatchingError returns the value of the constant kCTFontDescriptorMatchingError.
func KCTFontDescriptorMatchingPercentage ¶
KCTFontDescriptorMatchingPercentage returns the value of the constant kCTFontDescriptorMatchingPercentage.
func KCTFontDescriptorMatchingResult ¶
KCTFontDescriptorMatchingResult returns the value of the constant kCTFontDescriptorMatchingResult.
func KCTFontDescriptorMatchingSourceDescriptor ¶
KCTFontDescriptorMatchingSourceDescriptor returns the value of the constant kCTFontDescriptorMatchingSourceDescriptor.
func KCTFontDescriptorMatchingTotalAssetSize ¶
KCTFontDescriptorMatchingTotalAssetSize returns the value of the constant kCTFontDescriptorMatchingTotalAssetSize.
func KCTFontDescriptorMatchingTotalDownloadedSize ¶
KCTFontDescriptorMatchingTotalDownloadedSize returns the value of the constant kCTFontDescriptorMatchingTotalDownloadedSize.
func KCTFontDesignerNameKey ¶
KCTFontDesignerNameKey returns the value of the constant kCTFontDesignerNameKey.
func KCTFontDesignerURLNameKey ¶
KCTFontDesignerURLNameKey returns the value of the constant kCTFontDesignerURLNameKey.
func KCTFontDisplayNameAttribute ¶
KCTFontDisplayNameAttribute returns the value of the constant kCTFontDisplayNameAttribute.
func KCTFontDownloadableAttribute ¶
KCTFontDownloadableAttribute returns the value of the constant kCTFontDownloadableAttribute.
func KCTFontDownloadedAttribute ¶
KCTFontDownloadedAttribute returns the value of the constant kCTFontDownloadedAttribute.
func KCTFontEnabledAttribute ¶
KCTFontEnabledAttribute returns the value of the constant kCTFontEnabledAttribute.
func KCTFontFamilyNameAttribute ¶
KCTFontFamilyNameAttribute returns the value of the constant kCTFontFamilyNameAttribute.
func KCTFontFamilyNameKey ¶
KCTFontFamilyNameKey returns the value of the constant kCTFontFamilyNameKey.
func KCTFontFeatureSampleTextKey ¶
KCTFontFeatureSampleTextKey returns the value of the constant kCTFontFeatureSampleTextKey.
func KCTFontFeatureSelectorDefaultKey ¶
KCTFontFeatureSelectorDefaultKey returns the value of the constant kCTFontFeatureSelectorDefaultKey.
func KCTFontFeatureSelectorIdentifierKey ¶
KCTFontFeatureSelectorIdentifierKey returns the value of the constant kCTFontFeatureSelectorIdentifierKey.
func KCTFontFeatureSelectorNameKey ¶
KCTFontFeatureSelectorNameKey returns the value of the constant kCTFontFeatureSelectorNameKey.
func KCTFontFeatureSelectorSettingKey ¶
KCTFontFeatureSelectorSettingKey returns the value of the constant kCTFontFeatureSelectorSettingKey.
func KCTFontFeatureSettingsAttribute ¶
KCTFontFeatureSettingsAttribute returns the value of the constant kCTFontFeatureSettingsAttribute.
func KCTFontFeatureTooltipTextKey ¶
KCTFontFeatureTooltipTextKey returns the value of the constant kCTFontFeatureTooltipTextKey.
func KCTFontFeatureTypeExclusiveKey ¶
KCTFontFeatureTypeExclusiveKey returns the value of the constant kCTFontFeatureTypeExclusiveKey.
func KCTFontFeatureTypeIdentifierKey ¶
KCTFontFeatureTypeIdentifierKey returns the value of the constant kCTFontFeatureTypeIdentifierKey.
func KCTFontFeatureTypeNameKey ¶
KCTFontFeatureTypeNameKey returns the value of the constant kCTFontFeatureTypeNameKey.
func KCTFontFeatureTypeSelectorsKey ¶
KCTFontFeatureTypeSelectorsKey returns the value of the constant kCTFontFeatureTypeSelectorsKey.
func KCTFontFeaturesAttribute ¶
KCTFontFeaturesAttribute returns the value of the constant kCTFontFeaturesAttribute.
func KCTFontFixedAdvanceAttribute ¶
KCTFontFixedAdvanceAttribute returns the value of the constant kCTFontFixedAdvanceAttribute.
func KCTFontFormatAttribute ¶
KCTFontFormatAttribute returns the value of the constant kCTFontFormatAttribute.
func KCTFontFullNameKey ¶
KCTFontFullNameKey returns the value of the constant kCTFontFullNameKey.
func KCTFontLanguagesAttribute ¶
KCTFontLanguagesAttribute returns the value of the constant kCTFontLanguagesAttribute.
func KCTFontLicenseNameKey ¶
KCTFontLicenseNameKey returns the value of the constant kCTFontLicenseNameKey.
func KCTFontLicenseURLNameKey ¶
KCTFontLicenseURLNameKey returns the value of the constant kCTFontLicenseURLNameKey.
func KCTFontMacintoshEncodingsAttribute ¶
KCTFontMacintoshEncodingsAttribute returns the value of the constant kCTFontMacintoshEncodingsAttribute.
func KCTFontManagerBundleIdentifier ¶
KCTFontManagerBundleIdentifier returns the value of the constant kCTFontManagerBundleIdentifier.
func KCTFontManagerErrorDomain ¶
KCTFontManagerErrorDomain returns the value of the constant kCTFontManagerErrorDomain.
func KCTFontManagerErrorFontURLsKey ¶
KCTFontManagerErrorFontURLsKey returns the value of the constant kCTFontManagerErrorFontURLsKey.
func KCTFontManagerRegisteredFontsChangedNotification ¶
KCTFontManagerRegisteredFontsChangedNotification returns the value of the constant kCTFontManagerRegisteredFontsChangedNotification.
func KCTFontManufacturerNameKey ¶
KCTFontManufacturerNameKey returns the value of the constant kCTFontManufacturerNameKey.
func KCTFontMatrixAttribute ¶
KCTFontMatrixAttribute returns the value of the constant kCTFontMatrixAttribute.
func KCTFontNameAttribute ¶
KCTFontNameAttribute returns the value of the constant kCTFontNameAttribute.
func KCTFontOpenTypeFeatureTag ¶
KCTFontOpenTypeFeatureTag returns the value of the constant kCTFontOpenTypeFeatureTag.
func KCTFontOpenTypeFeatureValue ¶
KCTFontOpenTypeFeatureValue returns the value of the constant kCTFontOpenTypeFeatureValue.
func KCTFontOpticalSizeAttribute ¶
KCTFontOpticalSizeAttribute returns the value of the constant kCTFontOpticalSizeAttribute.
func KCTFontOrientationAttribute ¶
KCTFontOrientationAttribute returns the value of the constant kCTFontOrientationAttribute.
func KCTFontPostScriptCIDNameKey ¶
KCTFontPostScriptCIDNameKey returns the value of the constant kCTFontPostScriptCIDNameKey.
func KCTFontPostScriptNameKey ¶
KCTFontPostScriptNameKey returns the value of the constant kCTFontPostScriptNameKey.
func KCTFontPriorityAttribute ¶
KCTFontPriorityAttribute returns the value of the constant kCTFontPriorityAttribute.
func KCTFontRegistrationScopeAttribute ¶
KCTFontRegistrationScopeAttribute returns the value of the constant kCTFontRegistrationScopeAttribute.
func KCTFontSampleTextNameKey ¶
KCTFontSampleTextNameKey returns the value of the constant kCTFontSampleTextNameKey.
func KCTFontSizeAttribute ¶
KCTFontSizeAttribute returns the value of the constant kCTFontSizeAttribute.
func KCTFontSlantTrait ¶
KCTFontSlantTrait returns the value of the constant kCTFontSlantTrait.
func KCTFontStyleNameAttribute ¶
KCTFontStyleNameAttribute returns the value of the constant kCTFontStyleNameAttribute.
func KCTFontStyleNameKey ¶
KCTFontStyleNameKey returns the value of the constant kCTFontStyleNameKey.
func KCTFontSubFamilyNameKey ¶
KCTFontSubFamilyNameKey returns the value of the constant kCTFontSubFamilyNameKey.
func KCTFontSymbolicTrait ¶
KCTFontSymbolicTrait returns the value of the constant kCTFontSymbolicTrait.
func KCTFontTrademarkNameKey ¶
KCTFontTrademarkNameKey returns the value of the constant kCTFontTrademarkNameKey.
func KCTFontTraitsAttribute ¶
KCTFontTraitsAttribute returns the value of the constant kCTFontTraitsAttribute.
func KCTFontURLAttribute ¶
KCTFontURLAttribute returns the value of the constant kCTFontURLAttribute.
func KCTFontUniqueNameKey ¶
KCTFontUniqueNameKey returns the value of the constant kCTFontUniqueNameKey.
func KCTFontVariationAttribute ¶
KCTFontVariationAttribute returns the value of the constant kCTFontVariationAttribute.
func KCTFontVariationAxesAttribute ¶
KCTFontVariationAxesAttribute returns the value of the constant kCTFontVariationAxesAttribute.
func KCTFontVariationAxisDefaultValueKey ¶
KCTFontVariationAxisDefaultValueKey returns the value of the constant kCTFontVariationAxisDefaultValueKey.
func KCTFontVariationAxisHiddenKey ¶
KCTFontVariationAxisHiddenKey returns the value of the constant kCTFontVariationAxisHiddenKey.
func KCTFontVariationAxisIdentifierKey ¶
KCTFontVariationAxisIdentifierKey returns the value of the constant kCTFontVariationAxisIdentifierKey.
func KCTFontVariationAxisMaximumValueKey ¶
KCTFontVariationAxisMaximumValueKey returns the value of the constant kCTFontVariationAxisMaximumValueKey.
func KCTFontVariationAxisMinimumValueKey ¶
KCTFontVariationAxisMinimumValueKey returns the value of the constant kCTFontVariationAxisMinimumValueKey.
func KCTFontVariationAxisNameKey ¶
KCTFontVariationAxisNameKey returns the value of the constant kCTFontVariationAxisNameKey.
func KCTFontVendorURLNameKey ¶
KCTFontVendorURLNameKey returns the value of the constant kCTFontVendorURLNameKey.
func KCTFontVersionNameKey ¶
KCTFontVersionNameKey returns the value of the constant kCTFontVersionNameKey.
func KCTFontWeightTrait ¶
KCTFontWeightTrait returns the value of the constant kCTFontWeightTrait.
func KCTFontWidthTrait ¶
KCTFontWidthTrait returns the value of the constant kCTFontWidthTrait.
func KCTForegroundColorAttributeName ¶
KCTForegroundColorAttributeName returns the value of the constant kCTForegroundColorAttributeName.
func KCTForegroundColorFromContextAttributeName ¶
KCTForegroundColorFromContextAttributeName returns the value of the constant kCTForegroundColorFromContextAttributeName.
func KCTFrameClippingPathsAttributeName ¶
KCTFrameClippingPathsAttributeName returns the value of the constant kCTFrameClippingPathsAttributeName.
func KCTFramePathClippingPathAttributeName ¶
KCTFramePathClippingPathAttributeName returns the value of the constant kCTFramePathClippingPathAttributeName.
func KCTFramePathFillRuleAttributeName ¶
KCTFramePathFillRuleAttributeName returns the value of the constant kCTFramePathFillRuleAttributeName.
func KCTFramePathWidthAttributeName ¶
KCTFramePathWidthAttributeName returns the value of the constant kCTFramePathWidthAttributeName.
func KCTFrameProgressionAttributeName ¶
KCTFrameProgressionAttributeName returns the value of the constant kCTFrameProgressionAttributeName.
func KCTGlyphInfoAttributeName ¶
KCTGlyphInfoAttributeName returns the value of the constant kCTGlyphInfoAttributeName.
func KCTHorizontalInVerticalFormsAttributeName ¶
KCTHorizontalInVerticalFormsAttributeName returns the value of the constant kCTHorizontalInVerticalFormsAttributeName.
func KCTKernAttributeName ¶
KCTKernAttributeName returns the value of the constant kCTKernAttributeName.
func KCTLanguageAttributeName ¶
KCTLanguageAttributeName returns the value of the constant kCTLanguageAttributeName.
func KCTLigatureAttributeName ¶
KCTLigatureAttributeName returns the value of the constant kCTLigatureAttributeName.
func KCTParagraphStyleAttributeName ¶
KCTParagraphStyleAttributeName returns the value of the constant kCTParagraphStyleAttributeName.
func KCTRubyAnnotationAttributeName ¶
KCTRubyAnnotationAttributeName returns the value of the constant kCTRubyAnnotationAttributeName.
func KCTRubyAnnotationScaleToFitAttributeName ¶
KCTRubyAnnotationScaleToFitAttributeName returns the value of the constant kCTRubyAnnotationScaleToFitAttributeName.
func KCTRubyAnnotationSizeFactorAttributeName ¶
KCTRubyAnnotationSizeFactorAttributeName returns the value of the constant kCTRubyAnnotationSizeFactorAttributeName.
func KCTRunDelegateAttributeName ¶
KCTRunDelegateAttributeName returns the value of the constant kCTRunDelegateAttributeName.
func KCTStrokeColorAttributeName ¶
KCTStrokeColorAttributeName returns the value of the constant kCTStrokeColorAttributeName.
func KCTStrokeWidthAttributeName ¶
KCTStrokeWidthAttributeName returns the value of the constant kCTStrokeWidthAttributeName.
func KCTSuperscriptAttributeName ¶
KCTSuperscriptAttributeName returns the value of the constant kCTSuperscriptAttributeName.
func KCTTabColumnTerminatorsAttributeName ¶
KCTTabColumnTerminatorsAttributeName returns the value of the constant kCTTabColumnTerminatorsAttributeName.
func KCTTrackingAttributeName ¶
KCTTrackingAttributeName returns the value of the constant kCTTrackingAttributeName.
func KCTTypesetterOptionAllowUnboundedLayout ¶
KCTTypesetterOptionAllowUnboundedLayout returns the value of the constant kCTTypesetterOptionAllowUnboundedLayout.
func KCTTypesetterOptionDisableBidiProcessing ¶
KCTTypesetterOptionDisableBidiProcessing returns the value of the constant kCTTypesetterOptionDisableBidiProcessing.
func KCTTypesetterOptionForcedEmbeddingLevel ¶
KCTTypesetterOptionForcedEmbeddingLevel returns the value of the constant kCTTypesetterOptionForcedEmbeddingLevel.
func KCTUnderlineColorAttributeName ¶
KCTUnderlineColorAttributeName returns the value of the constant kCTUnderlineColorAttributeName.
func KCTUnderlineStyleAttributeName ¶
KCTUnderlineStyleAttributeName returns the value of the constant kCTUnderlineStyleAttributeName.
func KCTVerticalFormsAttributeName ¶
KCTVerticalFormsAttributeName returns the value of the constant kCTVerticalFormsAttributeName.
func KCTWritingDirectionAttributeName ¶
KCTWritingDirectionAttributeName returns the value of the constant kCTWritingDirectionAttributeName.
Types ¶
type ALMXGlyphEntry ¶
type ALMXHeader ¶
type AnchorPoint ¶
type AnchorPointTable ¶
type AnchorPointTable struct {
NPoints uint32
Points [1]AnchorPoint
}
type BslnFormat0Part ¶
type BslnFormat0Part struct {
Deltas [32]int16
}
type BslnFormat1Part ¶
type BslnFormat1Part struct {
Deltas [32]int16
MappingData SFNTLookupTable
}
type BslnFormat2Part ¶
type BslnFormat3Part ¶
type BslnFormat3Part struct {
StdGlyph uint16
CtlPoints [32]int16
MappingData SFNTLookupTable
}
type BslnFormatUnion ¶ added in v0.18.0
type BslnFormatUnion struct {
Fmt0Part BslnFormat0Part
Fmt1Part BslnFormat1Part
Fmt2Part BslnFormat2Part
Fmt3Part BslnFormat3Part
}
type BslnTable ¶
type BslnTable struct {
Version int32
Format uint16
DefaultBaseline uint16
Parts BslnFormatUnion
}
type CTAdaptiveImageProviding ¶
type CTAdaptiveImageProviding interface {
ImageForProposedSizeScaleFactorImageOffsetImageSize(proposedSize corefoundation.CGSize, scaleFactor float64, outImageOffset *corefoundation.CGPoint, outImageSize *corefoundation.CGSize) coregraphics.CGImageRef
}
CTAdaptiveImageProviding is the Go form of the Objective-C protocol CTAdaptiveImageProviding.
type CTCharacterCollection ¶
type CTCharacterCollection uint16
Constants that specify character collections.
const ( // The character identifier is equal to the glyph index. KCTCharacterCollectionIdentityMapping CTCharacterCollection = 0 // The Adobe-CNS1 mapping. KCTCharacterCollectionAdobeCNS1 CTCharacterCollection = 1 // The Adobe-GB1 mapping. KCTCharacterCollectionAdobeGB1 CTCharacterCollection = 2 // The Adobe-Japan1 mapping. KCTCharacterCollectionAdobeJapan1 CTCharacterCollection = 3 // The Adobe-Japan2 mapping. KCTCharacterCollectionAdobeJapan2 CTCharacterCollection = 4 // The Adobe-Korea1 mapping. KCTCharacterCollectionAdobeKorea1 CTCharacterCollection = 5 // The character identifier is equal to the glyph index. KCTIdentityMappingCharacterCollection CTCharacterCollection = 0 // The Adobe-CNS1 mapping. KCTAdobeCNS1CharacterCollection CTCharacterCollection = 1 // The Adobe-GB1 mapping. KCTAdobeGB1CharacterCollection CTCharacterCollection = 2 // The Adobe-Japan1 mapping. KCTAdobeJapan1CharacterCollection CTCharacterCollection = 3 // The Adobe-Japan2 mapping. KCTAdobeJapan2CharacterCollection CTCharacterCollection = 4 // The Adobe-Korea1 mapping. KCTAdobeKorea1CharacterCollection CTCharacterCollection = 5 )
func CTGlyphInfoGetCharacterCollection ¶
func CTGlyphInfoGetCharacterCollection(glyphInfo CTGlyphInfoRef) CTCharacterCollection
CTGlyphInfoGetCharacterCollection calls the CoreText framework function CTGlyphInfoGetCharacterCollection.
func (CTCharacterCollection) String ¶
func (e CTCharacterCollection) String() string
String returns the CTCharacterCollection constant's name, or its numeric form when the value is not a known constant.
type CTFontCollection ¶
type CTFontCollection struct{}
type CTFontCollectionCopyOptions ¶
type CTFontCollectionCopyOptions uint32
Option bits for use with CTFontCollectionCopyFontAttribute(s). Bitmask — values may be combined with |.
const ( // Passing this option indicates that defaults are to be used. KCTFontCollectionCopyDefaultOptions CTFontCollectionCopyOptions = 0 // Passing this option indicates that duplicate values should be removed from the results. KCTFontCollectionCopyUnique CTFontCollectionCopyOptions = 1 // Passing this option indicates that the return values should be sorted in standard UI order, suitable for display to the user. This is the same sorting behavior used by NSFontPanel and Font Book. KCTFontCollectionCopyStandardSort CTFontCollectionCopyOptions = 2 )
func (CTFontCollectionCopyOptions) String ¶
func (e CTFontCollectionCopyOptions) String() string
String returns the CTFontCollectionCopyOptions constant's name, or its numeric form when the value is not a known constant.
type CTFontCollectionRef ¶ added in v0.18.0
CTFontCollectionRef is a handle for the opaque CTFontCollectionRef type.
func CTFontCollectionCreateCopyWithFontDescriptors ¶
func CTFontCollectionCreateCopyWithFontDescriptors(original CTFontCollectionRef, queryDescriptors corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) CTFontCollectionRef
CTFontCollectionCreateCopyWithFontDescriptors calls the CoreText framework function CTFontCollectionCreateCopyWithFontDescriptors.
func CTFontCollectionCreateFromAvailableFonts ¶
func CTFontCollectionCreateFromAvailableFonts(options corefoundation.CFDictionaryRef) CTFontCollectionRef
CTFontCollectionCreateFromAvailableFonts calls the CoreText framework function CTFontCollectionCreateFromAvailableFonts.
func CTFontCollectionCreateWithFontDescriptors ¶
func CTFontCollectionCreateWithFontDescriptors(queryDescriptors corefoundation.CFArrayRef, options corefoundation.CFDictionaryRef) CTFontCollectionRef
CTFontCollectionCreateWithFontDescriptors calls the CoreText framework function CTFontCollectionCreateWithFontDescriptors.
func (CTFontCollectionRef) IsNil ¶ added in v0.18.0
func (h CTFontCollectionRef) IsNil() bool
IsNil reports whether CTFontCollectionRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CTFontDescriptor ¶
type CTFontDescriptor struct{}
type CTFontDescriptorMatchingState ¶
type CTFontDescriptorMatchingState uint32
Constants that track the progress of font descriptor matching.
const ( // A state that indicates matching is about to begin. KCTFontDescriptorMatchingDidBegin CTFontDescriptorMatchingState = 0 // A state that indicates matching is done. KCTFontDescriptorMatchingDidFinish CTFontDescriptorMatchingState = 1 // A state that indicates communication with the server is about to begin. KCTFontDescriptorMatchingWillBeginQuerying CTFontDescriptorMatchingState = 2 // A state that indicates that matching is stalled, such as while waiting for a server response. KCTFontDescriptorMatchingStalled CTFontDescriptorMatchingState = 3 // A state that indicates downloading is about to begin. KCTFontDescriptorMatchingWillBeginDownloading CTFontDescriptorMatchingState = 4 // A state that indicates downloading is in progress. KCTFontDescriptorMatchingDownloading CTFontDescriptorMatchingState = 5 // A state that indicates downloading is done. KCTFontDescriptorMatchingDidFinishDownloading CTFontDescriptorMatchingState = 6 // A state that indicates the font descriptor match is successful. KCTFontDescriptorMatchingDidMatch CTFontDescriptorMatchingState = 7 // A state that indicates an error. KCTFontDescriptorMatchingDidFailWithError CTFontDescriptorMatchingState = 8 )
func (CTFontDescriptorMatchingState) String ¶
func (e CTFontDescriptorMatchingState) String() string
String returns the CTFontDescriptorMatchingState constant's name, or its numeric form when the value is not a known constant.
type CTFontDescriptorRef ¶ added in v0.18.0
CTFontDescriptorRef is a handle for the opaque CTFontDescriptorRef type.
func CTFontCopyFontDescriptor ¶
func CTFontCopyFontDescriptor(font CTFontRef) CTFontDescriptorRef
CTFontCopyFontDescriptor calls the CoreText framework function CTFontCopyFontDescriptor.
func CTFontDescriptorCreateCopyWithAttributes ¶
func CTFontDescriptorCreateCopyWithAttributes(original CTFontDescriptorRef, attributes corefoundation.CFDictionaryRef) CTFontDescriptorRef
CTFontDescriptorCreateCopyWithAttributes calls the CoreText framework function CTFontDescriptorCreateCopyWithAttributes.
func CTFontDescriptorCreateCopyWithFamily ¶
func CTFontDescriptorCreateCopyWithFamily(original CTFontDescriptorRef, family corefoundation.CFStringRef) CTFontDescriptorRef
CTFontDescriptorCreateCopyWithFamily calls the CoreText framework function CTFontDescriptorCreateCopyWithFamily.
func CTFontDescriptorCreateCopyWithFeature ¶
func CTFontDescriptorCreateCopyWithFeature(original CTFontDescriptorRef, featureTypeIdentifier corefoundation.CFNumberRef, featureSelectorIdentifier corefoundation.CFNumberRef) CTFontDescriptorRef
CTFontDescriptorCreateCopyWithFeature calls the CoreText framework function CTFontDescriptorCreateCopyWithFeature.
func CTFontDescriptorCreateCopyWithSymbolicTraits ¶
func CTFontDescriptorCreateCopyWithSymbolicTraits(original CTFontDescriptorRef, symTraitValue CTFontSymbolicTraits, symTraitMask CTFontSymbolicTraits) CTFontDescriptorRef
CTFontDescriptorCreateCopyWithSymbolicTraits calls the CoreText framework function CTFontDescriptorCreateCopyWithSymbolicTraits.
func CTFontDescriptorCreateCopyWithVariation ¶
func CTFontDescriptorCreateCopyWithVariation(original CTFontDescriptorRef, variationIdentifier corefoundation.CFNumberRef, variationValue float64) CTFontDescriptorRef
CTFontDescriptorCreateCopyWithVariation calls the CoreText framework function CTFontDescriptorCreateCopyWithVariation.
func CTFontDescriptorCreateMatchingFontDescriptor ¶
func CTFontDescriptorCreateMatchingFontDescriptor(descriptor CTFontDescriptorRef, mandatoryAttributes corefoundation.CFSetRef) CTFontDescriptorRef
CTFontDescriptorCreateMatchingFontDescriptor calls the CoreText framework function CTFontDescriptorCreateMatchingFontDescriptor.
func CTFontDescriptorCreateWithAttributes ¶
func CTFontDescriptorCreateWithAttributes(attributes corefoundation.CFDictionaryRef) CTFontDescriptorRef
CTFontDescriptorCreateWithAttributes calls the CoreText framework function CTFontDescriptorCreateWithAttributes.
func CTFontDescriptorCreateWithNameAndSize ¶
func CTFontDescriptorCreateWithNameAndSize(name corefoundation.CFStringRef, size float64) CTFontDescriptorRef
CTFontDescriptorCreateWithNameAndSize calls the CoreText framework function CTFontDescriptorCreateWithNameAndSize.
func CTFontManagerCreateFontDescriptorFromData ¶
func CTFontManagerCreateFontDescriptorFromData(data corefoundation.CFDataRef) CTFontDescriptorRef
CTFontManagerCreateFontDescriptorFromData calls the CoreText framework function CTFontManagerCreateFontDescriptorFromData.
func (CTFontDescriptorRef) IsNil ¶ added in v0.18.0
func (h CTFontDescriptorRef) IsNil() bool
IsNil reports whether CTFontDescriptorRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CTFontFormat ¶
type CTFontFormat uint32
The recognized format of the font.
const ( // The font is not a recognized format. KCTFontFormatUnrecognized CTFontFormat = 0 // The font is an OpenType format containing PostScript data. KCTFontFormatOpenTypePostScript CTFontFormat = 1 // The font is an OpenType format containing TrueType data. KCTFontFormatOpenTypeTrueType CTFontFormat = 2 // The font is a recognized TrueType format. KCTFontFormatTrueType CTFontFormat = 3 // The font is a recognized PostScript format. KCTFontFormatPostScript CTFontFormat = 4 // The font is a bitmap-only format. KCTFontFormatBitmap CTFontFormat = 5 )
func (CTFontFormat) String ¶
func (e CTFontFormat) String() string
String returns the CTFontFormat constant's name, or its numeric form when the value is not a known constant.
type CTFontManagerAutoActivationSetting ¶
type CTFontManagerAutoActivationSetting uint32
Sets the auto-activation for the specified bundle identifier.
const ( KCTFontManagerAutoActivationDefault CTFontManagerAutoActivationSetting = 0 KCTFontManagerAutoActivationDisabled CTFontManagerAutoActivationSetting = 1 KCTFontManagerAutoActivationEnabled CTFontManagerAutoActivationSetting = 2 KCTFontManagerAutoActivationPromptUser CTFontManagerAutoActivationSetting = 3 )
func CTFontManagerGetAutoActivationSetting ¶
func CTFontManagerGetAutoActivationSetting(bundleIdentifier corefoundation.CFStringRef) CTFontManagerAutoActivationSetting
CTFontManagerGetAutoActivationSetting calls the CoreText framework function CTFontManagerGetAutoActivationSetting.
func (CTFontManagerAutoActivationSetting) String ¶
func (e CTFontManagerAutoActivationSetting) String() string
String returns the CTFontManagerAutoActivationSetting constant's name, or its numeric form when the value is not a known constant.
type CTFontManagerError ¶
type CTFontManagerError int64
Errors that prevent unregistration of fonts for a specified font file URL.
const ( // An error that indicates the file doesn’t exist at the specified URL. KCTFontManagerErrorFileNotFound CTFontManagerError = 101 // An error that indicates insufficient permissions to access the file. KCTFontManagerErrorInsufficientPermissions CTFontManagerError = 102 // An error that indicates the file’s format is unrecognized or unsupported. KCTFontManagerErrorUnrecognizedFormat CTFontManagerError = 103 // An error that indicates the file contains invalid font data that could cause system problems. KCTFontManagerErrorInvalidFontData CTFontManagerError = 104 // An error that indicates the file is already registered in the specified scope. KCTFontManagerErrorAlreadyRegistered CTFontManagerError = 105 // An error that indicates an operation failure due to a system limitation. KCTFontManagerErrorExceededResourceLimit CTFontManagerError = 106 // An error that indicates the asset isn’t found. KCTFontManagerErrorAssetNotFound CTFontManagerError = 107 // An error that indicates the file isn’t registered in the specified scope. KCTFontManagerErrorNotRegistered CTFontManagerError = 201 // An error that indicates the font file is actively in use and can’t be unregistered. KCTFontManagerErrorInUse CTFontManagerError = 202 // An error that indicates the file is required by the system and can’t be unregistered. KCTFontManagerErrorSystemRequired CTFontManagerError = 203 // An error that indicates the file can’t be processed due to an unexpected FontProvider error. KCTFontManagerErrorRegistrationFailed CTFontManagerError = 301 // An error that indicates the file can’t be processed because the provider doesn’t have a necessary entitlement. KCTFontManagerErrorMissingEntitlement CTFontManagerError = 302 // An error that indicates the font descriptor doesn’t have the necessary information to specify a font file. KCTFontManagerErrorInsufficientInfo CTFontManagerError = 303 // An error that indicates the user cancelled the operation. KCTFontManagerErrorCancelledByUser CTFontManagerError = 304 // An error that indicates the file can’t register because of a duplicate font name. KCTFontManagerErrorDuplicatedName CTFontManagerError = 305 // 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 // An error that indicates the specified scope isn’t supported. KCTFontManagerErrorUnsupportedScope CTFontManagerError = 307 )
func (CTFontManagerError) String ¶
func (e CTFontManagerError) String() string
String returns the CTFontManagerError constant's name, or its numeric form when the value is not a known constant.
type CTFontManagerScope ¶
type CTFontManagerScope uint32
Constants that define the scope for font registration.
const ( // No scope is defined. KCTFontManagerScopeNone CTFontManagerScope = 0 // The font is available to the current process for the duration of the process unless directly unregistered. KCTFontManagerScopeProcess CTFontManagerScope = 1 // The font is available to all processes for the current user session and will be available in subsequent sessions unless unregistered. KCTFontManagerScopePersistent CTFontManagerScope = 2 // The font is available to the current user session but won’t be available in subsequent sessions. KCTFontManagerScopeSession CTFontManagerScope = 3 // The font is available to all processes for the current user session and will be available in subsequent sessions unless unregistered. KCTFontManagerScopeUser CTFontManagerScope = 2 )
func CTFontManagerGetScopeForURL ¶
func CTFontManagerGetScopeForURL(fontURL corefoundation.CFURLRef) CTFontManagerScope
CTFontManagerGetScopeForURL calls the CoreText framework function CTFontManagerGetScopeForURL.
func (CTFontManagerScope) String ¶
func (e CTFontManagerScope) String() string
String returns the CTFontManagerScope constant's name, or its numeric form when the value is not a known constant.
type CTFontOptions ¶
type CTFontOptions uint64
Options for font creation and descriptor matching. Bitmask — values may be combined with |.
const ( // Default options are used. KCTFontOptionsDefault CTFontOptions = 0 // Prevents automatic font activation. KCTFontOptionsPreventAutoActivation CTFontOptions = 1 KCTFontOptionsPreventAutoDownload CTFontOptions = 2 // Font matching prefers to match Apple system fonts. KCTFontOptionsPreferSystemFont CTFontOptions = 4 )
func (CTFontOptions) String ¶
func (e CTFontOptions) String() string
String returns the CTFontOptions constant's name, or its numeric form when the value is not a known constant.
type CTFontOrientation ¶
type CTFontOrientation uint32
The intended rendering orientation of the font for obtaining glyph metrics.
const ( // The native orientation of the font. KCTFontOrientationDefault CTFontOrientation = 0 // The horizontal orientation. KCTFontOrientationHorizontal CTFontOrientation = 1 // The vertical orientation. KCTFontOrientationVertical CTFontOrientation = 2 // The native orientation of the font. KCTFontDefaultOrientation CTFontOrientation = 0 // The horizontal orientation. KCTFontHorizontalOrientation CTFontOrientation = 1 // The vertical orientation. KCTFontVerticalOrientation CTFontOrientation = 2 )
func (CTFontOrientation) String ¶
func (e CTFontOrientation) String() string
String returns the CTFontOrientation constant's name, or its numeric form when the value is not a known constant.
type CTFontRef ¶ added in v0.18.0
CTFontRef is a handle for the opaque CTFontRef type.
func CTFontCreateCopyWithAttributes ¶
func CTFontCreateCopyWithAttributes(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, attributes CTFontDescriptorRef) CTFontRef
CTFontCreateCopyWithAttributes calls the CoreText framework function CTFontCreateCopyWithAttributes.
func CTFontCreateCopyWithFamily ¶
func CTFontCreateCopyWithFamily(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, family corefoundation.CFStringRef) CTFontRef
CTFontCreateCopyWithFamily calls the CoreText framework function CTFontCreateCopyWithFamily.
func CTFontCreateCopyWithSymbolicTraits ¶
func CTFontCreateCopyWithSymbolicTraits(font CTFontRef, size float64, matrix *corefoundation.CGAffineTransform, symTraitValue CTFontSymbolicTraits, symTraitMask CTFontSymbolicTraits) CTFontRef
CTFontCreateCopyWithSymbolicTraits calls the CoreText framework function CTFontCreateCopyWithSymbolicTraits.
func CTFontCreateForString ¶
func CTFontCreateForString(currentFont CTFontRef, str corefoundation.CFStringRef, range_ corefoundation.CFRange) CTFontRef
CTFontCreateForString calls the CoreText framework function CTFontCreateForString.
func CTFontCreateForStringWithLanguage ¶
func CTFontCreateForStringWithLanguage(currentFont CTFontRef, str corefoundation.CFStringRef, range_ corefoundation.CFRange, language corefoundation.CFStringRef) CTFontRef
CTFontCreateForStringWithLanguage calls the CoreText framework function CTFontCreateForStringWithLanguage.
func CTFontCreateUIFontForLanguage ¶
func CTFontCreateUIFontForLanguage(uiType CTFontUIFontType, size float64, language corefoundation.CFStringRef) CTFontRef
CTFontCreateUIFontForLanguage calls the CoreText framework function CTFontCreateUIFontForLanguage.
func CTFontCreateWithFontDescriptor ¶
func CTFontCreateWithFontDescriptor(descriptor CTFontDescriptorRef, size float64, matrix *corefoundation.CGAffineTransform) CTFontRef
CTFontCreateWithFontDescriptor calls the CoreText framework function CTFontCreateWithFontDescriptor.
func CTFontCreateWithFontDescriptorAndOptions ¶
func CTFontCreateWithFontDescriptorAndOptions(descriptor CTFontDescriptorRef, size float64, matrix *corefoundation.CGAffineTransform, options CTFontOptions) CTFontRef
CTFontCreateWithFontDescriptorAndOptions calls the CoreText framework function CTFontCreateWithFontDescriptorAndOptions.
func CTFontCreateWithGraphicsFont ¶
func CTFontCreateWithGraphicsFont(graphicsFont coregraphics.CGFontRef, size float64, matrix *corefoundation.CGAffineTransform, attributes CTFontDescriptorRef) CTFontRef
CTFontCreateWithGraphicsFont calls the CoreText framework function CTFontCreateWithGraphicsFont.
func CTFontCreateWithName ¶
func CTFontCreateWithName(name corefoundation.CFStringRef, size float64, matrix *corefoundation.CGAffineTransform) CTFontRef
CTFontCreateWithName calls the CoreText framework function CTFontCreateWithName.
func CTFontCreateWithNameAndOptions ¶
func CTFontCreateWithNameAndOptions(name corefoundation.CFStringRef, size float64, matrix *corefoundation.CGAffineTransform, options CTFontOptions) CTFontRef
CTFontCreateWithNameAndOptions calls the CoreText framework function CTFontCreateWithNameAndOptions.
func CTFontCreateWithPlatformFont ¶
func CTFontCreateWithPlatformFont(platformFont int, size float64, matrix *corefoundation.CGAffineTransform, attributes CTFontDescriptorRef) CTFontRef
CTFontCreateWithPlatformFont calls the CoreText framework function CTFontCreateWithPlatformFont.
type CTFontStylisticClass ¶
type CTFontStylisticClass uint32
The stylistic class values of the font. Bitmask — values may be combined with |.
const ( // The font has no design classification. KCTFontClassUnknown CTFontStylisticClass = 0 // A font style based on the Latin printing style of the 15th to 17th century. KCTFontClassOldStyleSerifs CTFontStylisticClass = 268435456 // A font style based on the Latin printing style of the 18th to 19th century. KCTFontClassTransitionalSerifs CTFontStylisticClass = 536870912 // A font style based on the Latin printing style of the 20th century. KCTFontClassModernSerifs CTFontStylisticClass = 805306368 // A font style variation of the Oldstyle Serifs and the Transitional Serifs. KCTFontClassClarendonSerifs CTFontStylisticClass = 1073741824 // A font style characterized by serifs with a square transition between the strokes and the serifs (no brackets). KCTFontClassSlabSerifs CTFontStylisticClass = 1342177280 // 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 // A font style that includes most basic letter forms (excluding Scripts and Ornamentals) that do not have serifs on the strokes. KCTFontClassSansSerif CTFontStylisticClass = 2147483648 // A font style that includes highly decorated or stylized character shapes such as those typically used in headlines. KCTFontClassOrnamentals CTFontStylisticClass = 2415919104 // A font style among those typefaces designed to simulate handwriting. KCTFontClassScripts CTFontStylisticClass = 2684354560 // A generally design-independent font style. KCTFontClassSymbolic CTFontStylisticClass = 3221225472 // The font has no design classification. KCTFontUnknownClass CTFontStylisticClass = 0 // The font’s style is based on the Latin printing style of the 15th to 17th century. KCTFontOldStyleSerifsClass CTFontStylisticClass = 268435456 // The font’s style is based on the Latin printing style of the 18th to 19th century. KCTFontTransitionalSerifsClass CTFontStylisticClass = 536870912 // The font’s style is based on the Latin printing style of the 20th century. KCTFontModernSerifsClass CTFontStylisticClass = 805306368 // The font’s style is a variation of the Oldstyle Serifs and the Transitional Serifs. KCTFontClarendonSerifsClass CTFontStylisticClass = 1073741824 // The font’s style is characterized by serifs with a square transition between the strokes and the serifs (no brackets). KCTFontSlabSerifsClass CTFontStylisticClass = 1342177280 // 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 // The font’s style includes most basic letter forms (excluding Scripts and Ornamentals) that do not have serifs on the strokes. KCTFontSansSerifClass CTFontStylisticClass = 2147483648 // The font’s style includes highly decorated or stylized character shapes such as those typically used in headlines. KCTFontOrnamentalsClass CTFontStylisticClass = 2415919104 // The font’s style is among those typefaces designed to simulate handwriting. KCTFontScriptsClass CTFontStylisticClass = 2684354560 // The font’s style is generally design independent. KCTFontSymbolicClass CTFontStylisticClass = 3221225472 )
func (CTFontStylisticClass) String ¶
func (e CTFontStylisticClass) String() string
String returns the CTFontStylisticClass constant's name, or its numeric form when the value is not a known constant.
type CTFontSymbolicTraits ¶
type CTFontSymbolicTraits uint32
The symbolic representation of stylistic font attributes. Bitmask — values may be combined with |.
const ( // The font typestyle is italic. KCTFontTraitItalic CTFontSymbolicTraits = 1 // The font typestyle is boldface. KCTFontTraitBold CTFontSymbolicTraits = 2 // The font typestyle is expanded. KCTFontTraitExpanded CTFontSymbolicTraits = 32 // The font typestyle is condensed. KCTFontTraitCondensed CTFontSymbolicTraits = 64 // The font uses fixed-pitch glyphs if available. KCTFontTraitMonoSpace CTFontSymbolicTraits = 1024 // The font uses vertical glyph variants and metrics. KCTFontTraitVertical CTFontSymbolicTraits = 2048 // The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary. KCTFontTraitUIOptimized CTFontSymbolicTraits = 4096 // The font contains color glyphs. KCTFontTraitColorGlyphs CTFontSymbolicTraits = 8192 // The font is in Composite Font Reference format. KCTFontTraitComposite CTFontSymbolicTraits = 16384 // Mask for the font class. KCTFontTraitClassMask CTFontSymbolicTraits = 4026531840 // The font typestyle is italic. KCTFontItalicTrait CTFontSymbolicTraits = 1 // The font typestyle is boldface. KCTFontBoldTrait CTFontSymbolicTraits = 2 // The font typestyle is expanded. KCTFontExpandedTrait CTFontSymbolicTraits = 32 // The font typestyle is condensed. KCTFontCondensedTrait CTFontSymbolicTraits = 64 // The font uses fixed-pitch glyphs if available. KCTFontMonoSpaceTrait CTFontSymbolicTraits = 1024 // The font uses vertical glyph variants and metrics. KCTFontVerticalTrait CTFontSymbolicTraits = 2048 // The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary. KCTFontUIOptimizedTrait CTFontSymbolicTraits = 4096 // The font contains color glyphs. KCTFontColorGlyphsTrait CTFontSymbolicTraits = 8192 // The font is in Composite Font Reference format. KCTFontCompositeTrait CTFontSymbolicTraits = 16384 // Mask for the font class. KCTFontClassMaskTrait CTFontSymbolicTraits = 4026531840 )
func CTFontGetSymbolicTraits ¶
func CTFontGetSymbolicTraits(font CTFontRef) CTFontSymbolicTraits
CTFontGetSymbolicTraits calls the CoreText framework function CTFontGetSymbolicTraits.
func (CTFontSymbolicTraits) String ¶
func (e CTFontSymbolicTraits) String() string
String returns the CTFontSymbolicTraits constant's name, or its numeric form when the value is not a known constant.
type CTFontTableOptions ¶
type CTFontTableOptions uint32
Constants that describe font table options. Bitmask — values may be combined with |.
const ( // No font table options are specified. KCTFontTableOptionNoOptions CTFontTableOptions = 0 // The font table excludes synthetic font data. KCTFontTableOptionExcludeSynthetic CTFontTableOptions = 1 )
func (CTFontTableOptions) String ¶
func (e CTFontTableOptions) String() string
String returns the CTFontTableOptions constant's name, or its numeric form when the value is not a known constant.
type CTFontUIFontType ¶
type CTFontUIFontType uint32
Constants that represent the specific user-interface purpose to specify for font creation.
const ( // The user-interface font type isn’t specified. KCTFontUIFontNone CTFontUIFontType = 4294967295 // The default font for documents and other text whose font the user can typically change. KCTFontUIFontUser CTFontUIFontType = 0 // The default font for documents and other text under the user’s control when that font is fixed-pitch. KCTFontUIFontUserFixedPitch CTFontUIFontType = 1 // The system font for standard user-interface items, such as button labels and menu items. KCTFontUIFontSystem CTFontUIFontType = 2 // The system font for emphasis in alerts. KCTFontUIFontEmphasizedSystem CTFontUIFontType = 3 // The standard small system font for informative text in alerts, column headings in lists, help tags, and small controls. KCTFontUIFontSmallSystem CTFontUIFontType = 4 // The small system font for emphasis. KCTFontUIFontSmallEmphasizedSystem CTFontUIFontType = 5 // The standard miniature system font for mini controls and utility window labels and text. KCTFontUIFontMiniSystem CTFontUIFontType = 6 // The miniature system font for emphasis. KCTFontUIFontMiniEmphasizedSystem CTFontUIFontType = 7 // The default view font for text in lists and tables. KCTFontUIFontViews CTFontUIFontType = 8 // The default font for text documents. KCTFontUIFontApplication CTFontUIFontType = 9 // The font for labels and tick marks on full-size sliders. KCTFontUIFontLabel CTFontUIFontType = 10 // The font for menu titles. KCTFontUIFontMenuTitle CTFontUIFontType = 11 // The font for menu items. KCTFontUIFontMenuItem CTFontUIFontType = 12 // The font to draw menu-item marks. KCTFontUIFontMenuItemMark CTFontUIFontType = 13 // The font for menu-item command-key equivalents. KCTFontUIFontMenuItemCmdKey CTFontUIFontType = 14 // The font for window titles. KCTFontUIFontWindowTitle CTFontUIFontType = 15 // The font for a push button, a rounded rectangular button with a text label on it. KCTFontUIFontPushButton CTFontUIFontType = 16 // The font for utility window titles. KCTFontUIFontUtilityWindowTitle CTFontUIFontType = 17 // The font for alert headers. KCTFontUIFontAlertHeader CTFontUIFontType = 18 // The standard system font for details. KCTFontUIFontSystemDetail CTFontUIFontType = 19 // The system font for emphasis in details. KCTFontUIFontEmphasizedSystemDetail CTFontUIFontType = 20 // The font used for labels of toolbar items. KCTFontUIFontToolbar CTFontUIFontType = 21 // The small font for labels of toolbar items. KCTFontUIFontSmallToolbar CTFontUIFontType = 22 // The font for standard interface items, such as button labels and menu items. KCTFontUIFontMessage CTFontUIFontType = 23 // The font in tool palettes. KCTFontUIFontPalette CTFontUIFontType = 24 // The font for tool tips. KCTFontUIFontToolTip CTFontUIFontType = 25 // The font for contents of user-interface controls. KCTFontUIFontControlContent CTFontUIFontType = 26 // The user-interface font type isn’t specified. KCTFontNoFontType CTFontUIFontType = 4294967295 // The font used by default for documents and other text under the user’s control. KCTFontUserFontType CTFontUIFontType = 0 // The font used by default for documents and other text under the user’s control when that font is fixed-pitch. KCTFontUserFixedPitchFontType CTFontUIFontType = 1 // The system font used for standard user-interface items, such as button labels and menu items. KCTFontSystemFontType CTFontUIFontType = 2 // The system font used for emphasis in alerts. KCTFontEmphasizedSystemFontType CTFontUIFontType = 3 // The standard small system font used for informative text in alerts, column headings in lists, help tags, and small controls. KCTFontSmallSystemFontType CTFontUIFontType = 4 // The small system font used for emphasis. KCTFontSmallEmphasizedSystemFontType CTFontUIFontType = 5 // The standard miniature system font used for mini controls and utility window labels and text. KCTFontMiniSystemFontType CTFontUIFontType = 6 // The miniature system font used for emphasis. KCTFontMiniEmphasizedSystemFontType CTFontUIFontType = 7 // The view font used as the default font of text in lists and tables. KCTFontViewsFontType CTFontUIFontType = 8 // The default font for text documents. KCTFontApplicationFontType CTFontUIFontType = 9 // The font used for labels and tick marks on full-size sliders. KCTFontLabelFontType CTFontUIFontType = 10 // The font used for menu titles. KCTFontMenuTitleFontType CTFontUIFontType = 11 // The font used for menu items. KCTFontMenuItemFontType CTFontUIFontType = 12 // The font used to draw menu-item marks. KCTFontMenuItemMarkFontType CTFontUIFontType = 13 // The font used for menu-item command-key equivalents. KCTFontMenuItemCmdKeyFontType CTFontUIFontType = 14 // The font used for window titles. KCTFontWindowTitleFontType CTFontUIFontType = 15 // The font used for a push button, a rounded rectangular button with a text label on it. KCTFontPushButtonFontType CTFontUIFontType = 16 // The font used for utility window titles. KCTFontUtilityWindowTitleFontType CTFontUIFontType = 17 // The font used for alert headers. KCTFontAlertHeaderFontType CTFontUIFontType = 18 // The standard system font used for details. KCTFontSystemDetailFontType CTFontUIFontType = 19 // The system font used for emphasis in details. KCTFontEmphasizedSystemDetailFontType CTFontUIFontType = 20 // The font used for labels of toolbar items. KCTFontToolbarFontType CTFontUIFontType = 21 // The small font used for labels of toolbar items. KCTFontSmallToolbarFontType CTFontUIFontType = 22 // The font used for standard interface items, such as button labels and menu items. KCTFontMessageFontType CTFontUIFontType = 23 // The font used in tool palettes. KCTFontPaletteFontType CTFontUIFontType = 24 // The font used for tool tips. KCTFontToolTipFontType CTFontUIFontType = 25 // The font used for contents of user-interface controls. KCTFontControlContentFontType CTFontUIFontType = 26 )
func CTFontGetUIFontType ¶
func CTFontGetUIFontType(font CTFontRef) CTFontUIFontType
CTFontGetUIFontType calls the CoreText framework function CTFontGetUIFontType.
func (CTFontUIFontType) String ¶
func (e CTFontUIFontType) String() string
String returns the CTFontUIFontType constant's name, or its numeric form when the value is not a known constant.
type CTFramePathFillRule ¶
type CTFramePathFillRule uint32
These constants specify the fill rule used by a frame
const ( // Paints the area using the even-odd fill rule. KCTFramePathFillEvenOdd CTFramePathFillRule = 0 // Paints the area using the nonzero winding number rule. KCTFramePathFillWindingNumber CTFramePathFillRule = 1 )
func (CTFramePathFillRule) String ¶
func (e CTFramePathFillRule) String() string
String returns the CTFramePathFillRule constant's name, or its numeric form when the value is not a known constant.
type CTFrameProgression ¶
type CTFrameProgression uint32
Constants that specify frame progression types.
const ( // Lines stack top to bottom for horizontal text. KCTFrameProgressionTopToBottom CTFrameProgression = 0 // Lines stack right to left for vertical text. KCTFrameProgressionRightToLeft CTFrameProgression = 1 // Lines stack left to right for vertical text. KCTFrameProgressionLeftToRight CTFrameProgression = 2 )
func (CTFrameProgression) String ¶
func (e CTFrameProgression) String() string
String returns the CTFrameProgression constant's name, or its numeric form when the value is not a known constant.
type CTFrameRef ¶ added in v0.18.0
CTFrameRef is a handle for the opaque CTFrameRef type.
func CTFramesetterCreateFrame ¶
func CTFramesetterCreateFrame(framesetter CTFramesetterRef, stringRange corefoundation.CFRange, path coregraphics.CGPathRef, frameAttributes corefoundation.CFDictionaryRef) CTFrameRef
CTFramesetterCreateFrame calls the CoreText framework function CTFramesetterCreateFrame.
func (CTFrameRef) IsNil ¶ added in v0.18.0
func (h CTFrameRef) IsNil() bool
IsNil reports whether CTFrameRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CTFramesetter ¶
type CTFramesetter struct{}
type CTFramesetterRef ¶ added in v0.18.0
CTFramesetterRef is a handle for the opaque CTFramesetterRef type.
func CTFramesetterCreateWithAttributedString ¶
func CTFramesetterCreateWithAttributedString(attrString corefoundation.CFAttributedStringRef) CTFramesetterRef
CTFramesetterCreateWithAttributedString calls the CoreText framework function CTFramesetterCreateWithAttributedString.
func CTFramesetterCreateWithTypesetter ¶
func CTFramesetterCreateWithTypesetter(typesetter CTTypesetterRef) CTFramesetterRef
CTFramesetterCreateWithTypesetter calls the CoreText framework function CTFramesetterCreateWithTypesetter.
func (CTFramesetterRef) IsNil ¶ added in v0.18.0
func (h CTFramesetterRef) IsNil() bool
IsNil reports whether CTFramesetterRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CTGlyphInfo ¶
type CTGlyphInfo struct{}
type CTGlyphInfoRef ¶ added in v0.18.0
CTGlyphInfoRef is a handle for the opaque CTGlyphInfoRef type.
func CTGlyphInfoCreateWithCharacterIdentifier ¶
func CTGlyphInfoCreateWithCharacterIdentifier(cid uint16, collection CTCharacterCollection, baseString corefoundation.CFStringRef) CTGlyphInfoRef
CTGlyphInfoCreateWithCharacterIdentifier calls the CoreText framework function CTGlyphInfoCreateWithCharacterIdentifier.
func CTGlyphInfoCreateWithGlyph ¶
func CTGlyphInfoCreateWithGlyph(glyph uint16, font CTFontRef, baseString corefoundation.CFStringRef) CTGlyphInfoRef
CTGlyphInfoCreateWithGlyph calls the CoreText framework function CTGlyphInfoCreateWithGlyph.
func CTGlyphInfoCreateWithGlyphName ¶
func CTGlyphInfoCreateWithGlyphName(glyphName corefoundation.CFStringRef, font CTFontRef, baseString corefoundation.CFStringRef) CTGlyphInfoRef
CTGlyphInfoCreateWithGlyphName calls the CoreText framework function CTGlyphInfoCreateWithGlyphName.
func (CTGlyphInfoRef) IsNil ¶ added in v0.18.0
func (h CTGlyphInfoRef) IsNil() bool
IsNil reports whether CTGlyphInfoRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CTLineBoundsOptions ¶
type CTLineBoundsOptions uint64
Options for getting the bounds of a line of text. Bitmask — values may be combined with |.
const ( // An option to exclude typographic leading. KCTLineBoundsExcludeTypographicLeading CTLineBoundsOptions = 1 // An option to ignore cross-stream shifts due to positioning, such as kerning or baseline alignment. KCTLineBoundsExcludeTypographicShifts CTLineBoundsOptions = 2 // An option to enable hanging punctuation. KCTLineBoundsUseHangingPunctuation CTLineBoundsOptions = 4 // An option to use glyph path bounds rather than the default typographic bounds. KCTLineBoundsUseGlyphPathBounds CTLineBoundsOptions = 8 // An option to use optical bounds. KCTLineBoundsUseOpticalBounds CTLineBoundsOptions = 16 // An option to include additional space based on common glyph sequences for various languages. KCTLineBoundsIncludeLanguageExtents CTLineBoundsOptions = 32 )
func (CTLineBoundsOptions) String ¶
func (e CTLineBoundsOptions) String() string
String returns the CTLineBoundsOptions constant's name, or its numeric form when the value is not a known constant.
type CTLineBreakMode ¶
type CTLineBreakMode uint8
These constants specify what happens when a line is too long for its frame.
const ( KCTLineBreakByWordWrapping CTLineBreakMode = 0 KCTLineBreakByCharWrapping CTLineBreakMode = 1 KCTLineBreakByClipping CTLineBreakMode = 2 KCTLineBreakByTruncatingHead CTLineBreakMode = 3 KCTLineBreakByTruncatingTail CTLineBreakMode = 4 KCTLineBreakByTruncatingMiddle CTLineBreakMode = 5 )
func (CTLineBreakMode) String ¶
func (e CTLineBreakMode) String() string
String returns the CTLineBreakMode constant's name, or its numeric form when the value is not a known constant.
type CTLineRef ¶ added in v0.18.0
CTLineRef is a handle for the opaque CTLineRef type.
func CTLineCreateJustifiedLine ¶
func CTLineCreateJustifiedLine(line CTLineRef, justificationFactor float64, justificationWidth float64) CTLineRef
CTLineCreateJustifiedLine calls the CoreText framework function CTLineCreateJustifiedLine.
func CTLineCreateTruncatedLine ¶
func CTLineCreateTruncatedLine(line CTLineRef, width float64, truncationType CTLineTruncationType, truncationToken CTLineRef) CTLineRef
CTLineCreateTruncatedLine calls the CoreText framework function CTLineCreateTruncatedLine.
func CTLineCreateWithAttributedString ¶
func CTLineCreateWithAttributedString(attrString corefoundation.CFAttributedStringRef) CTLineRef
CTLineCreateWithAttributedString calls the CoreText framework function CTLineCreateWithAttributedString.
func CTTypesetterCreateLine ¶
func CTTypesetterCreateLine(typesetter CTTypesetterRef, stringRange corefoundation.CFRange) CTLineRef
CTTypesetterCreateLine calls the CoreText framework function CTTypesetterCreateLine.
func CTTypesetterCreateLineWithOffset ¶
func CTTypesetterCreateLineWithOffset(typesetter CTTypesetterRef, stringRange corefoundation.CFRange, offset float64) CTLineRef
CTTypesetterCreateLineWithOffset calls the CoreText framework function CTTypesetterCreateLineWithOffset.
type CTLineTruncationType ¶
type CTLineTruncationType uint32
Truncation types required by the CTLineCreateTruncatedLine function to tell the truncation engine which type of truncation is being requested.
const ( KCTLineTruncationStart CTLineTruncationType = 0 KCTLineTruncationEnd CTLineTruncationType = 1 KCTLineTruncationMiddle CTLineTruncationType = 2 )
func (CTLineTruncationType) String ¶
func (e CTLineTruncationType) String() string
String returns the CTLineTruncationType constant's name, or its numeric form when the value is not a known constant.
type CTMutableFontCollectionRef ¶ added in v0.18.0
CTMutableFontCollectionRef is a handle for the opaque CTMutableFontCollectionRef type.
func CTFontCollectionCreateMutableCopy ¶
func CTFontCollectionCreateMutableCopy(original CTFontCollectionRef) CTMutableFontCollectionRef
CTFontCollectionCreateMutableCopy calls the CoreText framework function CTFontCollectionCreateMutableCopy.
func (CTMutableFontCollectionRef) IsNil ¶ added in v0.18.0
func (h CTMutableFontCollectionRef) IsNil() bool
IsNil reports whether CTMutableFontCollectionRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CTParagraphStyle ¶
type CTParagraphStyle struct{}
type CTParagraphStyleRef ¶ added in v0.18.0
CTParagraphStyleRef is a handle for the opaque CTParagraphStyleRef type.
func CTParagraphStyleCreate ¶
func CTParagraphStyleCreate(settings unsafe.Pointer, settingCount int) CTParagraphStyleRef
CTParagraphStyleCreate calls the CoreText framework function CTParagraphStyleCreate.
func CTParagraphStyleCreateCopy ¶
func CTParagraphStyleCreateCopy(paragraphStyle CTParagraphStyleRef) CTParagraphStyleRef
CTParagraphStyleCreateCopy calls the CoreText framework function CTParagraphStyleCreateCopy.
func (CTParagraphStyleRef) IsNil ¶ added in v0.18.0
func (h CTParagraphStyleRef) IsNil() bool
IsNil reports whether CTParagraphStyleRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CTParagraphStyleSetting ¶
type CTParagraphStyleSetting struct {
Spec CTParagraphStyleSpecifier
ValueSize uint
Value unsafe.Pointer
}
This structure is used to alter the paragraph style.
type CTParagraphStyleSpecifier ¶
type CTParagraphStyleSpecifier uint32
Constants used to query and modify a paragraph style object.
const ( // The text alignment. KCTParagraphStyleSpecifierAlignment CTParagraphStyleSpecifier = 0 // The distance, in points, from the leading margin of a frame to the beginning of the paragraph’s first line. KCTParagraphStyleSpecifierFirstLineHeadIndent CTParagraphStyleSpecifier = 1 // The distance, in points, from the leading margin of a text container to the beginning of lines other than the first. KCTParagraphStyleSpecifierHeadIndent CTParagraphStyleSpecifier = 2 // The distance, in points, from the margin of a frame to the end of lines. KCTParagraphStyleSpecifierTailIndent CTParagraphStyleSpecifier = 3 // The text tab objects, sorted by location, that define the tab stops for the paragraph style. KCTParagraphStyleSpecifierTabStops CTParagraphStyleSpecifier = 4 // The document-wide default tab interval. KCTParagraphStyleSpecifierDefaultTabInterval CTParagraphStyleSpecifier = 5 // The mode that should be used to break lines when laying out the paragraph’s text. KCTParagraphStyleSpecifierLineBreakMode CTParagraphStyleSpecifier = 6 // The line height multiple. KCTParagraphStyleSpecifierLineHeightMultiple CTParagraphStyleSpecifier = 7 // 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 // 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 // The space in points added between lines within the paragraph (commonly known as leading). KCTParagraphStyleSpecifierLineSpacing CTParagraphStyleSpecifier = 10 // The space added at the end of the paragraph to separate it from the following paragraph. KCTParagraphStyleSpecifierParagraphSpacing CTParagraphStyleSpecifier = 11 // The distance between the paragraph’s top and the beginning of its text content. KCTParagraphStyleSpecifierParagraphSpacingBefore CTParagraphStyleSpecifier = 12 // The base writing direction of the lines. KCTParagraphStyleSpecifierBaseWritingDirection CTParagraphStyleSpecifier = 13 // The maximum space in points between lines within the paragraph (commonly known as leading). KCTParagraphStyleSpecifierMaximumLineSpacing CTParagraphStyleSpecifier = 14 // The minimum space in points between lines within the paragraph (commonly known as leading). KCTParagraphStyleSpecifierMinimumLineSpacing CTParagraphStyleSpecifier = 15 // The space in points added between lines within the paragraph (commonly known as leading). KCTParagraphStyleSpecifierLineSpacingAdjustment CTParagraphStyleSpecifier = 16 // Options that control the alignment of the line edges with the leading and trailing margins. KCTParagraphStyleSpecifierLineBoundsOptions CTParagraphStyleSpecifier = 17 // The number of style specifiers. KCTParagraphStyleSpecifierCount CTParagraphStyleSpecifier = 18 )
func (CTParagraphStyleSpecifier) String ¶
func (e CTParagraphStyleSpecifier) String() string
String returns the CTParagraphStyleSpecifier constant's name, or its numeric form when the value is not a known constant.
type CTRubyAlignment ¶
type CTRubyAlignment uint8
Constants that specify how to align the ruby text and the base text relative to each other when they have different lengths.
const ( // The alignment is invalid. KCTRubyAlignmentInvalid CTRubyAlignment = 255 // Core Text automatically determines the alignment. KCTRubyAlignmentAuto CTRubyAlignment = 0 // Aligns the ruby text with the starting edge of the base text. KCTRubyAlignmentStart CTRubyAlignment = 1 // Centers the ruby text within the width of the base text. KCTRubyAlignmentCenter CTRubyAlignment = 2 // Aligns the ruby text with the ending edge of the base text. KCTRubyAlignmentEnd CTRubyAlignment = 3 // 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 // 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 // Aligns the ruby text to an adjacent line edge. KCTRubyAlignmentLineEdge CTRubyAlignment = 6 )
func CTRubyAnnotationGetAlignment ¶
func CTRubyAnnotationGetAlignment(rubyAnnotation CTRubyAnnotationRef) CTRubyAlignment
CTRubyAnnotationGetAlignment calls the CoreText framework function CTRubyAnnotationGetAlignment.
func (CTRubyAlignment) String ¶
func (e CTRubyAlignment) String() string
String returns the CTRubyAlignment constant's name, or its numeric form when the value is not a known constant.
type CTRubyAnnotation ¶
type CTRubyAnnotation struct{}
type CTRubyAnnotationRef ¶ added in v0.18.0
CTRubyAnnotationRef is a handle for the opaque CTRubyAnnotationRef type.
func CTRubyAnnotationCreate ¶
func CTRubyAnnotationCreate(alignment CTRubyAlignment, overhang CTRubyOverhang, sizeFactor float64, text unsafe.Pointer) CTRubyAnnotationRef
CTRubyAnnotationCreate calls the CoreText framework function CTRubyAnnotationCreate.
func CTRubyAnnotationCreateCopy ¶
func CTRubyAnnotationCreateCopy(rubyAnnotation CTRubyAnnotationRef) CTRubyAnnotationRef
CTRubyAnnotationCreateCopy calls the CoreText framework function CTRubyAnnotationCreateCopy.
func CTRubyAnnotationCreateWithAttributes ¶
func CTRubyAnnotationCreateWithAttributes(alignment CTRubyAlignment, overhang CTRubyOverhang, position CTRubyPosition, str corefoundation.CFStringRef, attributes corefoundation.CFDictionaryRef) CTRubyAnnotationRef
CTRubyAnnotationCreateWithAttributes calls the CoreText framework function CTRubyAnnotationCreateWithAttributes.
func (CTRubyAnnotationRef) IsNil ¶ added in v0.18.0
func (h CTRubyAnnotationRef) IsNil() bool
IsNil reports whether CTRubyAnnotationRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CTRubyOverhang ¶
type CTRubyOverhang uint8
Constants that specify whether, and on which side, ruby text can overhang adjacent text if it’s wider than the base text.
const ( // The overhang specification is invalid. KCTRubyOverhangInvalid CTRubyOverhang = 255 // The ruby text can overhang adjacent text on both sides. KCTRubyOverhangAuto CTRubyOverhang = 0 // The ruby text can overhang the text that precedes it. KCTRubyOverhangStart CTRubyOverhang = 1 // The ruby text can overhang the text that follows it. KCTRubyOverhangEnd CTRubyOverhang = 2 // The ruby text can’t overhang the preceding or following text. KCTRubyOverhangNone CTRubyOverhang = 3 )
func CTRubyAnnotationGetOverhang ¶
func CTRubyAnnotationGetOverhang(rubyAnnotation CTRubyAnnotationRef) CTRubyOverhang
CTRubyAnnotationGetOverhang calls the CoreText framework function CTRubyAnnotationGetOverhang.
func (CTRubyOverhang) String ¶
func (e CTRubyOverhang) String() string
String returns the CTRubyOverhang constant's name, or its numeric form when the value is not a known constant.
type CTRubyPosition ¶
type CTRubyPosition uint8
Constants that specify the position of the ruby text relative to to the base text.
const ( // The ruby text is positioned before the base text, appearing above horizontal text and to the right of vertical text. KCTRubyPositionBefore CTRubyPosition = 0 // The ruby text is positioned after the base text, appearing below horizontal text and to the left of vertical text. KCTRubyPositionAfter CTRubyPosition = 1 // The ruby text is positioned to the right of the base text, regardless of whether it’s horizontal or vertical. KCTRubyPositionInterCharacter CTRubyPosition = 2 // The ruby text follows the base text with no special styling. KCTRubyPositionInline CTRubyPosition = 3 // A constant that accounts for all ruby positions during ruby annotation creation. KCTRubyPositionCount CTRubyPosition = 4 )
func (CTRubyPosition) String ¶
func (e CTRubyPosition) String() string
String returns the CTRubyPosition constant's name, or its numeric form when the value is not a known constant.
type CTRunDelegate ¶
type CTRunDelegate struct{}
type CTRunDelegateCallbacks ¶
type CTRunDelegateCallbacks struct {
Version int
Dealloc unsafe.Pointer
GetAscent unsafe.Pointer
GetDescent unsafe.Pointer
GetWidth unsafe.Pointer
}
A structure holding pointers to callbacks implemented by the run delegate.
type CTRunDelegateRef ¶ added in v0.18.0
CTRunDelegateRef is a handle for the opaque CTRunDelegateRef type.
func CTRunDelegateCreate ¶
func CTRunDelegateCreate(callbacks unsafe.Pointer, refCon unsafe.Pointer) CTRunDelegateRef
CTRunDelegateCreate calls the CoreText framework function CTRunDelegateCreate.
func (CTRunDelegateRef) IsNil ¶ added in v0.18.0
func (h CTRunDelegateRef) IsNil() bool
IsNil reports whether CTRunDelegateRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CTRunStatus ¶
type CTRunStatus uint32
A bitfield that represents the disposition of the run. Bitmask — values may be combined with |.
const ( // The run has no special attributes. KCTRunStatusNoStatus CTRunStatus = 0 // The run proceeds from right to left. KCTRunStatusRightToLeft CTRunStatus = 1 // The run isn’t in strictly increasing or decreasing order. KCTRunStatusNonMonotonic CTRunStatus = 2 // The run requires a specific text matrix to be set in the current Core Graphics context for proper drawing. KCTRunStatusHasNonIdentityMatrix CTRunStatus = 4 )
func CTRunGetStatus ¶
func CTRunGetStatus(run CTRunRef) CTRunStatus
CTRunGetStatus calls the CoreText framework function CTRunGetStatus.
func (CTRunStatus) String ¶
func (e CTRunStatus) String() string
String returns the CTRunStatus constant's name, or its numeric form when the value is not a known constant.
type CTTextAlignment ¶
type CTTextAlignment uint8
Constants that specify text alignment.
const ( // Text is visually left-aligned. KCTTextAlignmentLeft CTTextAlignment = 0 // Text is visually right-aligned. KCTTextAlignmentRight CTTextAlignment = 1 // Text is visually center-aligned. KCTTextAlignmentCenter CTTextAlignment = 2 // Text is fully justified. KCTTextAlignmentJustified CTTextAlignment = 3 // Text uses the natural alignment of the text’s script. KCTTextAlignmentNatural CTTextAlignment = 4 // Text is visually left-aligned. KCTLeftTextAlignment CTTextAlignment = 0 // Text is visually right-aligned. KCTRightTextAlignment CTTextAlignment = 1 // Text is visually center-aligned. KCTCenterTextAlignment CTTextAlignment = 2 // Text is fully justified. KCTJustifiedTextAlignment CTTextAlignment = 3 // Text uses the natural alignment of the text’s script. KCTNaturalTextAlignment CTTextAlignment = 4 )
func CTTextTabGetAlignment ¶
func CTTextTabGetAlignment(tab CTTextTabRef) CTTextAlignment
CTTextTabGetAlignment calls the CoreText framework function CTTextTabGetAlignment.
func (CTTextAlignment) String ¶
func (e CTTextAlignment) String() string
String returns the CTTextAlignment constant's name, or its numeric form when the value is not a known constant.
type CTTextTabRef ¶ added in v0.18.0
CTTextTabRef is a handle for the opaque CTTextTabRef type.
func CTTextTabCreate ¶
func CTTextTabCreate(alignment CTTextAlignment, location float64, options corefoundation.CFDictionaryRef) CTTextTabRef
CTTextTabCreate calls the CoreText framework function CTTextTabCreate.
func (CTTextTabRef) IsNil ¶ added in v0.18.0
func (h CTTextTabRef) IsNil() bool
IsNil reports whether CTTextTabRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CTTypesetter ¶
type CTTypesetter struct{}
type CTTypesetterRef ¶ added in v0.18.0
CTTypesetterRef is a handle for the opaque CTTypesetterRef type.
func CTFramesetterGetTypesetter ¶
func CTFramesetterGetTypesetter(framesetter CTFramesetterRef) CTTypesetterRef
CTFramesetterGetTypesetter calls the CoreText framework function CTFramesetterGetTypesetter.
func CTTypesetterCreateWithAttributedString ¶
func CTTypesetterCreateWithAttributedString(str corefoundation.CFAttributedStringRef) CTTypesetterRef
CTTypesetterCreateWithAttributedString calls the CoreText framework function CTTypesetterCreateWithAttributedString.
func CTTypesetterCreateWithAttributedStringAndOptions ¶
func CTTypesetterCreateWithAttributedStringAndOptions(str corefoundation.CFAttributedStringRef, options corefoundation.CFDictionaryRef) CTTypesetterRef
CTTypesetterCreateWithAttributedStringAndOptions calls the CoreText framework function CTTypesetterCreateWithAttributedStringAndOptions.
func (CTTypesetterRef) IsNil ¶ added in v0.18.0
func (h CTTypesetterRef) IsNil() bool
IsNil reports whether CTTypesetterRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CTUnderlineStyle ¶
type CTUnderlineStyle int32
Underline style specifiers. Bitmask — values may be combined with |.
const ( // A specifier that indicates not to draw an underline. KCTUnderlineStyleNone CTUnderlineStyle = 0 // A specifier that indicates to draw an underline consisting of a single line. KCTUnderlineStyleSingle CTUnderlineStyle = 1 // A specifier that indicates to draw an underline consisting of a thick line. KCTUnderlineStyleThick CTUnderlineStyle = 2 // A specifier that indicates to draw an underline consisting of a double line. KCTUnderlineStyleDouble CTUnderlineStyle = 9 )
func (CTUnderlineStyle) String ¶
func (e CTUnderlineStyle) String() string
String returns the CTUnderlineStyle constant's name, or its numeric form when the value is not a known constant.
type CTUnderlineStyleModifiers ¶
type CTUnderlineStyleModifiers int32
Underline style modifiers. Bitmask — values may be combined with |.
const ( // A modifier that indicates to draw a solid underline. KCTUnderlinePatternSolid CTUnderlineStyleModifiers = 0 // A modifier that indicates to draw an underline using a pattern of dots. KCTUnderlinePatternDot CTUnderlineStyleModifiers = 256 // A modifier that indicates to draw an underline using a pattern of dashes. KCTUnderlinePatternDash CTUnderlineStyleModifiers = 512 // A modifier that indicates to draw an underline using a pattern of alternating dashes and dots. KCTUnderlinePatternDashDot CTUnderlineStyleModifiers = 768 // A modifier that indicates to draw an underline using a pattern of a dash followed by two dots. KCTUnderlinePatternDashDotDot CTUnderlineStyleModifiers = 1024 )
func (CTUnderlineStyleModifiers) String ¶
func (e CTUnderlineStyleModifiers) String() string
String returns the CTUnderlineStyleModifiers constant's name, or its numeric form when the value is not a known constant.
type CTWritingDirection ¶
type CTWritingDirection int8
These constants specify the writing direction.
const ( KCTWritingDirectionNatural CTWritingDirection = -1 KCTWritingDirectionLeftToRight CTWritingDirection = 0 KCTWritingDirectionRightToLeft CTWritingDirection = 1 )
func (CTWritingDirection) String ¶
func (e CTWritingDirection) String() string
String returns the CTWritingDirection constant's name, or its numeric form when the value is not a known constant.
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type FontVariation ¶
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type JustDirectionTable ¶
type JustDirectionTable struct {
JustClass uint16
WidthDeltaClusters uint16
Postcomp uint16
Lookup SFNTLookupTable
}
type JustPCAction ¶
type JustPCAction struct {
ActionCount uint32
Actions [1]JustPCActionSubrecord
}
type JustPCActionSubrecord ¶
type JustPCDuctilityAction ¶
type JustPostcompTable ¶
type JustPostcompTable struct {
LookupTable SFNTLookupTable
}
type JustWidthDeltaEntry ¶
type JustWidthDeltaGroup ¶
type JustWidthDeltaGroup struct {
Count uint32
Entries [1]JustWidthDeltaEntry
}
type KernFormatSpecificHeader ¶ added in v0.18.0
type KernFormatSpecificHeader struct {
OrderedList KernOrderedListHeader
StateTable KernStateHeader
SimpleArray KernSimpleArrayHeader
IndexArray KernIndexArrayHeader
}
type KernIndexArrayHeader ¶
type KernKerningPair ¶
type KernOffsetTable ¶
type KernOrderedListEntry ¶
type KernOrderedListEntry struct {
Pair KernKerningPair
Value int16
}
type KernOrderedListHeader ¶
type KernSimpleArrayHeader ¶
type KernStateEntry ¶
type KernStateHeader ¶
type KernSubtableHeader ¶
type KernSubtableHeader struct {
Length int32
StInfo uint16
TupleIndex int16
FsHeader KernFormatSpecificHeader
}
type KernTableHeader ¶
type KernVersion0Header ¶
type KernVersion0SubtableHeader ¶
type KernVersion0SubtableHeader struct {
Version uint16
Length uint16
StInfo uint16
FsHeader KernFormatSpecificHeader
}
type KerxAnchorPointAction ¶
type KerxControlPointAction ¶
type KerxControlPointEntry ¶
type KerxControlPointHeader ¶
type KerxCoordinateAction ¶
type KerxFormatSpecificHeader ¶ added in v0.18.0
type KerxFormatSpecificHeader struct {
OrderedList KerxOrderedListHeader
StateTable KerxStateHeader
SimpleArray KerxSimpleArrayHeader
IndexArray KerxIndexArrayHeader
ControlPoint KerxControlPointHeader
}
type KerxIndexArrayHeader ¶
type KerxKerningPair ¶
type KerxOrderedListEntry ¶
type KerxOrderedListEntry struct {
Pair KerxKerningPair
Value int16
}
type KerxOrderedListHeader ¶
type KerxSimpleArrayHeader ¶
type KerxStateEntry ¶
type KerxStateHeader ¶
type KerxSubtableHeader ¶
type KerxSubtableHeader struct {
Length uint32
StInfo uint32
TupleCount uint32
FsHeader KerxFormatSpecificHeader
}
type KerxTableHeader ¶
type LcarCaretClassEntry ¶
type LcarCaretTable ¶
type LcarCaretTable struct {
Version int32
Format uint16
Lookup SFNTLookupTable
}
type LtagStringRange ¶
type LtagTable ¶
type LtagTable struct {
Version uint32
Flags uint32
NumTags uint32
TagRange [1]LtagStringRange
}
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MortChain ¶
type MortChain struct {
DefaultFlags uint32
Length uint32
NFeatures uint16
NSubtables uint16
FeatureEntries [1]MortFeatureEntry
}
type MortContextualSubtable ¶
type MortFeatureEntry ¶
type MortInsertionSubtable ¶
type MortInsertionSubtable struct {
Header STHeader
}
type MortLigatureSubtable ¶
type MortRearrangementSubtable ¶
type MortRearrangementSubtable struct {
Header STHeader
}
type MortSpecificSubtable ¶ added in v0.18.0
type MortSpecificSubtable struct {
Rearrangement MortRearrangementSubtable
Contextual MortContextualSubtable
Ligature MortLigatureSubtable
Swash MortSwashSubtable
Insertion MortInsertionSubtable
}
type MortSubtable ¶
type MortSubtable struct {
Length uint16
Coverage uint16
Flags uint32
U MortSpecificSubtable
}
type MortSwashSubtable ¶
type MortSwashSubtable struct {
Lookup SFNTLookupTable
}
type MorxChain ¶
type MorxChain struct {
DefaultFlags uint32
Length uint32
NFeatures uint32
NSubtables uint32
FeatureEntries [1]MortFeatureEntry
}
type MorxContextualSubtable ¶
type MorxInsertionSubtable ¶
type MorxLigatureSubtable ¶
type MorxRearrangementSubtable ¶
type MorxRearrangementSubtable struct {
Header STXHeader
}
type MorxSpecificSubtable ¶ added in v0.18.0
type MorxSpecificSubtable struct {
Rearrangement MorxRearrangementSubtable
Contextual MorxContextualSubtable
Ligature MorxLigatureSubtable
Swash MortSwashSubtable
Insertion MorxInsertionSubtable
}
type MorxSubtable ¶
type MorxSubtable struct {
Length uint32
Coverage uint32
Flags uint32
U MorxSpecificSubtable
}
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type NXMouseButton ¶
type NXMouseButton int32
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.
type OpbdSideValues ¶
type OpbdTable ¶
type OpbdTable struct {
Version int32
Format uint16
LookupTable SFNTLookupTable
}
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PropLookupSegment ¶
type PropLookupSingle ¶
type PropTable ¶
type PropTable struct {
Version int32
Format uint16
DefaultProps uint16
Lookup SFNTLookupTable
}
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type ROTAGlyphEntry ¶
type ROTAHeader ¶
type SFNTLookupArrayHeader ¶
type SFNTLookupArrayHeader struct {
LookupValues [1]uint16
}
type SFNTLookupFormatSpecificHeader ¶ added in v0.18.0
type SFNTLookupFormatSpecificHeader struct {
// contains filtered or unexported fields
}
The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.
type SFNTLookupSegment ¶
type SFNTLookupSegmentHeader ¶
type SFNTLookupSegmentHeader struct {
BinSearch SFNTLookupBinarySearchHeader
Segments [1]SFNTLookupSegment
}
type SFNTLookupSingle ¶
type SFNTLookupSingleHeader ¶
type SFNTLookupSingleHeader struct {
BinSearch SFNTLookupBinarySearchHeader
Entries [1]SFNTLookupSingle
}
type SFNTLookupTable ¶
type SFNTLookupTable struct {
// contains filtered or unexported fields
}
The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.
func (*SFNTLookupTable) AsFormat ¶ added in v0.18.0
func (u *SFNTLookupTable) AsFormat() uint16
AsFormat returns the format field, read from the backing bytes at offset 0.
type SFNTLookupVectorHeader ¶
type STClassTable ¶
type STEntryOne ¶
type STEntryTwo ¶
type STEntryZero ¶
type STXEntryOne ¶
type STXEntryTwo ¶
type STXEntryZero ¶
type SfntCMapEncoding ¶
type SfntCMapHeader ¶
type SfntCMapHeader struct {
Version uint16
NumTables uint16
Encoding [1]SfntCMapEncoding
}
type SfntCMapSubHeader ¶
type SfntDescriptorHeader ¶
type SfntDescriptorHeader struct {
Version int32
DescriptorCount int32
Descriptor [1]SfntFontDescriptor
}
type SfntDirectory ¶
type SfntDirectoryEntry ¶
type SfntFeatureHeader ¶
type SfntFeatureHeader struct {
Version int32
FeatureNameCount uint16
FeatureSetCount uint16
Reserved int32
Names [1]SfntFeatureName
Settings [1]SfntFontFeatureSetting
Runs [1]SfntFontRunFeature
}
type SfntFeatureName ¶
type SfntFontDescriptor ¶
type SfntFontFeatureSetting ¶
type SfntFontRunFeature ¶
type SfntInstance ¶
type SfntNameHeader ¶
type SfntNameHeader struct {
Format uint16
Count uint16
StringOffset uint16
Rec [1]SfntNameRecord
}
type SfntNameRecord ¶
type SfntVariationAxis ¶
type SfntVariationHeader ¶
type SfntVariationHeader struct {
Version int32
OffsetToData uint16
CountSizePairs uint16
AxisCount uint16
AxisSize uint16
InstanceCount uint16
InstanceSize uint16
Axis [1]SfntVariationAxis
Instance [1]SfntInstance
}
type TrakTableData ¶
type TrakTableData struct {
NTracks uint16
NSizes uint16
SizeTableOffset uint32
TrakTable [1]TrakTableEntry
}
type TrakTableEntry ¶
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.