Documentation
¶
Overview ¶
Package coretext provides purego-based Go bindings for the macOS CoreText framework.
Apple documentation: https://developer.apple.com/documentation/coretext
Index ¶
- Constants
- func CTFontCollectionCopyExclusionDescriptors(collection unsafe.Pointer) unsafe.Pointer
- func CTFontCollectionCopyFontAttribute(collection unsafe.Pointer, attributeName unsafe.Pointer, ...) unsafe.Pointer
- func CTFontCollectionCopyFontAttributes(collection unsafe.Pointer, attributeNames unsafe.Pointer, ...) unsafe.Pointer
- func CTFontCollectionCopyQueryDescriptors(collection unsafe.Pointer) unsafe.Pointer
- func CTFontCollectionCreateCopyWithFontDescriptors(original unsafe.Pointer, queryDescriptors unsafe.Pointer, ...) unsafe.Pointer
- func CTFontCollectionCreateFromAvailableFonts(options unsafe.Pointer) unsafe.Pointer
- func CTFontCollectionCreateMatchingFontDescriptors(collection unsafe.Pointer) unsafe.Pointer
- func CTFontCollectionCreateMatchingFontDescriptorsForFamily(collection unsafe.Pointer, familyName unsafe.Pointer, options unsafe.Pointer) unsafe.Pointer
- func CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(collection unsafe.Pointer, sortCallback unsafe.Pointer, refCon unsafe.Pointer) unsafe.Pointer
- func CTFontCollectionCreateMatchingFontDescriptorsWithOptions(collection unsafe.Pointer, options unsafe.Pointer) unsafe.Pointer
- func CTFontCollectionCreateMutableCopy(original unsafe.Pointer) unsafe.Pointer
- func CTFontCollectionCreateWithFontDescriptors(queryDescriptors unsafe.Pointer, options unsafe.Pointer) unsafe.Pointer
- func CTFontCollectionGetTypeID() uint
- func CTFontCollectionSetExclusionDescriptors(collection unsafe.Pointer, descriptors unsafe.Pointer)
- func CTFontCollectionSetQueryDescriptors(collection unsafe.Pointer, descriptors unsafe.Pointer)
- func CTFontCopyAttribute(font unsafe.Pointer, attribute unsafe.Pointer) unsafe.Pointer
- func CTFontCopyAvailableTables(font unsafe.Pointer, options CTFontTableOptions) unsafe.Pointer
- func CTFontCopyCharacterSet(font unsafe.Pointer) unsafe.Pointer
- func CTFontCopyDefaultCascadeListForLanguages(font unsafe.Pointer, languagePrefList unsafe.Pointer) unsafe.Pointer
- func CTFontCopyDisplayName(font unsafe.Pointer) unsafe.Pointer
- func CTFontCopyFamilyName(font unsafe.Pointer) unsafe.Pointer
- func CTFontCopyFeatureSettings(font unsafe.Pointer) unsafe.Pointer
- func CTFontCopyFeatures(font unsafe.Pointer) unsafe.Pointer
- func CTFontCopyFontDescriptor(font unsafe.Pointer) unsafe.Pointer
- func CTFontCopyFullName(font unsafe.Pointer) unsafe.Pointer
- func CTFontCopyGraphicsFont(font unsafe.Pointer, attributes unsafe.Pointer) unsafe.Pointer
- func CTFontCopyLocalizedName(font unsafe.Pointer, nameKey unsafe.Pointer, actualLanguage unsafe.Pointer) unsafe.Pointer
- func CTFontCopyName(font unsafe.Pointer, nameKey unsafe.Pointer) unsafe.Pointer
- func CTFontCopyNameForGlyph(font unsafe.Pointer, glyph uint16) unsafe.Pointer
- func CTFontCopyPostScriptName(font unsafe.Pointer) unsafe.Pointer
- func CTFontCopySupportedLanguages(font unsafe.Pointer) unsafe.Pointer
- func CTFontCopyTable(font unsafe.Pointer, table uint, options CTFontTableOptions) unsafe.Pointer
- func CTFontCopyTraits(font unsafe.Pointer) unsafe.Pointer
- func CTFontCopyVariation(font unsafe.Pointer) unsafe.Pointer
- func CTFontCopyVariationAxes(font unsafe.Pointer) unsafe.Pointer
- func CTFontCreateCopyWithAttributes(font unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform, ...) unsafe.Pointer
- func CTFontCreateCopyWithFamily(font unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform, ...) unsafe.Pointer
- func CTFontCreateCopyWithSymbolicTraits(font unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform, ...) unsafe.Pointer
- func CTFontCreateForString(currentFont unsafe.Pointer, string_ unsafe.Pointer, ...) unsafe.Pointer
- func CTFontCreateForStringWithLanguage(currentFont unsafe.Pointer, string_ unsafe.Pointer, ...) unsafe.Pointer
- func CTFontCreatePathForGlyph(font unsafe.Pointer, glyph uint16, matrix *corefoundation.CGAffineTransform) unsafe.Pointer
- func CTFontCreateUIFontForLanguage(uiType CTFontUIFontType, size float64, language unsafe.Pointer) unsafe.Pointer
- func CTFontCreateWithFontDescriptor(descriptor unsafe.Pointer, size float64, ...) unsafe.Pointer
- func CTFontCreateWithFontDescriptorAndOptions(descriptor unsafe.Pointer, size float64, ...) unsafe.Pointer
- func CTFontCreateWithGraphicsFont(graphicsFont unsafe.Pointer, size float64, ...) unsafe.Pointer
- func CTFontCreateWithName(name unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform) unsafe.Pointer
- func CTFontCreateWithNameAndOptions(name unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform, ...) unsafe.Pointer
- func CTFontCreateWithPlatformFont(platformFont uint, size float64, matrix *corefoundation.CGAffineTransform, ...) unsafe.Pointer
- func CTFontCreateWithQuickdrawInstance(name *uint8, identifier int16, style uint8, size float64) unsafe.Pointer
- func CTFontDescriptorCopyAttribute(descriptor unsafe.Pointer, attribute unsafe.Pointer) unsafe.Pointer
- func CTFontDescriptorCopyAttributes(descriptor unsafe.Pointer) unsafe.Pointer
- func CTFontDescriptorCopyLocalizedAttribute(descriptor unsafe.Pointer, attribute unsafe.Pointer, language unsafe.Pointer) unsafe.Pointer
- func CTFontDescriptorCreateCopyWithAttributes(original unsafe.Pointer, attributes unsafe.Pointer) unsafe.Pointer
- func CTFontDescriptorCreateCopyWithFamily(original unsafe.Pointer, family unsafe.Pointer) unsafe.Pointer
- func CTFontDescriptorCreateCopyWithFeature(original unsafe.Pointer, featureTypeIdentifier unsafe.Pointer, ...) unsafe.Pointer
- func CTFontDescriptorCreateCopyWithSymbolicTraits(original unsafe.Pointer, symTraitValue CTFontSymbolicTraits, ...) unsafe.Pointer
- func CTFontDescriptorCreateCopyWithVariation(original unsafe.Pointer, variationIdentifier unsafe.Pointer, ...) unsafe.Pointer
- func CTFontDescriptorCreateMatchingFontDescriptor(descriptor unsafe.Pointer, mandatoryAttributes unsafe.Pointer) unsafe.Pointer
- func CTFontDescriptorCreateMatchingFontDescriptors(descriptor unsafe.Pointer, mandatoryAttributes unsafe.Pointer) unsafe.Pointer
- func CTFontDescriptorCreateWithAttributes(attributes unsafe.Pointer) unsafe.Pointer
- func CTFontDescriptorCreateWithNameAndSize(name unsafe.Pointer, size float64) unsafe.Pointer
- func CTFontDescriptorGetTypeID() uint
- func CTFontDescriptorMatchFontDescriptorsWithProgressHandler(descriptors unsafe.Pointer, mandatoryAttributes unsafe.Pointer, ...) bool
- func CTFontDrawGlyphs(font unsafe.Pointer, glyphs *uint16, positions *corefoundation.CGPoint, ...)
- func CTFontDrawImageFromAdaptiveImageProviderAtPoint(font unsafe.Pointer, provider CTAdaptiveImageProviding, ...)
- func CTFontGetAdvancesForGlyphs(font unsafe.Pointer, orientation CTFontOrientation, glyphs *uint16, ...) float64
- func CTFontGetAscent(font unsafe.Pointer) float64
- func CTFontGetBoundingBox(font unsafe.Pointer) corefoundation.CGRect
- func CTFontGetBoundingRectsForGlyphs(font unsafe.Pointer, orientation CTFontOrientation, glyphs *uint16, ...) corefoundation.CGRect
- func CTFontGetCapHeight(font unsafe.Pointer) float64
- func CTFontGetDescent(font unsafe.Pointer) float64
- func CTFontGetGlyphCount(font unsafe.Pointer) int
- func CTFontGetGlyphWithName(font unsafe.Pointer, glyphName unsafe.Pointer) uint16
- func CTFontGetGlyphsForCharacters(font unsafe.Pointer, characters *uint16, glyphs *uint16, count int) bool
- func CTFontGetLeading(font unsafe.Pointer) float64
- func CTFontGetLigatureCaretPositions(font unsafe.Pointer, glyph uint16, positions *float64, maxPositions int) int
- func CTFontGetMatrix(font unsafe.Pointer) corefoundation.CGAffineTransform
- func CTFontGetOpticalBoundsForGlyphs(font unsafe.Pointer, glyphs *uint16, boundingRects *corefoundation.CGRect, ...) corefoundation.CGRect
- func CTFontGetPlatformFont(font unsafe.Pointer, attributes unsafe.Pointer) uint
- func CTFontGetSize(font unsafe.Pointer) float64
- func CTFontGetSlantAngle(font unsafe.Pointer) float64
- func CTFontGetStringEncoding(font unsafe.Pointer) uint
- func CTFontGetTypeID() uint
- func CTFontGetTypographicBoundsForAdaptiveImageProvider(font unsafe.Pointer, provider CTAdaptiveImageProviding) corefoundation.CGRect
- func CTFontGetUnderlinePosition(font unsafe.Pointer) float64
- func CTFontGetUnderlineThickness(font unsafe.Pointer) float64
- func CTFontGetUnitsPerEm(font unsafe.Pointer) uint
- func CTFontGetVerticalTranslationsForGlyphs(font unsafe.Pointer, glyphs *uint16, translations *corefoundation.CGSize, ...)
- func CTFontGetXHeight(font unsafe.Pointer) float64
- func CTFontHasTable(font unsafe.Pointer, tag uint) bool
- func CTFontManagerCompareFontFamilyNames(family1 unsafe.Pointer, family2 unsafe.Pointer, context_ unsafe.Pointer) corefoundation.CFComparisonResult
- func CTFontManagerCopyAvailableFontFamilyNames() unsafe.Pointer
- func CTFontManagerCopyAvailableFontURLs() unsafe.Pointer
- func CTFontManagerCopyAvailablePostScriptNames() unsafe.Pointer
- func CTFontManagerCreateFontDescriptorFromData(data unsafe.Pointer) unsafe.Pointer
- func CTFontManagerCreateFontDescriptorsFromData(data unsafe.Pointer) unsafe.Pointer
- func CTFontManagerCreateFontDescriptorsFromURL(fileURL unsafe.Pointer) unsafe.Pointer
- func CTFontManagerCreateFontRequestRunLoopSource(sourceOrder int, ...) unsafe.Pointer
- func CTFontManagerEnableFontDescriptors(descriptors unsafe.Pointer, enable bool)
- func CTFontManagerIsSupportedFont(fontURL unsafe.Pointer) bool
- func CTFontManagerRegisterFontDescriptors(fontDescriptors unsafe.Pointer, scope CTFontManagerScope, enabled bool, ...)
- func CTFontManagerRegisterFontURLs(fontURLs unsafe.Pointer, scope CTFontManagerScope, enabled bool, ...)
- func CTFontManagerRegisterFontsForURL(fontURL unsafe.Pointer, scope CTFontManagerScope, error_ unsafe.Pointer) bool
- func CTFontManagerRegisterFontsForURLs(fontURLs unsafe.Pointer, scope CTFontManagerScope, errors_ unsafe.Pointer) bool
- func CTFontManagerRegisterGraphicsFont(font unsafe.Pointer, error_ unsafe.Pointer) bool
- func CTFontManagerSetAutoActivationSetting(bundleIdentifier unsafe.Pointer, setting CTFontManagerAutoActivationSetting)
- func CTFontManagerUnregisterFontDescriptors(fontDescriptors unsafe.Pointer, scope CTFontManagerScope, ...)
- func CTFontManagerUnregisterFontURLs(fontURLs unsafe.Pointer, scope CTFontManagerScope, ...)
- func CTFontManagerUnregisterFontsForURL(fontURL unsafe.Pointer, scope CTFontManagerScope, error_ unsafe.Pointer) bool
- func CTFontManagerUnregisterFontsForURLs(fontURLs unsafe.Pointer, scope CTFontManagerScope, errors_ unsafe.Pointer) bool
- func CTFontManagerUnregisterGraphicsFont(font unsafe.Pointer, error_ unsafe.Pointer) bool
- func CTFrameDraw(frame unsafe.Pointer, context_ unsafe.Pointer)
- func CTFrameGetFrameAttributes(frame unsafe.Pointer) unsafe.Pointer
- func CTFrameGetLineOrigins(frame unsafe.Pointer, range_ corefoundation.CFRange, ...)
- func CTFrameGetLines(frame unsafe.Pointer) unsafe.Pointer
- func CTFrameGetPath(frame unsafe.Pointer) unsafe.Pointer
- func CTFrameGetStringRange(frame unsafe.Pointer) corefoundation.CFRange
- func CTFrameGetTypeID() uint
- func CTFrameGetVisibleStringRange(frame unsafe.Pointer) corefoundation.CFRange
- func CTFramesetterCreateFrame(framesetter unsafe.Pointer, stringRange corefoundation.CFRange, ...) unsafe.Pointer
- func CTFramesetterCreateWithAttributedString(attrString unsafe.Pointer) unsafe.Pointer
- func CTFramesetterCreateWithTypesetter(typesetter unsafe.Pointer) unsafe.Pointer
- func CTFramesetterGetTypeID() uint
- func CTFramesetterGetTypesetter(framesetter unsafe.Pointer) unsafe.Pointer
- func CTFramesetterSuggestFrameSizeWithConstraints(framesetter unsafe.Pointer, stringRange corefoundation.CFRange, ...) corefoundation.CGSize
- func CTGetCoreTextVersion() uint32
- func CTGlyphInfoCreateWithCharacterIdentifier(cid uint16, collection CTCharacterCollection, baseString unsafe.Pointer) unsafe.Pointer
- func CTGlyphInfoCreateWithGlyph(glyph uint16, font unsafe.Pointer, baseString unsafe.Pointer) unsafe.Pointer
- func CTGlyphInfoCreateWithGlyphName(glyphName unsafe.Pointer, font unsafe.Pointer, baseString unsafe.Pointer) unsafe.Pointer
- func CTGlyphInfoGetCharacterIdentifier(glyphInfo unsafe.Pointer) uint16
- func CTGlyphInfoGetGlyph(glyphInfo unsafe.Pointer) uint16
- func CTGlyphInfoGetGlyphName(glyphInfo unsafe.Pointer) unsafe.Pointer
- func CTGlyphInfoGetTypeID() uint
- func CTLineCreateJustifiedLine(line unsafe.Pointer, justificationFactor float64, justificationWidth float64) unsafe.Pointer
- func CTLineCreateTruncatedLine(line unsafe.Pointer, width float64, truncationType CTLineTruncationType, ...) unsafe.Pointer
- func CTLineCreateWithAttributedString(attrString unsafe.Pointer) unsafe.Pointer
- func CTLineDraw(line unsafe.Pointer, context_ unsafe.Pointer)
- func CTLineEnumerateCaretOffsets(line unsafe.Pointer, block func(float64, int, bool, *bool))
- func CTLineGetBoundsWithOptions(line unsafe.Pointer, options CTLineBoundsOptions) corefoundation.CGRect
- func CTLineGetGlyphCount(line unsafe.Pointer) int
- func CTLineGetGlyphRuns(line unsafe.Pointer) unsafe.Pointer
- func CTLineGetImageBounds(line unsafe.Pointer, context_ unsafe.Pointer) corefoundation.CGRect
- func CTLineGetOffsetForStringIndex(line unsafe.Pointer, charIndex int, secondaryOffset *float64) float64
- func CTLineGetPenOffsetForFlush(line unsafe.Pointer, flushFactor float64, flushWidth float64) float64
- func CTLineGetStringIndexForPosition(line unsafe.Pointer, position corefoundation.CGPoint) int
- func CTLineGetStringRange(line unsafe.Pointer) corefoundation.CFRange
- func CTLineGetTrailingWhitespaceWidth(line unsafe.Pointer) float64
- func CTLineGetTypeID() uint
- func CTLineGetTypographicBounds(line unsafe.Pointer, ascent *float64, descent *float64, leading *float64) float64
- func CTParagraphStyleCreate(settings *CTParagraphStyleSetting, settingCount uint) unsafe.Pointer
- func CTParagraphStyleCreateCopy(paragraphStyle unsafe.Pointer) unsafe.Pointer
- func CTParagraphStyleGetTypeID() uint
- func CTParagraphStyleGetValueForSpecifier(paragraphStyle unsafe.Pointer, spec CTParagraphStyleSpecifier, ...) bool
- func CTRubyAnnotationCreate(alignment CTRubyAlignment, overhang CTRubyOverhang, sizeFactor float64, ...) unsafe.Pointer
- func CTRubyAnnotationCreateCopy(rubyAnnotation unsafe.Pointer) unsafe.Pointer
- func CTRubyAnnotationCreateWithAttributes(alignment CTRubyAlignment, overhang CTRubyOverhang, position CTRubyPosition, ...) unsafe.Pointer
- func CTRubyAnnotationGetSizeFactor(rubyAnnotation unsafe.Pointer) float64
- func CTRubyAnnotationGetTextForPosition(rubyAnnotation unsafe.Pointer, position CTRubyPosition) unsafe.Pointer
- func CTRubyAnnotationGetTypeID() uint
- func CTRunDelegateCreate(callbacks *CTRunDelegateCallbacks, refCon unsafe.Pointer) unsafe.Pointer
- func CTRunDelegateGetRefCon(runDelegate unsafe.Pointer) unsafe.Pointer
- func CTRunDelegateGetTypeID() uint
- func CTRunDraw(run unsafe.Pointer, context_ unsafe.Pointer, range_ corefoundation.CFRange)
- func CTRunGetAdvances(run unsafe.Pointer, range_ corefoundation.CFRange, ...)
- func CTRunGetAdvancesPtr(run unsafe.Pointer) *corefoundation.CGSize
- func CTRunGetAttributes(run unsafe.Pointer) unsafe.Pointer
- func CTRunGetBaseAdvancesAndOrigins(runRef unsafe.Pointer, range_ corefoundation.CFRange, ...)
- func CTRunGetGlyphCount(run unsafe.Pointer) int
- func CTRunGetGlyphs(run unsafe.Pointer, range_ corefoundation.CFRange, buffer *uint16)
- func CTRunGetGlyphsPtr(run unsafe.Pointer) *uint16
- func CTRunGetImageBounds(run unsafe.Pointer, context_ unsafe.Pointer, range_ corefoundation.CFRange) corefoundation.CGRect
- func CTRunGetPositions(run unsafe.Pointer, range_ corefoundation.CFRange, ...)
- func CTRunGetPositionsPtr(run unsafe.Pointer) *corefoundation.CGPoint
- func CTRunGetStringIndices(run unsafe.Pointer, range_ corefoundation.CFRange, buffer *int)
- func CTRunGetStringIndicesPtr(run unsafe.Pointer) *int
- func CTRunGetStringRange(run unsafe.Pointer) corefoundation.CFRange
- func CTRunGetTextMatrix(run unsafe.Pointer) corefoundation.CGAffineTransform
- func CTRunGetTypeID() uint
- func CTRunGetTypographicBounds(run unsafe.Pointer, range_ corefoundation.CFRange, ascent *float64, ...) float64
- func CTTextTabCreate(alignment CTTextAlignment, location float64, options unsafe.Pointer) unsafe.Pointer
- func CTTextTabGetLocation(tab unsafe.Pointer) float64
- func CTTextTabGetOptions(tab unsafe.Pointer) unsafe.Pointer
- func CTTextTabGetTypeID() uint
- func CTTypesetterCreateLine(typesetter unsafe.Pointer, stringRange corefoundation.CFRange) unsafe.Pointer
- func CTTypesetterCreateLineWithOffset(typesetter unsafe.Pointer, stringRange corefoundation.CFRange, offset float64) unsafe.Pointer
- func CTTypesetterCreateWithAttributedString(string_ unsafe.Pointer) unsafe.Pointer
- func CTTypesetterCreateWithAttributedStringAndOptions(string_ unsafe.Pointer, options unsafe.Pointer) unsafe.Pointer
- func CTTypesetterGetTypeID() uint
- func CTTypesetterSuggestClusterBreak(typesetter unsafe.Pointer, startIndex int, width float64) int
- func CTTypesetterSuggestClusterBreakWithOffset(typesetter unsafe.Pointer, startIndex int, width float64, offset float64) int
- func CTTypesetterSuggestLineBreak(typesetter unsafe.Pointer, startIndex int, width float64) int
- func CTTypesetterSuggestLineBreakWithOffset(typesetter unsafe.Pointer, startIndex int, width float64, offset float64) int
- func KCTAdaptiveImageProviderAttributeName() uintptr
- func KCTBackgroundColorAttributeName() uintptr
- func KCTBaselineClassAttributeName() uintptr
- func KCTBaselineClassHanging() uintptr
- func KCTBaselineClassIdeographicCentered() uintptr
- func KCTBaselineClassIdeographicHigh() uintptr
- func KCTBaselineClassIdeographicLow() uintptr
- func KCTBaselineClassMath() uintptr
- func KCTBaselineClassRoman() uintptr
- func KCTBaselineInfoAttributeName() uintptr
- func KCTBaselineOffsetAttributeName() uintptr
- func KCTBaselineOriginalFont() uintptr
- func KCTBaselineReferenceFont() uintptr
- func KCTBaselineReferenceInfoAttributeName() uintptr
- func KCTCharacterShapeAttributeName() uintptr
- func KCTFontAttributeName() uintptr
- func KCTFontBaselineAdjustAttribute() uintptr
- func KCTFontCascadeListAttribute() uintptr
- func KCTFontCharacterSetAttribute() uintptr
- func KCTFontCollectionDisallowAutoActivationOption() uintptr
- func KCTFontCollectionIncludeDisabledFontsOption() uintptr
- func KCTFontCollectionRemoveDuplicatesOption() uintptr
- func KCTFontCopyrightNameKey() uintptr
- func KCTFontDescriptionNameKey() uintptr
- func KCTFontDescriptorLanguageAttribute() uintptr
- func KCTFontDescriptorMatchingCurrentAssetSize() uintptr
- func KCTFontDescriptorMatchingDescriptors() uintptr
- func KCTFontDescriptorMatchingError() uintptr
- func KCTFontDescriptorMatchingPercentage() uintptr
- func KCTFontDescriptorMatchingResult() uintptr
- func KCTFontDescriptorMatchingSourceDescriptor() uintptr
- func KCTFontDescriptorMatchingTotalAssetSize() uintptr
- func KCTFontDescriptorMatchingTotalDownloadedSize() uintptr
- func KCTFontDesignerNameKey() uintptr
- func KCTFontDesignerURLNameKey() uintptr
- func KCTFontDisplayNameAttribute() uintptr
- func KCTFontDownloadableAttribute() uintptr
- func KCTFontDownloadedAttribute() uintptr
- func KCTFontEnabledAttribute() uintptr
- func KCTFontFamilyNameAttribute() uintptr
- func KCTFontFamilyNameKey() uintptr
- func KCTFontFeatureSampleTextKey() uintptr
- func KCTFontFeatureSelectorDefaultKey() uintptr
- func KCTFontFeatureSelectorIdentifierKey() uintptr
- func KCTFontFeatureSelectorNameKey() uintptr
- func KCTFontFeatureSelectorSettingKey() uintptr
- func KCTFontFeatureSettingsAttribute() uintptr
- func KCTFontFeatureTooltipTextKey() uintptr
- func KCTFontFeatureTypeExclusiveKey() uintptr
- func KCTFontFeatureTypeIdentifierKey() uintptr
- func KCTFontFeatureTypeNameKey() uintptr
- func KCTFontFeatureTypeSelectorsKey() uintptr
- func KCTFontFeaturesAttribute() uintptr
- func KCTFontFixedAdvanceAttribute() uintptr
- func KCTFontFormatAttribute() uintptr
- func KCTFontFullNameKey() uintptr
- func KCTFontLanguagesAttribute() uintptr
- func KCTFontLicenseNameKey() uintptr
- func KCTFontLicenseURLNameKey() uintptr
- func KCTFontMacintoshEncodingsAttribute() uintptr
- func KCTFontManagerBundleIdentifier() uintptr
- func KCTFontManagerErrorDomain() uintptr
- func KCTFontManagerErrorFontURLsKey() uintptr
- func KCTFontManagerRegisteredFontsChangedNotification() uintptr
- func KCTFontManufacturerNameKey() uintptr
- func KCTFontMatrixAttribute() uintptr
- func KCTFontNameAttribute() uintptr
- func KCTFontOpenTypeFeatureTag() uintptr
- func KCTFontOpenTypeFeatureValue() uintptr
- func KCTFontOpticalSizeAttribute() uintptr
- func KCTFontOrientationAttribute() uintptr
- func KCTFontPostScriptCIDNameKey() uintptr
- func KCTFontPostScriptNameKey() uintptr
- func KCTFontPriorityAttribute() uintptr
- func KCTFontRegistrationScopeAttribute() uintptr
- func KCTFontSampleTextNameKey() uintptr
- func KCTFontSizeAttribute() uintptr
- func KCTFontSlantTrait() uintptr
- func KCTFontStyleNameAttribute() uintptr
- func KCTFontStyleNameKey() uintptr
- func KCTFontSubFamilyNameKey() uintptr
- func KCTFontSymbolicTrait() uintptr
- func KCTFontTrademarkNameKey() uintptr
- func KCTFontTraitsAttribute() uintptr
- func KCTFontURLAttribute() uintptr
- func KCTFontUniqueNameKey() uintptr
- func KCTFontVariationAttribute() uintptr
- func KCTFontVariationAxesAttribute() uintptr
- func KCTFontVariationAxisDefaultValueKey() uintptr
- func KCTFontVariationAxisHiddenKey() uintptr
- func KCTFontVariationAxisIdentifierKey() uintptr
- func KCTFontVariationAxisMaximumValueKey() uintptr
- func KCTFontVariationAxisMinimumValueKey() uintptr
- func KCTFontVariationAxisNameKey() uintptr
- func KCTFontVendorURLNameKey() uintptr
- func KCTFontVersionNameKey() uintptr
- func KCTFontWeightTrait() uintptr
- func KCTFontWidthTrait() uintptr
- func KCTForegroundColorAttributeName() uintptr
- func KCTForegroundColorFromContextAttributeName() uintptr
- func KCTFrameClippingPathsAttributeName() uintptr
- func KCTFramePathClippingPathAttributeName() uintptr
- func KCTFramePathFillRuleAttributeName() uintptr
- func KCTFramePathWidthAttributeName() uintptr
- func KCTFrameProgressionAttributeName() uintptr
- func KCTGlyphInfoAttributeName() uintptr
- func KCTHorizontalInVerticalFormsAttributeName() uintptr
- func KCTKernAttributeName() uintptr
- func KCTLanguageAttributeName() uintptr
- func KCTLigatureAttributeName() uintptr
- func KCTParagraphStyleAttributeName() uintptr
- func KCTRubyAnnotationAttributeName() uintptr
- func KCTRubyAnnotationScaleToFitAttributeName() uintptr
- func KCTRubyAnnotationSizeFactorAttributeName() uintptr
- func KCTRunDelegateAttributeName() uintptr
- func KCTStrokeColorAttributeName() uintptr
- func KCTStrokeWidthAttributeName() uintptr
- func KCTSuperscriptAttributeName() uintptr
- func KCTTabColumnTerminatorsAttributeName() uintptr
- func KCTTrackingAttributeName() uintptr
- func KCTTypesetterOptionAllowUnboundedLayout() uintptr
- func KCTTypesetterOptionDisableBidiProcessing() uintptr
- func KCTTypesetterOptionForcedEmbeddingLevel() uintptr
- func KCTUnderlineColorAttributeName() uintptr
- func KCTUnderlineStyleAttributeName() uintptr
- func KCTVerticalFormsAttributeName() uintptr
- func KCTWritingDirectionAttributeName() uintptr
- func SymbolAvailable(symbol string) bool
- type ALMXGlyphEntrydeprecated
- type ALMXHeader
- type Acl_entry_id_t
- type Acl_flag_t
- type Acl_perm_t
- type Acl_tag_t
- type Acl_type_t
- type AnchorPoint
- type AnchorPointTable
- type AnkrTable
- type BslnFormat0Part
- type BslnFormat1Part
- type BslnFormat2Part
- type BslnFormat3Part
- type BslnTable
- type CTAdaptiveImageProviding
- type CTCharacterCollection
- type CTFont
- type CTFontCollection
- type CTFontCollectionCopyOptions
- type CTFontDescriptor
- type CTFontDescriptorMatchingState
- type CTFontFormat
- type CTFontManagerAutoActivationSetting
- type CTFontManagerError
- type CTFontManagerScope
- type CTFontOptions
- type CTFontOrientation
- type CTFontStylisticClass
- type CTFontSymbolicTraits
- type CTFontTableOptions
- type CTFontUIFontType
- type CTFrame
- type CTFramePathFillRule
- type CTFrameProgression
- type CTFramesetter
- type CTGlyphInfo
- type CTLine
- type CTLineBoundsOptions
- type CTLineBreakMode
- type CTLineTruncationType
- type CTParagraphStyle
- type CTParagraphStyleSetting
- type CTParagraphStyleSpecifier
- type CTRubyAlignment
- type CTRubyAnnotation
- type CTRubyOverhang
- type CTRubyPosition
- type CTRun
- type CTRunDelegate
- type CTRunDelegateCallbacks
- type CTRunStatus
- type CTTextAlignment
- type CTTextTab
- type CTTypesetter
- type CTUnderlineStyle
- type CTUnderlineStyleModifiers
- type CTWritingDirection
- type Clockid_t
- type Dispatch_autorelease_frequency_t
- type Dispatch_block_flags_t
- type EvCmd
- type Filesec_property_t
- type FontVariation
- type Idtype_t
- type Ipc_info_object_type_t
- type JustDirectionTable
- type JustPCAction
- type JustPCActionSubrecord
- type JustPCConditionalAddAction
- type JustPCDecompositionAction
- type JustPCDuctilityAction
- type JustPCGlyphRepeatAddAction
- type JustPostcompTable
- type JustTable
- type JustWidthDeltaEntry
- type JustWidthDeltaGroup
- 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 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 Mach_vm_range_flags_t
- type Mach_vm_range_flavor_t
- type Mach_vm_range_tag_t
- type MortChain
- type MortContextualSubtable
- type MortFeatureEntry
- type MortInsertionSubtable
- type MortLigatureSubtable
- type MortRearrangementSubtable
- type MortSubtable
- type MortSwashSubtable
- type MortTable
- type MorxChain
- type MorxContextualSubtable
- type MorxInsertionSubtable
- type MorxLigatureSubtable
- type MorxRearrangementSubtable
- type MorxSubtable
- type MorxTable
- type Mpo_flags_t
- type NXMouseButton
- type OpbdSideValues
- type OpbdTable
- type Os_clockid_t
- type PropLookupSegment
- type PropLookupSingle
- type PropTable
- type Ptrauth_key
- type Qos_class_t
- type ROTAGlyphEntrydeprecated
- type ROTAHeaderdeprecated
- type SFNTLookupArrayHeader
- type SFNTLookupBinarySearchHeader
- 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 TrakTable
- type TrakTableData
- type TrakTableEntry
- type Virtual_memory_guard_exception_code_t
Constants ¶
const ( KAllTypeFeaturesOffSelector = 1 KAllTypeFeaturesOnSelector = 0 )
const ( KAllTypographicFeaturesType = 0 KAlternateKanaType = 34 KAnnotationType = 24 KCJKRomanSpacingType = 103 KCJKSymbolAlternativesType = 29 KCJKVerticalRomanPlacementType = 31 KCaseSensitiveLayoutType = 33 KCharacterAlternativesType = 17 KCharacterShapeType = 20 KContextualAlternatesType = 36 KCursiveConnectionType = 2 KDesignComplexityType = 18 KDiacriticsType = 9 KFractionsType = 11 KIdeographicAlternativesType = 30 KIdeographicSpacingType = 26 KItalicCJKRomanType = 32 KKanaSpacingType = 25 KLanguageTagType = 39 KLastFeatureType = -1 KLetterCaseType = 3 KLigaturesType = 1 KLinguisticRearrangementType = 5 KLowerCaseType = 37 KMathematicalExtrasType = 15 KNumberCaseType = 21 KNumberSpacingType = 6 KOrnamentSetsType = 16 KOverlappingCharactersType = 13 KRubyKanaType = 28 KSmartSwashType = 8 KStyleOptionsType = 19 KStylisticAlternativesType = 35 KTextSpacingType = 22 KTransliterationType = 23 KTypographicExtrasType = 14 KUnicodeDecompositionType = 27 KUpperCaseType = 38 KVerticalPositionType = 10 KVerticalSubstitutionType = 4 )
const ( KAlternateHorizKanaOffSelector = 1 KAlternateHorizKanaOnSelector = 0 KAlternateVertKanaOffSelector = 3 KAlternateVertKanaOnSelector = 2 )
const ( KBSLNHangingBaseline = 3 KBSLNIdeographicCenterBaseline = 1 KBSLNIdeographicHighBaseline = 5 KBSLNIdeographicLowBaseline = 2 KBSLNLastBaseline = 31 KBSLNMathBaseline = 4 KBSLNNoBaseline = 255 KBSLNNoBaselineOverride = 255 KBSLNNumBaselineClasses = 32 KBSLNRomanBaseline = 0 )
const ( KBSLNControlPointFormatNoMap = 2 KBSLNControlPointFormatWithMap = 3 KBSLNCurrentVersion = 65536 KBSLNDistanceFormatNoMap = 0 KBSLNDistanceFormatWithMap = 1 KBSLNTag = 1651731566 )
const ( KCJKVerticalRomanCenteredSelector = 0 KCJKVerticalRomanHBaselineSelector = 1 )
const ( KCTFontPriorityComputer = 30000 KCTFontPriorityDynamic = 50000 KCTFontPriorityNetwork = 20000 KCTFontPriorityProcess = 60000 KCTFontPrioritySystem = 10000 KCTFontPriorityUser = 40000 )
const ( 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 )
const ( KCTRunDelegateCurrentVersion = 1 KCTRunDelegateVersion1 = 1 )
const ( KCTWritingDirectionEmbedding = 0 KCTWritingDirectionOverride = 2 )
const ( KCanonicalCompositionOffSelector = 1 KCanonicalCompositionOnSelector = 0 KCompatibilityCompositionOffSelector = 3 KCompatibilityCompositionOnSelector = 2 KTranscodingCompositionOffSelector = 5 KTranscodingCompositionOnSelector = 4 )
const ( KCaseSensitiveLayoutOffSelector = 1 KCaseSensitiveLayoutOnSelector = 0 KCaseSensitiveSpacingOffSelector = 3 KCaseSensitiveSpacingOnSelector = 2 )
const ( KContextualAlternatesOffSelector = 1 KContextualAlternatesOnSelector = 0 KContextualSwashAlternatesOffSelector = 5 KContextualSwashAlternatesOnSelector = 4 KSwashAlternatesOffSelector = 3 KSwashAlternatesOnSelector = 2 )
const ( KDefaultLowerCaseSelector = 0 KLowerCasePetiteCapsSelector = 2 KLowerCaseSmallCapsSelector = 1 )
const ( KDefaultUpperCaseSelector = 0 KUpperCasePetiteCapsSelector = 2 KUpperCaseSmallCapsSelector = 1 )
const ( KDesignLevel1Selector = 0 KDesignLevel2Selector = 1 KDesignLevel3Selector = 2 KDesignLevel4Selector = 3 KDesignLevel5Selector = 4 )
const ( KFontCopyrightName = 0 KFontDescriptionName = 10 KFontDesignerName = 9 KFontDesignerURLName = 12 KFontFamilyName = 1 KFontFullName = 4 KFontLastReservedName = 255 KFontLicenseDescriptionName = 13 KFontLicenseInfoURLName = 14 KFontMacCompatibleFullName = 18 KFontManufacturerName = 8 KFontPostScriptCIDName = 20 KFontPostscriptName = 6 KFontPreferredFamilyName = 16 KFontPreferredSubfamilyName = 17 KFontSampleTextName = 19 KFontStyleName = 2 KFontTrademarkName = 7 KFontUniqueName = 3 KFontVendorURLName = 11 KFontVersionName = 5 )
const ( KFontCustom16BitScript = 2 KFontCustom816BitScript = 1 KFontCustom8BitScript = 0 )
const ( KFontAlbanianLanguage = 36 KFontAmharicLanguage = 85 KFontArabicLanguage = 12 KFontArmenianLanguage = 51 KFontAssameseLanguage = 68 KFontAymaraLanguage = 134 KFontAzerbaijanArLanguage = 50 KFontAzerbaijaniLanguage = 49 KFontBasqueLanguage = 129 KFontBengaliLanguage = 67 KFontBulgarianLanguage = 44 KFontBurmeseLanguage = 77 KFontByelorussianLanguage = 46 KFontCatalanLanguage = 130 KFontChewaLanguage = 92 KFontCroatianLanguage = 18 KFontCzechLanguage = 38 KFontDanishLanguage = 7 KFontDutchLanguage = 4 KFontDzongkhaLanguage = 137 KFontEnglishLanguage = 0 KFontEsperantoLanguage = 94 KFontEstonianLanguage = 27 KFontFaeroeseLanguage = 30 KFontFarsiLanguage = 31 KFontFinnishLanguage = 13 KFontFlemishLanguage = 34 KFontFrenchLanguage = 1 KFontGallaLanguage = 87 KFontGeorgianLanguage = 52 KFontGermanLanguage = 2 KFontGreekLanguage = 14 KFontGuaraniLanguage = 133 KFontGujaratiLanguage = 69 KFontHebrewLanguage = 10 KFontHindiLanguage = 21 KFontHungarianLanguage = 26 KFontIcelandicLanguage = 15 KFontIndonesianLanguage = 81 KFontIrishLanguage = 35 KFontItalianLanguage = 3 KFontJapaneseLanguage = 11 KFontJavaneseRomLanguage = 138 KFontKannadaLanguage = 73 KFontKashmiriLanguage = 61 KFontKazakhLanguage = 48 KFontKhmerLanguage = 78 KFontKirghizLanguage = 54 KFontKoreanLanguage = 23 KFontKurdishLanguage = 60 KFontLaoLanguage = 79 KFontLappishLanguage = 29 KFontLatinLanguage = 131 KFontLatvianLanguage = 28 KFontLettishLanguage = 28 KFontLithuanianLanguage = 24 KFontMacedonianLanguage = 43 KFontMalagasyLanguage = 93 KFontMalayArabicLanguage = 84 KFontMalayRomanLanguage = 83 KFontMalayalamLanguage = 72 KFontMalteseLanguage = 16 KFontMarathiLanguage = 66 KFontMoldavianLanguage = 53 KFontMongolianCyrLanguage = 58 KFontMongolianLanguage = 57 KFontNepaliLanguage = 64 KFontNorwegianLanguage = 9 KFontOriyaLanguage = 71 KFontOromoLanguage = 87 KFontPashtoLanguage = 59 KFontPersianLanguage = 31 KFontPolishLanguage = 25 KFontPortugueseLanguage = 8 KFontPunjabiLanguage = 70 KFontQuechuaLanguage = 132 KFontRomanianLanguage = 37 KFontRuandaLanguage = 90 KFontRundiLanguage = 91 KFontRussianLanguage = 32 KFontSaamiskLanguage = 29 KFontSanskritLanguage = 65 KFontSerbianLanguage = 42 KFontSimpChineseLanguage = 33 KFontSindhiLanguage = 62 KFontSinhaleseLanguage = 76 KFontSlovakLanguage = 39 KFontSlovenianLanguage = 40 KFontSomaliLanguage = 88 KFontSpanishLanguage = 6 KFontSundaneseRomLanguage = 139 KFontSwahiliLanguage = 89 KFontSwedishLanguage = 5 KFontTagalogLanguage = 82 KFontTajikiLanguage = 55 KFontTamilLanguage = 74 KFontTatarLanguage = 135 KFontTeluguLanguage = 75 KFontThaiLanguage = 22 KFontTibetanLanguage = 63 KFontTigrinyaLanguage = 86 KFontTradChineseLanguage = 19 KFontTurkishLanguage = 17 KFontTurkmenLanguage = 56 KFontUighurLanguage = 136 KFontUkrainianLanguage = 45 KFontUrduLanguage = 20 KFontUzbekLanguage = 47 KFontVietnameseLanguage = 80 KFontWelshLanguage = 128 KFontYiddishLanguage = 41 )
const ( KFontMicrosoftStandardScript = 1 KFontMicrosoftSymbolScript = 0 KFontMicrosoftUCS4Script = 10 )
const ( KFontNoLanguageCode = 4294967295 KFontNoPlatformCode = 4294967295 KFontNoScriptCode = 4294967295 )
const ( KFontAmharicScript = 28 KFontArabicScript = 4 KFontArmenianScript = 24 KFontBengaliScript = 13 KFontBurmeseScript = 19 KFontChineseScript = 2 KFontCyrillicScript = 7 KFontDevanagariScript = 9 KFontEastEuropeanRomanScript = 29 KFontEthiopicScript = 28 KFontExtendedArabicScript = 31 KFontGeezScript = 28 KFontGeorgianScript = 23 KFontGreekScript = 6 KFontGujaratiScript = 11 KFontGurmukhiScript = 10 KFontHebrewScript = 5 KFontJapaneseScript = 1 KFontKannadaScript = 16 KFontKhmerScript = 20 KFontKoreanScript = 3 KFontLaotianScript = 22 KFontMalayalamScript = 17 KFontMongolianScript = 27 KFontOriyaScript = 12 KFontRSymbolScript = 8 KFontRomanScript = 0 KFontRussian = 7 KFontSimpleChineseScript = 25 KFontSindhiScript = 31 KFontSinhaleseScript = 18 KFontSlavicScript = 29 KFontTamilScript = 14 KFontTeluguScript = 15 KFontThaiScript = 21 KFontTibetanScript = 26 KFontTraditionalChineseScript = 2 KFontUninterpretedScript = 32 KFontVietnameseScript = 30 )
const ( KFontISO10646_1993Semantics = 2 KFontUnicodeDefaultSemantics = 0 KFontUnicodeV1_1Semantics = 1 KFontUnicodeV2_0BMPOnlySemantics = 3 KFontUnicodeV2_0FullCoverageSemantics = 4 KFontUnicodeV4_0VariationSequenceSemantics = 5 KFontUnicode_FullRepertoire = 6 )
const ( KFontCustomPlatform = 4 KFontMacintoshPlatform = 1 KFontMicrosoftPlatform = 3 KFontReservedPlatform = 2 KFontUnicodePlatform = 0 )
const ( KFullWidthIdeographsSelector = 0 KHalfWidthIdeographsSelector = 2 KProportionalIdeographsSelector = 1 )
const ( KFullWidthKanaSelector = 0 KProportionalKanaSelector = 1 )
const ( KDefaultCJKRomanSelector = 2 KFullWidthCJKRomanSelector = 3 KHalfWidthCJKRomanSelector = 0 KProportionalCJKRomanSelector = 1 )
const ( KAsteriskToMultiplyOffSelector = 3 KAsteriskToMultiplyOnSelector = 2 KExponentsOffSelector = 9 KExponentsOnSelector = 8 KHyphenToMinusOffSelector = 1 KHyphenToMinusOnSelector = 0 KInequalityLigaturesOffSelector = 7 KInequalityLigaturesOnSelector = 6 KMathematicalGreekOffSelector = 11 KMathematicalGreekOnSelector = 10 KSlashToDivideOffSelector = 5 KSlashToDivideOnSelector = 4 )
const ( KFormInterrobangOffSelector = 7 KFormInterrobangOnSelector = 6 KHyphenToEnDashOffSelector = 3 KHyphenToEnDashOnSelector = 2 KHyphensToEmDashOffSelector = 1 KHyphensToEmDashOnSelector = 0 KPeriodsToEllipsisOffSelector = 11 KPeriodsToEllipsisOnSelector = 10 KSlashedZeroOffSelector = 5 KSlashedZeroOnSelector = 4 KSmartQuotesOffSelector = 9 KSmartQuotesOnSelector = 8 )
const ( KJUSTKashidaPriority = 0 KJUSTLetterPriority = 2 KJUSTNullPriority = 3 KJUSTPriorityCount = 4 KJUSTSpacePriority = 1 )
const ( KJUSTOverrideLimits = 16384 KJUSTOverridePriority = 32768 KJUSTOverrideUnlimited = 8192 KJUSTPriorityMask = 3 KJUSTUnlimited = 4096 )
const ( KJUSTCurrentVersion = 65536 KJUSTStandardFormat = 0 KJUSTTag = 1786082164 KJUSTnoGlyphcode = 65535 KJUSTpcConditionalAddAction = 2 KJUSTpcDecompositionAction = 0 KJUSTpcDuctilityAction = 4 KJUSTpcGlyphRepeatAddAction = 5 KJUSTpcGlyphStretchAction = 3 KJUSTpcUnconditionalAddAction = 1 )
const ( KKERNCrossStreamResetNote = 2 KKERNLineEndKerning = 2 KKERNLineStart = 1 KKERNNoCrossKerning = 4 KKERNNoStakeNote = 1 KKERNNotApplied = 1 KKERNNotesRequested = 8 )
const ( KKERNIndexArray = 3 KKERNOrderedList = 0 KKERNSimpleArray = 2 KKERNStateTable = 1 )
const ( KKERNCrossStream = 16384 KKERNCurrentVersion = 65536 KKERNFormatMask = 255 KKERNResetCrossStream = 32768 KKERNTag = 1801810542 KKERNUnusedBits = 7936 KKERNVariation = 8192 KKERNVertical = 32768 )
const ( KKERXActionOffsetMask = 16777215 KKERXActionTypeAnchorPoints = 1073741824 KKERXActionTypeControlPoints = 0 KKERXActionTypeCoordinates = 2147483648 KKERXActionTypeMask = 3221225472 KKERXUnusedFlags = 1056964608 )
const ( KKERXCrossStreamResetNote = 2 KKERXLineEndKerning = 2 KKERXLineStart = 1 KKERXNoCrossKerning = 4 KKERXNoStakeNote = 1 KKERXNotApplied = 1 KKERXNotesRequested = 8 )
const ( KKERXControlPoint = 4 KKERXIndexArray = 6 KKERXOrderedList = 0 KKERXSimpleArray = 2 KKERXStateTable = 1 )
const ( KKERXCrossStream = 1073741824 KKERXCurrentVersion = 131072 KKERXDescending = 268435456 KKERXFormatMask = 255 KKERXResetCrossStream = 32768 KKERXTag = 1801810552 KKERXUnusedBits = 268435200 KKERXVariation = 536870912 KKERXVertical = -2147483648 )
const ( KLCARCtlPointFormat = 1 KLCARCurrentVersion = 65536 KLCARLinearFormat = 0 KLCARTag = 1818452338 )
const ( KLinguisticRearrangementOffSelector = 1 KLinguisticRearrangementOnSelector = 0 )
const ( KLowerCaseNumbersSelector = 0 KUpperCaseNumbersSelector = 1 )
const ( 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 )
const ( KMORXCoverDescending = 1073741824 KMORXCoverIgnoreVertical = 536870912 KMORXCoverLogicalOrder = 268435456 KMORXCoverTypeMask = 255 KMORXCoverVertical = -2147483648 KMORXCurrentVersion = 131072 KMORXTag = 1836020344 )
const ( KMonospacedNumbersSelector = 0 KProportionalNumbersSelector = 1 KQuarterWidthNumbersSelector = 3 KThirdWidthNumbersSelector = 2 )
const ( KBoxAnnotationSelector = 1 KCircleAnnotationSelector = 3 KDiamondAnnotationSelector = 8 KInvertedBoxAnnotationSelector = 9 KInvertedCircleAnnotationSelector = 4 KInvertedRoundedBoxAnnotationSelector = 10 KNoAnnotationSelector = 0 KParenthesisAnnotationSelector = 5 KPeriodAnnotationSelector = 6 KRomanNumeralAnnotationSelector = 7 KRoundedBoxAnnotationSelector = 2 )
const ( KCJKItalicRomanOffSelector = 3 KCJKItalicRomanOnSelector = 2 KCJKItalicRomanSelector = 1 KNoCJKItalicRomanSelector = 0 )
const ( KCJKSymbolAltFiveSelector = 5 KCJKSymbolAltFourSelector = 4 KCJKSymbolAltOneSelector = 1 KCJKSymbolAltThreeSelector = 3 KCJKSymbolAltTwoSelector = 2 KNoCJKSymbolAlternativesSelector = 0 )
const ( KDiagonalFractionsSelector = 2 KNoFractionsSelector = 0 KVerticalFractionsSelector = 1 )
const ( KIdeographicAltFiveSelector = 5 KIdeographicAltFourSelector = 4 KIdeographicAltOneSelector = 1 KIdeographicAltThreeSelector = 3 KIdeographicAltTwoSelector = 2 KNoIdeographicAlternativesSelector = 0 )
const ( KDecorativeBordersSelector = 4 KDingbatsSelector = 1 KFleuronsSelector = 3 KInternationalSymbolsSelector = 5 KMathSymbolsSelector = 6 KNoOrnamentsSelector = 0 KPiCharactersSelector = 2 )
const ( KNoRubyKanaSelector = 0 KRubyKanaOffSelector = 3 KRubyKanaOnSelector = 2 KRubyKanaSelector = 1 )
const ( KDisplayTextSelector = 1 KEngravedTextSelector = 2 KIlluminatedCapsSelector = 3 KNoStyleOptionsSelector = 0 KTallCapsSelector = 5 KTitlingCapsSelector = 4 )
const ( KNoStylisticAlternatesSelector = 0 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 )
const ( KHanjaToHangulAltOneSelector = 7 KHanjaToHangulAltThreeSelector = 9 KHanjaToHangulAltTwoSelector = 8 KHanjaToHangulSelector = 1 KHiraganaToKatakanaSelector = 2 KKanaToRomanizationSelector = 4 KKatakanaToHiraganaSelector = 3 KNoTransliterationSelector = 0 KRomanizationToHiraganaSelector = 5 KRomanizationToKatakanaSelector = 6 )
const ( KInferiorsSelector = 2 KNormalPositionSelector = 0 KOrdinalsSelector = 3 KScientificInferiorsSelector = 4 KSuperiorsSelector = 1 )
const ( KOPBDControlPointFormat = 1 KOPBDCurrentVersion = 65536 KOPBDDistanceFormat = 0 KOPBDTag = 1869636196 )
const ( KPROPALDirectionClass = 2 KPROPANDirectionClass = 6 KPROPBNDirectionClass = 19 KPROPCSDirectionClass = 7 KPROPENDirectionClass = 3 KPROPESDirectionClass = 4 KPROPETDirectionClass = 5 KPROPLDirectionClass = 0 KPROPLREDirectionClass = 13 KPROPLRODirectionClass = 14 KPROPNSMDirectionClass = 18 KPROPNumDirectionClasses = 20 KPROPONDirectionClass = 11 KPROPPDFDirectionClass = 17 KPROPPSDirectionClass = 8 KPROPRDirectionClass = 1 KPROPRLEDirectionClass = 15 KPROPRLODirectionClass = 16 KPROPSDirectionClass = 9 KPROPSENDirectionClass = 12 KPROPWSDirectionClass = 10 )
const ( KPROPCanHangLTMask = 16384 KPROPCanHangRBMask = 8192 KPROPCurrentVersion = 196608 KPROPDirectionMask = 31 KPROPIsFloaterMask = 32768 KPROPPairOffsetMask = 3840 KPROPPairOffsetShift = 8 KPROPPairOffsetSign = 7 KPROPRightConnectMask = 128 KPROPTag = 1886547824 KPROPUseRLPairMask = 4096 KPROPZeroReserved = 96 )
const ( KPreventOverlapOffSelector = 1 KPreventOverlapOnSelector = 0 )
const ( KAltHalfWidthTextSelector = 6 KAltProportionalTextSelector = 5 KHalfWidthTextSelector = 2 KMonospacedTextSelector = 1 KProportionalTextSelector = 0 KQuarterWidthTextSelector = 4 KThirdWidthTextSelector = 3 )
const ( KAbbrevSquaredLigaturesOffSelector = 15 KAbbrevSquaredLigaturesOnSelector = 14 KCommonLigaturesOffSelector = 3 KCommonLigaturesOnSelector = 2 KContextualLigaturesOffSelector = 19 KContextualLigaturesOnSelector = 18 KDiphthongLigaturesOffSelector = 11 KDiphthongLigaturesOnSelector = 10 KHistoricalLigaturesOffSelector = 21 KHistoricalLigaturesOnSelector = 20 KLogosOffSelector = 7 KLogosOnSelector = 6 KRareLigaturesOffSelector = 5 KRareLigaturesOnSelector = 4 KRebusPicturesOffSelector = 9 KRebusPicturesOnSelector = 8 KRequiredLigaturesOffSelector = 1 KRequiredLigaturesOnSelector = 0 KSquaredLigaturesOffSelector = 13 KSquaredLigaturesOnSelector = 12 KSymbolLigaturesOffSelector = 17 KSymbolLigaturesOnSelector = 16 )
const ( KSFNTLookupSegmentArray = 4 KSFNTLookupSegmentSingle = 2 KSFNTLookupSimpleArray = 0 KSFNTLookupSingleTable = 6 KSFNTLookupTrimmedArray = 8 KSFNTLookupVector = 10 )
const ( KSTClassDeletedGlyph = 2 KSTClassEndOfLine = 3 KSTClassEndOfText = 0 KSTClassOutOfBounds = 1 KSTLigActionMask = 16383 KSTMarkEnd = 8192 KSTNoAdvance = 16384 KSTRearrVerbMask = 15 KSTSetMark = 32768 )
const ( KDecomposeDiacriticsSelector = 2 KHideDiacriticsSelector = 1 KShowDiacriticsSelector = 0 )
const ( KSubstituteVerticalFormsOffSelector = 1 KSubstituteVerticalFormsOnSelector = 0 )
const ( KTRAKCurrentVersion = 65536 KTRAKTag = 1953653099 KTRAKUniformFormat = 0 )
const ( KExpertCharactersSelector = 10 KHojoCharactersSelector = 12 KJIS1978CharactersSelector = 2 KJIS1983CharactersSelector = 3 KJIS1990CharactersSelector = 4 KJIS2004CharactersSelector = 11 KNLCCharactersSelector = 13 KSimplifiedCharactersSelector = 1 KTraditionalAltFiveSelector = 9 KTraditionalAltFourSelector = 8 KTraditionalAltOneSelector = 5 KTraditionalAltThreeSelector = 7 KTraditionalAltTwoSelector = 6 KTraditionalCharactersSelector = 0 KTraditionalNamesCharactersSelector = 14 )
const ( KCursiveSelector = 2 KPartiallyConnectedSelector = 1 KUnconnectedSelector = 0 )
const ( KAllCapsSelector = 1 KAllLowerCaseSelector = 2 KInitialCapsAndSmallCapsSelector = 5 KInitialCapsSelector = 4 KSmallCapsSelector = 3 KUpperAndLowerCaseSelector = 0 )
const ( KLineFinalSwashesOffSelector = 7 KLineFinalSwashesOnSelector = 6 KLineInitialSwashesOffSelector = 5 KLineInitialSwashesOnSelector = 4 KNonFinalSwashesOffSelector = 9 KNonFinalSwashesOnSelector = 8 KWordFinalSwashesOffSelector = 3 KWordFinalSwashesOnSelector = 2 KWordInitialSwashesOffSelector = 1 KWordInitialSwashesOnSelector = 0 )
const (
CmapFontTableTag = 1668112752
)
const (
DescriptorFontTableTag = 1717859171
)
const (
FeatureFontTableTag = 1717920116
)
const (
KANKRCurrentVersion = 0
)
const (
KCTFontClassMaskShift = 28
)
const (
KFontNoNameCode = 4294967295
)
const (
KKERXValuesAreLong = 1
)
const (
KLTAGCurrentVersion = 1
)
const (
KNoAlternatesSelector = 0
)
const (
KSTKCrossStreamReset = 8192
)
const (
KSTXHasLigAction = 8192
)
const (
NameFontTableTag = 1851878757
)
const (
NonGlyphID = 65535
)
const (
Os2FontTableTag = 1330851634
)
const (
Sizeof_sfntCMapEncoding = 8
)
const (
Sizeof_sfntCMapExtendedSubHeader = 12
)
const (
Sizeof_sfntCMapHeader = 4
)
const (
Sizeof_sfntCMapSubHeader = 6
)
const (
Sizeof_sfntDescriptorHeader = 8
)
const (
Sizeof_sfntDirectory = 12
)
const (
Sizeof_sfntInstance = 4
)
const (
Sizeof_sfntNameHeader = 6
)
const (
Sizeof_sfntNameRecord = 12
)
const (
Sizeof_sfntVariationAxis = 20
)
const (
Sizeof_sfntVariationHeader = 16
)
const (
VariationFontTableTag = 1719034226
)
Variables ¶
This section is empty.
Functions ¶
func CTFontCollectionGetTypeID ¶
func CTFontCollectionGetTypeID() uint
func CTFontCopyAttribute ¶
func CTFontCopyAvailableTables ¶
func CTFontCopyAvailableTables(font unsafe.Pointer, options CTFontTableOptions) unsafe.Pointer
func CTFontCopyGraphicsFont ¶
func CTFontCopyLocalizedName ¶
func CTFontCopyName ¶
func CTFontCopyNameForGlyph ¶
func CTFontCopyTable ¶
func CTFontCreateCopyWithAttributes ¶
func CTFontCreateCopyWithAttributes(font unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform, attributes unsafe.Pointer) unsafe.Pointer
func CTFontCreateCopyWithFamily ¶
func CTFontCreateCopyWithFamily(font unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform, family unsafe.Pointer) unsafe.Pointer
func CTFontCreateCopyWithSymbolicTraits ¶
func CTFontCreateCopyWithSymbolicTraits(font unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform, symTraitValue CTFontSymbolicTraits, symTraitMask CTFontSymbolicTraits) unsafe.Pointer
func CTFontCreateForString ¶
func CTFontCreatePathForGlyph ¶
func CTFontCreatePathForGlyph(font unsafe.Pointer, glyph uint16, matrix *corefoundation.CGAffineTransform) unsafe.Pointer
func CTFontCreateWithFontDescriptor ¶
func CTFontCreateWithFontDescriptor(descriptor unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform) unsafe.Pointer
func CTFontCreateWithFontDescriptorAndOptions ¶
func CTFontCreateWithFontDescriptorAndOptions(descriptor unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform, options CTFontOptions) unsafe.Pointer
func CTFontCreateWithGraphicsFont ¶
func CTFontCreateWithGraphicsFont(graphicsFont unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform, attributes unsafe.Pointer) unsafe.Pointer
func CTFontCreateWithName ¶
func CTFontCreateWithName(name unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform) unsafe.Pointer
func CTFontCreateWithNameAndOptions ¶
func CTFontCreateWithNameAndOptions(name unsafe.Pointer, size float64, matrix *corefoundation.CGAffineTransform, options CTFontOptions) unsafe.Pointer
func CTFontCreateWithPlatformFont ¶
func CTFontCreateWithPlatformFont(platformFont uint, size float64, matrix *corefoundation.CGAffineTransform, attributes unsafe.Pointer) unsafe.Pointer
func CTFontDescriptorCreateCopyWithSymbolicTraits ¶
func CTFontDescriptorCreateCopyWithSymbolicTraits(original unsafe.Pointer, symTraitValue CTFontSymbolicTraits, symTraitMask CTFontSymbolicTraits) unsafe.Pointer
func CTFontDescriptorGetTypeID ¶
func CTFontDescriptorGetTypeID() uint
func CTFontDrawGlyphs ¶
func CTFontDrawImageFromAdaptiveImageProviderAtPoint ¶
func CTFontDrawImageFromAdaptiveImageProviderAtPoint(font unsafe.Pointer, provider CTAdaptiveImageProviding, point corefoundation.CGPoint, context_ unsafe.Pointer)
func CTFontGetAdvancesForGlyphs ¶
func CTFontGetAdvancesForGlyphs(font unsafe.Pointer, orientation CTFontOrientation, glyphs *uint16, advances *corefoundation.CGSize, count int) float64
func CTFontGetAscent ¶
func CTFontGetBoundingBox ¶
func CTFontGetBoundingBox(font unsafe.Pointer) corefoundation.CGRect
func CTFontGetBoundingRectsForGlyphs ¶
func CTFontGetBoundingRectsForGlyphs(font unsafe.Pointer, orientation CTFontOrientation, glyphs *uint16, boundingRects *corefoundation.CGRect, count int) corefoundation.CGRect
func CTFontGetCapHeight ¶
func CTFontGetDescent ¶
func CTFontGetGlyphCount ¶
func CTFontGetGlyphWithName ¶
func CTFontGetLeading ¶
func CTFontGetMatrix ¶
func CTFontGetMatrix(font unsafe.Pointer) corefoundation.CGAffineTransform
func CTFontGetOpticalBoundsForGlyphs ¶
func CTFontGetOpticalBoundsForGlyphs(font unsafe.Pointer, glyphs *uint16, boundingRects *corefoundation.CGRect, count int, options uint) corefoundation.CGRect
func CTFontGetPlatformFont ¶
func CTFontGetSize ¶
func CTFontGetSlantAngle ¶
func CTFontGetStringEncoding ¶
func CTFontGetTypeID ¶
func CTFontGetTypeID() uint
func CTFontGetTypographicBoundsForAdaptiveImageProvider ¶
func CTFontGetTypographicBoundsForAdaptiveImageProvider(font unsafe.Pointer, provider CTAdaptiveImageProviding) corefoundation.CGRect
func CTFontGetUnitsPerEm ¶
func CTFontGetXHeight ¶
func CTFontManagerCompareFontFamilyNames ¶
func CTFontManagerCompareFontFamilyNames(family1 unsafe.Pointer, family2 unsafe.Pointer, context_ unsafe.Pointer) corefoundation.CFComparisonResult
func CTFontManagerSetAutoActivationSetting ¶
func CTFontManagerSetAutoActivationSetting(bundleIdentifier unsafe.Pointer, setting CTFontManagerAutoActivationSetting)
func CTFrameGetLineOrigins ¶
func CTFrameGetLineOrigins(frame unsafe.Pointer, range_ corefoundation.CFRange, origins *corefoundation.CGPoint)
func CTFrameGetStringRange ¶
func CTFrameGetStringRange(frame unsafe.Pointer) corefoundation.CFRange
func CTFrameGetTypeID ¶
func CTFrameGetTypeID() uint
func CTFrameGetVisibleStringRange ¶
func CTFrameGetVisibleStringRange(frame unsafe.Pointer) corefoundation.CFRange
func CTFramesetterGetTypeID ¶
func CTFramesetterGetTypeID() uint
func CTFramesetterSuggestFrameSizeWithConstraints ¶
func CTFramesetterSuggestFrameSizeWithConstraints(framesetter unsafe.Pointer, stringRange corefoundation.CFRange, frameAttributes unsafe.Pointer, constraints corefoundation.CGSize, fitRange *corefoundation.CFRange) corefoundation.CGSize
func CTGetCoreTextVersion ¶
func CTGetCoreTextVersion() uint32
func CTGlyphInfoGetGlyph ¶
func CTGlyphInfoGetGlyphName ¶
func CTGlyphInfoGetTypeID ¶
func CTGlyphInfoGetTypeID() uint
func CTLineGetBoundsWithOptions ¶
func CTLineGetBoundsWithOptions(line unsafe.Pointer, options CTLineBoundsOptions) corefoundation.CGRect
func CTLineGetGlyphCount ¶
func CTLineGetImageBounds ¶
func CTLineGetStringIndexForPosition ¶
func CTLineGetStringIndexForPosition(line unsafe.Pointer, position corefoundation.CGPoint) int
func CTLineGetStringRange ¶
func CTLineGetStringRange(line unsafe.Pointer) corefoundation.CFRange
func CTLineGetTypeID ¶
func CTLineGetTypeID() uint
func CTParagraphStyleCreate ¶
func CTParagraphStyleCreate(settings *CTParagraphStyleSetting, settingCount uint) unsafe.Pointer
func CTParagraphStyleGetTypeID ¶
func CTParagraphStyleGetTypeID() uint
func CTRubyAnnotationCreate ¶
func CTRubyAnnotationCreate(alignment CTRubyAlignment, overhang CTRubyOverhang, sizeFactor float64, text unsafe.Pointer) unsafe.Pointer
func CTRubyAnnotationCreateWithAttributes ¶
func CTRubyAnnotationCreateWithAttributes(alignment CTRubyAlignment, overhang CTRubyOverhang, position CTRubyPosition, string_ unsafe.Pointer, attributes unsafe.Pointer) unsafe.Pointer
func CTRubyAnnotationGetTextForPosition ¶
func CTRubyAnnotationGetTextForPosition(rubyAnnotation unsafe.Pointer, position CTRubyPosition) unsafe.Pointer
func CTRubyAnnotationGetTypeID ¶
func CTRubyAnnotationGetTypeID() uint
func CTRunDelegateCreate ¶
func CTRunDelegateCreate(callbacks *CTRunDelegateCallbacks, refCon unsafe.Pointer) unsafe.Pointer
func CTRunDelegateGetRefCon ¶
func CTRunDelegateGetTypeID ¶
func CTRunDelegateGetTypeID() uint
func CTRunGetAdvances ¶
func CTRunGetAdvances(run unsafe.Pointer, range_ corefoundation.CFRange, buffer *corefoundation.CGSize)
func CTRunGetAdvancesPtr ¶
func CTRunGetAdvancesPtr(run unsafe.Pointer) *corefoundation.CGSize
func CTRunGetBaseAdvancesAndOrigins ¶
func CTRunGetBaseAdvancesAndOrigins(runRef unsafe.Pointer, range_ corefoundation.CFRange, advancesBuffer *corefoundation.CGSize, originsBuffer *corefoundation.CGPoint)
func CTRunGetGlyphCount ¶
func CTRunGetGlyphs ¶
func CTRunGetGlyphs(run unsafe.Pointer, range_ corefoundation.CFRange, buffer *uint16)
func CTRunGetGlyphsPtr ¶
func CTRunGetImageBounds ¶
func CTRunGetImageBounds(run unsafe.Pointer, context_ unsafe.Pointer, range_ corefoundation.CFRange) corefoundation.CGRect
func CTRunGetPositions ¶
func CTRunGetPositions(run unsafe.Pointer, range_ corefoundation.CFRange, buffer *corefoundation.CGPoint)
func CTRunGetPositionsPtr ¶
func CTRunGetPositionsPtr(run unsafe.Pointer) *corefoundation.CGPoint
func CTRunGetStringIndices ¶
func CTRunGetStringIndices(run unsafe.Pointer, range_ corefoundation.CFRange, buffer *int)
func CTRunGetStringRange ¶
func CTRunGetStringRange(run unsafe.Pointer) corefoundation.CFRange
func CTRunGetTextMatrix ¶
func CTRunGetTextMatrix(run unsafe.Pointer) corefoundation.CGAffineTransform
func CTRunGetTypeID ¶
func CTRunGetTypeID() uint
func CTTextTabCreate ¶
func CTTextTabGetLocation ¶
func CTTextTabGetTypeID ¶
func CTTextTabGetTypeID() uint
func CTTypesetterCreateLine ¶
func CTTypesetterGetTypeID ¶
func CTTypesetterGetTypeID() uint
func KCTAdaptiveImageProviderAttributeName ¶
func KCTAdaptiveImageProviderAttributeName() uintptr
@const kCTAdaptiveImageProviderAttributeName @abstract Provide the image for an emoji-like text attachment. @discussion The attribute value must be an object conforming to the CTAdaptiveImageProviding protocol. The range this attribute is applied to should be one or more U+FFFC characters, each of which will be drawn as the provided image, and the font attribute applied to that range will be used to determine properties such as point size.
func KCTBackgroundColorAttributeName ¶
func KCTBackgroundColorAttributeName() uintptr
func KCTBaselineClassAttributeName ¶
func KCTBaselineClassAttributeName() uintptr
func KCTBaselineClassHanging ¶
func KCTBaselineClassHanging() uintptr
@defined kCTBaselineClassHanging @abstract Key to reference the Hanging baseline class. @discussion This key can be used with a baseline info dictionary to offset to the Hanging baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
func KCTBaselineClassIdeographicCentered ¶
func KCTBaselineClassIdeographicCentered() uintptr
@defined kCTBaselineClassIdeographicCentered @abstract Key to reference the Ideographic Centered baseline class. @discussion This key can be used with a baseline info dictionary to offset to the Ideographic Centered baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
func KCTBaselineClassIdeographicHigh ¶
func KCTBaselineClassIdeographicHigh() uintptr
@defined kCTBaselineClassIdeographicHigh @abstract Key to reference the Ideographic High baseline class. @discussion This key can be used with a baseline info dictionary to offset to the Ideographic High baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
func KCTBaselineClassIdeographicLow ¶
func KCTBaselineClassIdeographicLow() uintptr
@defined kCTBaselineClassIdeographicLow @abstract Key to reference the Ideographic Low baseline class. @discussion This key can be used with a baseline info dictionary to offset to the Ideographic Low baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
func KCTBaselineClassMath ¶
func KCTBaselineClassMath() uintptr
@defined kCTBaselineClassMath @abstract Key to reference the Math baseline class. @discussion This key can be used with a baseline info dictionary to offset to the Math baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
func KCTBaselineClassRoman ¶
func KCTBaselineClassRoman() uintptr
@defined kCTBaselineClassRoman @abstract Key to reference the Roman baseline class. @discussion This key can be used with a baseline info dictionary to offset to the Roman baseline as a CFNumberRef float. It can also be used as the value for kCTBaselineClassAttributeName.
func KCTBaselineInfoAttributeName ¶
func KCTBaselineInfoAttributeName() uintptr
func KCTBaselineOffsetAttributeName ¶
func KCTBaselineOffsetAttributeName() uintptr
func KCTBaselineOriginalFont ¶
func KCTBaselineOriginalFont() uintptr
@defined kCTBaselineOriginalFont @abstract Use the original font for setting the reference baseline. @discussion This constant can be used as the value for kCTBaselineReferenceFont to specify that the original font should be used for the reference baseline.
func KCTBaselineReferenceFont ¶
func KCTBaselineReferenceFont() uintptr
@defined kCTBaselineReferenceFont @abstract Key to reference a font for the reference baseline. @discussion This key can be used to specify a font for the reference baseline. The value is a CTFontRef or the kCTBaselineOriginalFont constant.
func KCTBaselineReferenceInfoAttributeName ¶
func KCTBaselineReferenceInfoAttributeName() uintptr
func KCTCharacterShapeAttributeName ¶
func KCTCharacterShapeAttributeName() uintptr
func KCTFontAttributeName ¶
func KCTFontAttributeName() uintptr
func KCTFontBaselineAdjustAttribute ¶
func KCTFontBaselineAdjustAttribute() uintptr
@defined kCTFontBaselineAdjustAttribute @abstract The baseline adjustment to apply to font metrics. @discussion The value for this key is a floating-point CFNumberRef. This is primarily used when defining font descriptors for a cascade list to keep the baseline of all fonts even.
func KCTFontCascadeListAttribute ¶
func KCTFontCascadeListAttribute() uintptr
@defined kCTFontCascadeListAttribute @abstract The font cascade list. @discussion This key is used to specify or obtain the cascade list used for a font reference. The cascade list is a CFArrayRef containing CTFontDescriptorRefs. If unspecified, the global cascade list is used. This list is not consulted for private-use characters on OS X 10.10, iOS 8, or earlier.
func KCTFontCharacterSetAttribute ¶
func KCTFontCharacterSetAttribute() uintptr
@defined kCTFontCharacterSetAttribute @abstract The font Unicode character coverage set. @discussion The value for this key is a CFCharacterSetRef. Creating a font with this attribute will restrict the font to a subset of its actual character set.
func KCTFontCollectionDisallowAutoActivationOption ¶
func KCTFontCollectionDisallowAutoActivationOption() uintptr
@defined kCTFontCollectionDisallowAutoActivationOption @abstract Option key to avoid auto-activating fonts. @discussion Specify this option key in the options dictionary with a non-zero value to disallow searches for missing fonts (font descriptors returning no results).
func KCTFontCollectionIncludeDisabledFontsOption ¶
func KCTFontCollectionIncludeDisabledFontsOption() uintptr
@defined kCTFontCollectionIncludeDisabledFontsOption @abstract Option key to include disabled fonts in the matching results. @discussion Specify this option key in the options dictionary with a non-zero value to enable matching of disabled fonts. You can pass font descriptors specifying disabled fonts to CTFontManagerEnableFontDescriptors, but you cannot use such a font descriptor to query font attributes from the system database or create a CTFontRef.
func KCTFontCollectionRemoveDuplicatesOption ¶
func KCTFontCollectionRemoveDuplicatesOption() uintptr
@defined kCTFontCollectionRemoveDuplicatesOption @abstract Option key to specify filtering of duplicates. @discussion Specify this option key in the options dictionary with a non- zero value to enable automatic filtering of duplicate font descriptors.
func KCTFontCopyrightNameKey ¶
func KCTFontCopyrightNameKey() uintptr
@defined kCTFontCopyrightNameKey @abstract The name specifier for the copyright name.
func KCTFontDescriptionNameKey ¶
func KCTFontDescriptionNameKey() uintptr
@defined kCTFontDescriptionNameKey @abstract The name specifier for the description name.
func KCTFontDescriptorLanguageAttribute ¶
func KCTFontDescriptorLanguageAttribute() uintptr
@defined kCTFontDescriptorLanguageAttribute @abstract The language identifier for font fallback selection. @discussion The value associated with this key is a CFStringRef. If specified in a font descriptor, it is used to select the appropriate font fallback list for the language. This key should not be confused with kCTLanguageAttributeName, which is defined in CTStringAttributes.h.
func KCTFontDescriptorMatchingCurrentAssetSize ¶
func KCTFontDescriptorMatchingCurrentAssetSize() uintptr
func KCTFontDescriptorMatchingDescriptors ¶
func KCTFontDescriptorMatchingDescriptors() uintptr
func KCTFontDescriptorMatchingError ¶
func KCTFontDescriptorMatchingError() uintptr
func KCTFontDescriptorMatchingPercentage ¶
func KCTFontDescriptorMatchingPercentage() uintptr
func KCTFontDescriptorMatchingResult ¶
func KCTFontDescriptorMatchingResult() uintptr
func KCTFontDescriptorMatchingSourceDescriptor ¶
func KCTFontDescriptorMatchingSourceDescriptor() uintptr
func KCTFontDescriptorMatchingTotalAssetSize ¶
func KCTFontDescriptorMatchingTotalAssetSize() uintptr
func KCTFontDescriptorMatchingTotalDownloadedSize ¶
func KCTFontDescriptorMatchingTotalDownloadedSize() uintptr
func KCTFontDesignerNameKey ¶
func KCTFontDesignerNameKey() uintptr
@defined kCTFontDesignerNameKey @abstract The name specifier for the designer name.
func KCTFontDesignerURLNameKey ¶
func KCTFontDesignerURLNameKey() uintptr
@defined kCTFontDesignerURLNameKey @abstract The name specifier for the designer url name.
func KCTFontDisplayNameAttribute ¶
func KCTFontDisplayNameAttribute() uintptr
@defined kCTFontDisplayNameAttribute @abstract The display name. @discussion This is the key for accessing the name used to display the font. Most commonly this is the full name. The value associated with this key is a CFStringRef.
func KCTFontDownloadableAttribute ¶
func KCTFontDownloadableAttribute() uintptr
@defined kCTFontDownloadableAttribute @abstract The font downloadable state. @discussion The value associated with this key is a CFBoolean. If it is true, CoreText attempts to download a font if necessary when matching a descriptor.
func KCTFontDownloadedAttribute ¶
func KCTFontDownloadedAttribute() uintptr
@defined kCTFontDownloadedAttribute @abstract The download state. @discussion The value associated with this key is a CFBoolean. If it is true, corresponding FontAsset has been downloaded. (but still it may be necessary to call appropriate API in order to use the font in the FontAsset.)
func KCTFontEnabledAttribute ¶
func KCTFontEnabledAttribute() uintptr
@defined kCTFontEnabledAttribute @abstract The font enabled state. @discussion The value associated with this key is a CFBoolean. Unregistered font descriptors will return NULL, which is equivalent to false.
func KCTFontFamilyNameAttribute ¶
func KCTFontFamilyNameAttribute() uintptr
@defined kCTFontFamilyNameAttribute @abstract The family name. @discussion This is the key for accessing the family name from the font descriptor. The value associated with this key is a CFStringRef.
func KCTFontFamilyNameKey ¶
func KCTFontFamilyNameKey() uintptr
@defined kCTFontFamilyNameKey @abstract The name specifier for the family name.
func KCTFontFeatureSampleTextKey ¶
func KCTFontFeatureSampleTextKey() uintptr
@defined kCTFontFeatureSampleTextKey @abstract Key to get the font feature sample text. @discussion This key can be used with a font feature dictionary to get the localized sample text as a CFStringRef.
func KCTFontFeatureSelectorDefaultKey ¶
func KCTFontFeatureSelectorDefaultKey() uintptr
@defined kCTFontFeatureSelectorDefaultKey @abstract Key to get the font feature selector default setting value. @discussion This key is used with a selector dictionary to get the default indicator for the selector. This value is a CFBooleanRef which if present and true indicates that this selector is the default setting for the current feature type.
func KCTFontFeatureSelectorIdentifierKey ¶
func KCTFontFeatureSelectorIdentifierKey() uintptr
@defined kCTFontFeatureSelectorIdentifierKey @abstract Key to get the font feature selector identifier. @discussion This key can be used with a selector dictionary corresponding to a feature type to obtain the selector identifier value as a CFNumberRef.
func KCTFontFeatureSelectorNameKey ¶
func KCTFontFeatureSelectorNameKey() uintptr
@defined kCTFontFeatureSelectorNameKey @abstract Key to get the font feature selector name. @discussion This key is used with a selector dictionary to get the localized name string for the selector as a CFStringRef.
func KCTFontFeatureSelectorSettingKey ¶
func KCTFontFeatureSelectorSettingKey() uintptr
@defined kCTFontFeatureSelectorSettingKey @abstract Key to get or specify the current feature setting. @discussion This key is used with a selector dictionary to get or specify the current setting for the selector. This value is a CFBooleanRef to indicate whether this selector is on or off. If this key is not present, the default setting is used.
func KCTFontFeatureSettingsAttribute ¶
func KCTFontFeatureSettingsAttribute() uintptr
@defined kCTFontFeatureSettingsAttribute @abstract The array of typographic feature settings. @discussion This key is used to specify an array of zero or more feature settings. Each setting dictionary indicates which setting should be applied. In the case of duplicate or conflicting settings the last setting in the list will take precedence. In the case of AAT settings, it is the caller's responsibility to handle exclusive and non-exclusive settings as necessary. An AAT setting dictionary contains a tuple of a kCTFontFeatureTypeIdentifierKey key-value pair and a kCTFontFeatureSelectorIdentifierKey key-value pair. An OpenType setting dictionary contains a tuple of a kCTFontOpenTypeFeatureTag key-value pair and a kCTFontOpenTypeFeatureValue key-value pair. Starting with OS X 10.10 and iOS 8.0, settings are also accepted (but not returned) in the following simplified forms: An OpenType setting can be either an array pair of tag string and value number, or a tag string on its own. For example: @[ @"c2sc", @1 ] or simply @"c2sc". An unspecified value enables the feature and a value of zero disables it. An AAT setting can be specified as an array pair of type and selector numbers. For example: @[ @(kUpperCaseType), @(kUpperCaseSmallCapsSelector) ].
func KCTFontFeatureTooltipTextKey ¶
func KCTFontFeatureTooltipTextKey() uintptr
@defined kCTFontFeatureTooltipTextKey @abstract Key to get the font feature tooltip text. @discussion This key can be used with a font feature dictionary to get the localized tooltip text as a CFStringRef.
func KCTFontFeatureTypeExclusiveKey ¶
func KCTFontFeatureTypeExclusiveKey() uintptr
@defined kCTFontFeatureTypeExclusiveKey @abstract Key to get the font feature exclusive setting. @discussion This key can be used with a font feature dictionary to get the the exclusive setting of the feature as a CFBoolean. The value associated with this key indicates whether the feature selectors associated with this type should be mutually exclusive.
func KCTFontFeatureTypeIdentifierKey ¶
func KCTFontFeatureTypeIdentifierKey() uintptr
@defined kCTFontFeatureTypeIdentifierKey @abstract Key to get the font feature type value. @discussion This key can be used with a font feature dictionary to get the type identifier as a CFNumberRef.
func KCTFontFeatureTypeNameKey ¶
func KCTFontFeatureTypeNameKey() uintptr
@defined kCTFontFeatureTypeNameKey @abstract Key to get the font feature name. @discussion This key can be used with a font feature dictionary to get the localized type name string as a CFString.
func KCTFontFeatureTypeSelectorsKey ¶
func KCTFontFeatureTypeSelectorsKey() uintptr
@defined kCTFontFeatureTypeSelectorsKey @abstract Key to get the font feature selectors. @discussion This key can be used with a font feature dictionary to get the array of font feature selectors as a CFArrayRef. This is an array of selector dictionaries that contain the values for the following selector keys.
func KCTFontFeaturesAttribute ¶
func KCTFontFeaturesAttribute() uintptr
@defined kCTFontFeaturesAttribute @abstract The array of font features. @discussion This key is used to specify or obtain the font features for a font reference. The value associated with this key is a CFArrayRef of font feature dictionaries as documented for CTFontCopyFeatures() in <CoreText/CTFont.h>. Unlike the result of CTFontCopyFeatures(), this attribute does not contain localized names. @seealso CTFontCopyFeatures
func KCTFontFixedAdvanceAttribute ¶
func KCTFontFixedAdvanceAttribute() uintptr
@defined kCTFontFixedAdvanceAttribute @abstract Specifies advance width. @discussion This key is used to specify a constant advance width, which affects the glyph metrics of any font instance created with this key; it overrides font values and the font transformation matrix, if any. The value associated with this key must be a CFNumberRef. Starting with macOS 10.14 and iOS 12.0, this only affects glyph advances that have non-zero width when this attribute is not present.
func KCTFontFormatAttribute ¶
func KCTFontFormatAttribute() uintptr
@defined kCTFontFormatAttribute @abstract Specifies the recognized format of the font. @discussion The attribute is used to specify or obtain the format of the font. The returned value is a CFNumber containing one of the constants defined below.
func KCTFontFullNameKey ¶
func KCTFontFullNameKey() uintptr
@defined kCTFontFullNameKey @abstract The name specifier for the full name.
func KCTFontLanguagesAttribute ¶
func KCTFontLanguagesAttribute() uintptr
@defined kCTFontLanguagesAttribute @abstract The list of supported languages. @discussion The value for this key is a CFArrayRef of CFStringRef language identifiers conforming to UTS #35. It can be requested from any font. If present in a descriptor used for matching, only fonts supporting the specified languages will be returned.
func KCTFontLicenseNameKey ¶
func KCTFontLicenseNameKey() uintptr
@defined kCTFontLicenseNameKey @abstract The name specifier for the license name.
func KCTFontLicenseURLNameKey ¶
func KCTFontLicenseURLNameKey() uintptr
@defined kCTFontLicenseURLNameKey @abstract The name specifier for the license url name.
func KCTFontMacintoshEncodingsAttribute ¶
func KCTFontMacintoshEncodingsAttribute() uintptr
@defined kCTFontMacintoshEncodingsAttribute @abstract The Macintosh encodings (legacy script codes). @discussion The value associated with this key is a CFNumberRef containing a bitfield of the script codes in <CoreText/SFNTTypes.h>; bit 0 corresponds to kFontRomanScript, and so on. This attribute is provided for legacy compatibility.
func KCTFontManagerBundleIdentifier ¶
func KCTFontManagerBundleIdentifier() uintptr
@const kCTFontManagerBundleIdentifier @abstract CTFontManage bundle identifier @discussion The CTFontManager bundle identifier to be used with get or set global auto-activation settings.
func KCTFontManagerErrorDomain ¶
func KCTFontManagerErrorDomain() uintptr
@const kCTFontManagerErrorDomain @abstract CFError domain for CTFontManager errors @discussion CFErrors with this domain will have error codes corresponding to one of the CTFontManagerErrors above.
func KCTFontManagerErrorFontURLsKey ¶
func KCTFontManagerErrorFontURLsKey() uintptr
@constant kCTFontManagerErrorFontURLsKey @abstract User info key to be used with CFError references returned from registration functions. @discussion The value associated with this key in the user info dictionary of a CFError is a CFArray of font URLs that failed with given error.
func KCTFontManagerRegisteredFontsChangedNotification ¶
func KCTFontManagerRegisteredFontsChangedNotification() uintptr
@constant kCTFontManagerRegisteredFontsChangedNotification @abstract Notification name for font registry changes. @discussion This is the string to use as the notification name when subscribing to CTFontManager notifications. This notification will be posted when fonts are added or removed. OS X clients should register as an observer of the notification with the distributed notification center for changes in session or persistent scopes and with the local notification center for changes in process scope. iOS clients should register as an observer of the notification with the local notification center for all changes.
func KCTFontManufacturerNameKey ¶
func KCTFontManufacturerNameKey() uintptr
@defined kCTFontManufacturerNameKey @abstract The name specifier for the manufacturer name.
func KCTFontMatrixAttribute ¶
func KCTFontMatrixAttribute() uintptr
@defined kCTFontMatrixAttribute @abstract The font transformation matrix. @discussion This key is used to specify the font transformation matrix when creating a font. The default value is CGAffineTransformIdentity. The value for this key is a CFDataRef containing a CGAffineTransform, of which only the a, b, c, and d fields are used.
func KCTFontNameAttribute ¶
func KCTFontNameAttribute() uintptr
@defined kCTFontNameAttribute @abstract The PostScript name. @discussion This is the key for retrieving the PostScript name from the font descriptor. When matching, this is treated more generically: the system first tries to find fonts with this PostScript name. If none is found, the system tries to find fonts with this family name, and, finally, if still nothing, tries to find fonts with this display name. The value associated with this key is a CFStringRef. If unspecified, defaults to "Helvetica", if unavailable falls back to global font cascade list.
func KCTFontOpenTypeFeatureTag ¶
func KCTFontOpenTypeFeatureTag() uintptr
@defined kCTFontOpenTypeFeatureTag @abstract Key to get the OpenType feature tag. @discussion This key can be used with a font feature dictionary to get the tag as a CFStringRef.
func KCTFontOpenTypeFeatureValue ¶
func KCTFontOpenTypeFeatureValue() uintptr
@defined kCTFontOpenTypeFeatureValue @abstract Key to get the OpenType feature value. @discussion This key can be used with a font feature dictionary to get the value as a CFNumberRef.
func KCTFontOpticalSizeAttribute ¶
func KCTFontOpticalSizeAttribute() uintptr
@defined kCTFontOpticalSizeAttribute @abstract The point size at which this font is intended to be used. @discussion The value is a CFNumber used to activate size-specific (not linearly scaled) metrics. Starting with macOS 10.14 and iOS 12.0, the CFString "auto" can be used instead to request an optical size matching the point size. Starting with macOS 10.15 and iOS 13.0, the CFString "none" can be used instead to explicitly disable automatic optical sizing enabled by the font.
func KCTFontOrientationAttribute ¶
func KCTFontOrientationAttribute() uintptr
@defined kCTFontOrientationAttribute @abstract The orientation attribute. @discussion This key is used to specify a particular orientation for the glyphs of the font. The value associated with this key is a int as a CFNumberRef. If you want to receive vertical metrics from a font for vertical rendering, specify kCTFontVerticalOrientation. If unspecified, the font will use its native orientation.
func KCTFontPostScriptCIDNameKey ¶
func KCTFontPostScriptCIDNameKey() uintptr
@defined kCTFontPostScriptCIDNameKey @abstract The name specifier for the PostScript CID name.
func KCTFontPostScriptNameKey ¶
func KCTFontPostScriptNameKey() uintptr
@defined kCTFontPostScriptNameKey @abstract The name specifier for the PostScript name.
func KCTFontPriorityAttribute ¶
func KCTFontPriorityAttribute() uintptr
@defined kCTFontPriorityAttribute @abstract The font descriptors priority when resolving duplicates and sorting match results. @discussion This key is used to obtain or specify the font priority. The value returned is a CFNumberRef containing an integer value as defined below. The higher the value, the higher the priority of the font. Only registered fonts will have a priority. Unregistered font descriptors will return NULL.
func KCTFontRegistrationScopeAttribute ¶
func KCTFontRegistrationScopeAttribute() uintptr
@defined kCTFontRegistrationScopeAttribute @abstract Specifies the font descriptor's registration scope. @discussion The attribute is used to specify or obtain the font registration scope. The value returned is a CFNumberRef containing one of the CTFontManagerScope enumerated values. A value of NULL can be returned for font descriptors that are not registered.
func KCTFontSampleTextNameKey ¶
func KCTFontSampleTextNameKey() uintptr
@defined kCTFontSampleTextNameKey @abstract The name specifier for the sample text name string.
func KCTFontSizeAttribute ¶
func KCTFontSizeAttribute() uintptr
@defined kCTFontSizeAttribute @abstract The font point size. @discussion This key is used to obtain or specify the font point size. Creating a font with this unspecified will default to a point size of 12.0. The value for this key is represented as a CFNumberRef.
func KCTFontSlantTrait ¶
func KCTFontSlantTrait() uintptr
@defined kCTFontSlantTrait @abstract Dictionary key to access the slant trait value. @discussion Use this key to access the normalized slant angle from the font traits dictionary. The value returned is a CFNumberRef representing a float value between -1.0 and 1.0 for normalized slant angle. The value or 0.0 corresponds to 0 degree clockwise rotation from the vertical and 1.0 corresponds to 30 degrees clockwise rotation.
func KCTFontStyleNameAttribute ¶
func KCTFontStyleNameAttribute() uintptr
@defined kCTFontStyleNameAttribute @abstract The style name. @discussion This is the key for accessing the style name of the font. This name represents the designer's description of the font's style. The value associated with this key is a CFStringRef.
func KCTFontStyleNameKey ¶
func KCTFontStyleNameKey() uintptr
@defined kCTFontStyleNameKey @abstract The name specifier for the style name.
func KCTFontSubFamilyNameKey ¶
func KCTFontSubFamilyNameKey() uintptr
@defined kCTFontSubFamilyNameKey @abstract The name specifier for the subfamily name.
func KCTFontSymbolicTrait ¶
func KCTFontSymbolicTrait() uintptr
@defined kCTFontSymbolicTrait @abstract Dictionary key to access the symbolic traits value. @discussion Use this key to access the symbolic traits value from the font traits dictionary. The value is returned as a CFNumberRef.
func KCTFontTrademarkNameKey ¶
func KCTFontTrademarkNameKey() uintptr
@defined kCTFontTrademarkNameKey @abstract The name specifier for the trademark name.
func KCTFontTraitsAttribute ¶
func KCTFontTraitsAttribute() uintptr
@defined kCTFontTraitsAttribute @abstract The font traits dictionary. @discussion This is the key for accessing the dictionary of font traits for stylistic information. See CTFontTraits.h for the list of font traits. The value associated with this key is a CFDictionaryRef.
func KCTFontURLAttribute ¶
func KCTFontURLAttribute() uintptr
@defined kCTFontURLAttribute @abstract The font URL. @discussion This is the key for accessing the font URL from the font descriptor. The value associated with this key is a CFURLRef.
func KCTFontUniqueNameKey ¶
func KCTFontUniqueNameKey() uintptr
@defined kCTFontUniqueNameKey @abstract The name specifier for the unique name. @discussion Note that this name is often not unique and should not be assumed to be truly unique.
func KCTFontVariationAttribute ¶
func KCTFontVariationAttribute() uintptr
@defined kCTFontVariationAttribute @abstract The font variation dictionary. @discussion This key is used to obtain the font variation instance as a CFDictionaryRef. If specified in a font descriptor, fonts with the specified axes will be primary match candidates, if no such fonts exist, this attribute will be ignored.
func KCTFontVariationAxesAttribute ¶
func KCTFontVariationAxesAttribute() uintptr
@defined kCTFontVariationAxesAttribute @discussion An array of variation axis dictionaries or null if the font does not support variations. Each variation axis dictionary contains the five kCTFontVariationAxis-prefixed keys. Unlike the result of CTFontCopyVariationAxes(), kCTFontVariationAxisNameKey values for this attribute are not localized. Before macOS 13.0 and iOS 16.0 this attribute is not accurate and CTFontCopyVariationAxes() should be used instead. @seealso CTFontCopyVariationAxes
func KCTFontVariationAxisDefaultValueKey ¶
func KCTFontVariationAxisDefaultValueKey() uintptr
@defined kCTFontVariationAxisDefaultValueKey @abstract Key to get the variation axis default value. @discussion This key is used with a variation axis dictionary to get the default axis value as a CFNumberRef.
func KCTFontVariationAxisHiddenKey ¶
func KCTFontVariationAxisHiddenKey() uintptr
@defined kCTFontVariationAxisHiddenKey @abstract Key to get the hidden axis flag. @discussion This key contains a CFBoolean value that is true when the font designer recommends the axis not be exposed directly to end users in application interfaces.
func KCTFontVariationAxisIdentifierKey ¶
func KCTFontVariationAxisIdentifierKey() uintptr
@defined kCTFontVariationAxisIdentifierKey @abstract Key to get the variation axis identifier. @discussion This key is used with a variation axis dictionary to get the axis identifier value as a CFNumberRef.
func KCTFontVariationAxisMaximumValueKey ¶
func KCTFontVariationAxisMaximumValueKey() uintptr
@defined kCTFontVariationAxisMaximumValueKey @abstract Key to get the variation axis maximum value. @discussion This key is used with a variation axis dictionary to get the maximum axis value as a CFNumberRef.
func KCTFontVariationAxisMinimumValueKey ¶
func KCTFontVariationAxisMinimumValueKey() uintptr
@defined kCTFontVariationAxisMinimumValueKey @abstract Key to get the variation axis minimum value. @discussion This key is used with a variation axis dictionary to get the minimum axis value as a CFNumberRef.
func KCTFontVariationAxisNameKey ¶
func KCTFontVariationAxisNameKey() uintptr
@defined kCTFontVariationAxisNameKey @abstract Key to get the variation axis name string. @discussion This key is used with a variation axis dictionary to get the variation axis name.
func KCTFontVendorURLNameKey ¶
func KCTFontVendorURLNameKey() uintptr
@defined kCTFontVendorURLNameKey @abstract The name specifier for the vendor url name.
func KCTFontVersionNameKey ¶
func KCTFontVersionNameKey() uintptr
@defined kCTFontVersionNameKey @abstract The name specifier for the version name.
func KCTFontWeightTrait ¶
func KCTFontWeightTrait() uintptr
@defined kCTFontWeightTrait @abstract Dictionary key to access the weight trait value. @discussion Use this key to access the normalized weight trait from the font traits dictionary. The value returned is a CFNumberRef representing a float value between -1.0 and 1.0 for normalized weight. The value of 0.0 corresponds to the regular or medium font weight.
func KCTFontWidthTrait ¶
func KCTFontWidthTrait() uintptr
@defined kCTFontWidthTrait @abstract Dictionary key to access the width (condense/expand) trait value. @discussion Use this key to access the normalized proportion trait from the font traits dictionary. This value corresponds to the design width of the font, which is usually related to the overall width of glyphs in a font relative to their height (and the 'wdth' axis for variable fonts). The value is a CFNumberRef representing a float between -1.0 and 1.0. The value of 0.0 corresponds to a normal width, negative values correspond to a condensed width, and positive values correspond to an expanded width.
func KCTForegroundColorAttributeName ¶
func KCTForegroundColorAttributeName() uintptr
func KCTForegroundColorFromContextAttributeName ¶
func KCTForegroundColorFromContextAttributeName() uintptr
func KCTFrameClippingPathsAttributeName ¶
func KCTFrameClippingPathsAttributeName() uintptr
func KCTFramePathClippingPathAttributeName ¶
func KCTFramePathClippingPathAttributeName() uintptr
func KCTFramePathFillRuleAttributeName ¶
func KCTFramePathFillRuleAttributeName() uintptr
func KCTFramePathWidthAttributeName ¶
func KCTFramePathWidthAttributeName() uintptr
func KCTFrameProgressionAttributeName ¶
func KCTFrameProgressionAttributeName() uintptr
func KCTGlyphInfoAttributeName ¶
func KCTGlyphInfoAttributeName() uintptr
func KCTHorizontalInVerticalFormsAttributeName ¶
func KCTHorizontalInVerticalFormsAttributeName() uintptr
func KCTKernAttributeName ¶
func KCTKernAttributeName() uintptr
func KCTLanguageAttributeName ¶
func KCTLanguageAttributeName() uintptr
func KCTLigatureAttributeName ¶
func KCTLigatureAttributeName() uintptr
func KCTParagraphStyleAttributeName ¶
func KCTParagraphStyleAttributeName() uintptr
func KCTRubyAnnotationAttributeName ¶
func KCTRubyAnnotationAttributeName() uintptr
func KCTRubyAnnotationScaleToFitAttributeName ¶
func KCTRubyAnnotationScaleToFitAttributeName() uintptr
func KCTRubyAnnotationSizeFactorAttributeName ¶
func KCTRubyAnnotationSizeFactorAttributeName() uintptr
func KCTRunDelegateAttributeName ¶
func KCTRunDelegateAttributeName() uintptr
func KCTStrokeColorAttributeName ¶
func KCTStrokeColorAttributeName() uintptr
func KCTStrokeWidthAttributeName ¶
func KCTStrokeWidthAttributeName() uintptr
func KCTSuperscriptAttributeName ¶
func KCTSuperscriptAttributeName() uintptr
func KCTTabColumnTerminatorsAttributeName ¶
func KCTTabColumnTerminatorsAttributeName() uintptr
func KCTTrackingAttributeName ¶
func KCTTrackingAttributeName() uintptr
func KCTTypesetterOptionAllowUnboundedLayout ¶
func KCTTypesetterOptionAllowUnboundedLayout() uintptr
func KCTTypesetterOptionDisableBidiProcessing ¶
func KCTTypesetterOptionDisableBidiProcessing() uintptr
func KCTTypesetterOptionForcedEmbeddingLevel ¶
func KCTTypesetterOptionForcedEmbeddingLevel() uintptr
func KCTUnderlineColorAttributeName ¶
func KCTUnderlineColorAttributeName() uintptr
func KCTUnderlineStyleAttributeName ¶
func KCTUnderlineStyleAttributeName() uintptr
func KCTVerticalFormsAttributeName ¶
func KCTVerticalFormsAttributeName() uintptr
func KCTWritingDirectionAttributeName ¶
func KCTWritingDirectionAttributeName() uintptr
func SymbolAvailable ¶
SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.
Types ¶
type ALMXHeader ¶
type Acl_entry_id_t ¶
type Acl_entry_id_t int64
const ( ACL_FIRST_ENTRY Acl_entry_id_t = 0 ACL_NEXT_ENTRY Acl_entry_id_t = -1 ACL_LAST_ENTRY Acl_entry_id_t = -2 )
func (Acl_entry_id_t) String ¶
func (e Acl_entry_id_t) String() string
type Acl_flag_t ¶
type Acl_flag_t int64
const ( ACL_FLAG_DEFER_INHERIT Acl_flag_t = 1 ACL_FLAG_NO_INHERIT Acl_flag_t = 131072 ACL_ENTRY_INHERITED Acl_flag_t = 16 ACL_ENTRY_FILE_INHERIT Acl_flag_t = 32 ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64 ACL_ENTRY_LIMIT_INHERIT Acl_flag_t = 128 ACL_ENTRY_ONLY_INHERIT Acl_flag_t = 256 )
func (Acl_flag_t) String ¶
func (e Acl_flag_t) String() string
type Acl_perm_t ¶
type Acl_perm_t int64
const ( ACL_READ_DATA Acl_perm_t = 2 ACL_LIST_DIRECTORY Acl_perm_t = 2 ACL_WRITE_DATA Acl_perm_t = 4 ACL_ADD_FILE Acl_perm_t = 4 ACL_EXECUTE Acl_perm_t = 8 ACL_SEARCH Acl_perm_t = 8 ACL_DELETE Acl_perm_t = 16 ACL_APPEND_DATA Acl_perm_t = 32 ACL_ADD_SUBDIRECTORY Acl_perm_t = 32 ACL_DELETE_CHILD Acl_perm_t = 64 ACL_READ_ATTRIBUTES Acl_perm_t = 128 ACL_WRITE_ATTRIBUTES Acl_perm_t = 256 ACL_READ_EXTATTRIBUTES Acl_perm_t = 512 ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024 ACL_READ_SECURITY Acl_perm_t = 2048 ACL_WRITE_SECURITY Acl_perm_t = 4096 ACL_CHANGE_OWNER Acl_perm_t = 8192 ACL_SYNCHRONIZE Acl_perm_t = 1048576 )
func (Acl_perm_t) String ¶
func (e Acl_perm_t) String() string
type Acl_type_t ¶
type Acl_type_t int64
const ( ACL_TYPE_EXTENDED Acl_type_t = 256 ACL_TYPE_ACCESS Acl_type_t = 0 ACL_TYPE_DEFAULT Acl_type_t = 1 ACL_TYPE_AFS Acl_type_t = 2 ACL_TYPE_CODA Acl_type_t = 3 ACL_TYPE_NTFS Acl_type_t = 4 ACL_TYPE_NWFS Acl_type_t = 5 )
func (Acl_type_t) String ¶
func (e Acl_type_t) String() string
type AnchorPoint ¶
type AnchorPointTable ¶
type AnchorPointTable struct {
NPoints uint
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 CTAdaptiveImageProviding ¶
type CTAdaptiveImageProviding interface {
ImageForProposedSizeScaleFactorImageOffsetImageSize(proposedSize corefoundation.CGSize, scaleFactor float64, outImageOffset *corefoundation.CGPoint, outImageSize *corefoundation.CGSize) unsafe.Pointer
}
CTAdaptiveImageProviding wraps the ObjC protocol CTAdaptiveImageProviding.
type CTCharacterCollection ¶
type CTCharacterCollection int64
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 unsafe.Pointer) CTCharacterCollection
func (CTCharacterCollection) String ¶
func (e CTCharacterCollection) String() string
type CTFontCollection ¶
type CTFontCollection struct{}
C struct: __CTFontCollection CTFontCollection is an opaque type.
type CTFontCollectionCopyOptions ¶
type CTFontCollectionCopyOptions int64
Option bits for use with CTFontCollectionCopyFontAttribute(s).
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
type CTFontDescriptor ¶
type CTFontDescriptor struct{}
C struct: __CTFontDescriptor CTFontDescriptor is an opaque type.
type CTFontDescriptorMatchingState ¶
type CTFontDescriptorMatchingState int64
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
type CTFontFormat ¶
type CTFontFormat int64
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
type CTFontManagerAutoActivationSetting ¶
type CTFontManagerAutoActivationSetting int64
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 unsafe.Pointer) CTFontManagerAutoActivationSetting
func (CTFontManagerAutoActivationSetting) String ¶
func (e CTFontManagerAutoActivationSetting) String() string
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
type CTFontManagerScope ¶
type CTFontManagerScope int64
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 unsafe.Pointer) CTFontManagerScope
func (CTFontManagerScope) String ¶
func (e CTFontManagerScope) String() string
type CTFontOptions ¶
type CTFontOptions int64
Options for font creation and descriptor matching.
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
type CTFontOrientation ¶
type CTFontOrientation int64
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
type CTFontStylisticClass ¶
type CTFontStylisticClass int64
The stylistic class values of the font.
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
type CTFontSymbolicTraits ¶
type CTFontSymbolicTraits int64
The symbolic representation of stylistic font attributes.
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 unsafe.Pointer) CTFontSymbolicTraits
func (CTFontSymbolicTraits) String ¶
func (e CTFontSymbolicTraits) String() string
type CTFontTableOptions ¶
type CTFontTableOptions int64
Constants that describe font table options.
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
type CTFontUIFontType ¶
type CTFontUIFontType int64
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 unsafe.Pointer) CTFontUIFontType
func (CTFontUIFontType) String ¶
func (e CTFontUIFontType) String() string
type CTFramePathFillRule ¶
type CTFramePathFillRule int64
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
type CTFrameProgression ¶
type CTFrameProgression int64
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
type CTFramesetter ¶
type CTFramesetter struct{}
C struct: __CTFramesetter CTFramesetter is an opaque type.
type CTLineBoundsOptions ¶
type CTLineBoundsOptions int64
Options for getting the bounds of a line of text.
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
type CTLineBreakMode ¶
type CTLineBreakMode int64
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
type CTLineTruncationType ¶
type CTLineTruncationType int64
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
type CTParagraphStyle ¶
type CTParagraphStyle struct{}
C struct: __CTParagraphStyle CTParagraphStyle is an opaque type.
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 int64
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
type CTRubyAlignment ¶
type CTRubyAlignment int64
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 unsafe.Pointer) CTRubyAlignment
func (CTRubyAlignment) String ¶
func (e CTRubyAlignment) String() string
type CTRubyAnnotation ¶
type CTRubyAnnotation struct{}
C struct: __CTRubyAnnotation CTRubyAnnotation is an opaque type.
type CTRubyOverhang ¶
type CTRubyOverhang int64
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 unsafe.Pointer) CTRubyOverhang
func (CTRubyOverhang) String ¶
func (e CTRubyOverhang) String() string
type CTRubyPosition ¶
type CTRubyPosition int64
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
type CTRunDelegate ¶
type CTRunDelegate struct{}
C struct: __CTRunDelegate CTRunDelegate is an opaque type.
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 CTRunStatus ¶
type CTRunStatus int64
A bitfield that represents the disposition of the run.
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 unsafe.Pointer) CTRunStatus
func (CTRunStatus) String ¶
func (e CTRunStatus) String() string
type CTTextAlignment ¶
type CTTextAlignment int64
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 unsafe.Pointer) CTTextAlignment
func (CTTextAlignment) String ¶
func (e CTTextAlignment) String() string
type CTTypesetter ¶
type CTTypesetter struct{}
C struct: __CTTypesetter CTTypesetter is an opaque type.
type CTUnderlineStyle ¶
type CTUnderlineStyle int64
Underline style specifiers.
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
type CTUnderlineStyleModifiers ¶
type CTUnderlineStyleModifiers int64
Underline style modifiers.
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
type CTWritingDirection ¶
type CTWritingDirection int64
These constants specify the writing direction.
const ( KCTWritingDirectionNatural CTWritingDirection = -1 KCTWritingDirectionLeftToRight CTWritingDirection = 0 KCTWritingDirectionRightToLeft CTWritingDirection = 1 )
func (CTWritingDirection) String ¶
func (e CTWritingDirection) String() string
type Dispatch_autorelease_frequency_t ¶
type Dispatch_autorelease_frequency_t uint64
const ( DISPATCH_AUTORELEASE_FREQUENCY_INHERIT Dispatch_autorelease_frequency_t = 0 DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1 DISPATCH_AUTORELEASE_FREQUENCY_NEVER Dispatch_autorelease_frequency_t = 2 )
func (Dispatch_autorelease_frequency_t) String ¶
func (e Dispatch_autorelease_frequency_t) String() string
type Dispatch_block_flags_t ¶
type Dispatch_block_flags_t uint64
const ( DISPATCH_BLOCK_BARRIER Dispatch_block_flags_t = 1 DISPATCH_BLOCK_DETACHED Dispatch_block_flags_t = 2 DISPATCH_BLOCK_ASSIGN_CURRENT Dispatch_block_flags_t = 4 DISPATCH_BLOCK_NO_QOS_CLASS Dispatch_block_flags_t = 8 DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16 DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32 )
func (Dispatch_block_flags_t) String ¶
func (e Dispatch_block_flags_t) String() string
type Filesec_property_t ¶
type Filesec_property_t int64
const ( FILESEC_OWNER Filesec_property_t = 1 FILESEC_GROUP Filesec_property_t = 2 FILESEC_UUID Filesec_property_t = 3 FILESEC_MODE Filesec_property_t = 4 FILESEC_ACL Filesec_property_t = 5 FILESEC_GRPUUID Filesec_property_t = 6 FILESEC_ACL_RAW Filesec_property_t = 100 FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101 )
func (Filesec_property_t) String ¶
func (e Filesec_property_t) String() string
type FontVariation ¶
type Ipc_info_object_type_t ¶
type Ipc_info_object_type_t int64
const ( IPC_OTYPE_NONE Ipc_info_object_type_t = 0 IPC_OTYPE_THREAD_CONTROL Ipc_info_object_type_t = 1 IPC_OTYPE_TASK_CONTROL Ipc_info_object_type_t = 2 IPC_OTYPE_HOST Ipc_info_object_type_t = 3 IPC_OTYPE_HOST_PRIV Ipc_info_object_type_t = 4 IPC_OTYPE_PROCESSOR Ipc_info_object_type_t = 5 IPC_OTYPE_PROCESSOR_SET Ipc_info_object_type_t = 6 IPC_OTYPE_PROCESSOR_SET_NAME Ipc_info_object_type_t = 7 IPC_OTYPE_TIMER Ipc_info_object_type_t = 8 IPC_OTYPE_PORT_SUBST_ONCE Ipc_info_object_type_t = 9 IPC_OTYPE_MIG Ipc_info_object_type_t = 10 IPC_OTYPE_MEMORY_OBJECT Ipc_info_object_type_t = 11 IPC_OTYPE_XMM_PAGER Ipc_info_object_type_t = 12 IPC_OTYPE_XMM_KERNEL Ipc_info_object_type_t = 13 IPC_OTYPE_XMM_REPLY Ipc_info_object_type_t = 14 IPC_OTYPE_UND_REPLY Ipc_info_object_type_t = 15 IPC_OTYPE_HOST_NOTIFY Ipc_info_object_type_t = 16 IPC_OTYPE_HOST_SECURITY Ipc_info_object_type_t = 17 IPC_OTYPE_LEDGER Ipc_info_object_type_t = 18 IPC_OTYPE_MAIN_DEVICE Ipc_info_object_type_t = 19 IPC_OTYPE_TASK_NAME Ipc_info_object_type_t = 20 IPC_OTYPE_SUBSYSTEM Ipc_info_object_type_t = 21 IPC_OTYPE_IO_DONE_QUEUE Ipc_info_object_type_t = 22 IPC_OTYPE_SEMAPHORE Ipc_info_object_type_t = 23 IPC_OTYPE_LOCK_SET Ipc_info_object_type_t = 24 IPC_OTYPE_CLOCK Ipc_info_object_type_t = 25 IPC_OTYPE_CLOCK_CTRL Ipc_info_object_type_t = 26 IPC_OTYPE_IOKIT_IDENT Ipc_info_object_type_t = 27 IPC_OTYPE_NAMED_ENTRY Ipc_info_object_type_t = 28 IPC_OTYPE_IOKIT_CONNECT Ipc_info_object_type_t = 29 IPC_OTYPE_IOKIT_OBJECT Ipc_info_object_type_t = 30 IPC_OTYPE_UPL Ipc_info_object_type_t = 31 IPC_OTYPE_MEM_OBJ_CONTROL Ipc_info_object_type_t = 32 IPC_OTYPE_AU_SESSIONPORT Ipc_info_object_type_t = 33 IPC_OTYPE_FILEPORT Ipc_info_object_type_t = 34 IPC_OTYPE_LABELH Ipc_info_object_type_t = 35 IPC_OTYPE_TASK_RESUME Ipc_info_object_type_t = 36 IPC_OTYPE_VOUCHER Ipc_info_object_type_t = 37 IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38 IPC_OTYPE_WORK_INTERVAL Ipc_info_object_type_t = 39 IPC_OTYPE_UX_HANDLER Ipc_info_object_type_t = 40 IPC_OTYPE_UEXT_OBJECT Ipc_info_object_type_t = 41 IPC_OTYPE_ARCADE_REG Ipc_info_object_type_t = 42 IPC_OTYPE_EVENTLINK Ipc_info_object_type_t = 43 IPC_OTYPE_TASK_INSPECT Ipc_info_object_type_t = 44 IPC_OTYPE_TASK_READ Ipc_info_object_type_t = 45 IPC_OTYPE_THREAD_INSPECT Ipc_info_object_type_t = 46 IPC_OTYPE_THREAD_READ Ipc_info_object_type_t = 47 IPC_OTYPE_SUID_CRED Ipc_info_object_type_t = 48 IPC_OTYPE_HYPERVISOR Ipc_info_object_type_t = 49 IPC_OTYPE_TASK_ID_TOKEN Ipc_info_object_type_t = 50 IPC_OTYPE_TASK_FATAL Ipc_info_object_type_t = 51 IPC_OTYPE_KCDATA Ipc_info_object_type_t = 52 IPC_OTYPE_EXCLAVES_RESOURCE Ipc_info_object_type_t = 53 IPC_OTYPE_THREAD_RESUME Ipc_info_object_type_t = 54 IPC_OTYPE_UNKNOWN Ipc_info_object_type_t = 4294967295 )
func (Ipc_info_object_type_t) String ¶
func (e Ipc_info_object_type_t) String() string
type JustDirectionTable ¶
type JustDirectionTable struct {
JustClass uint16
WidthDeltaClusters uint16
Postcomp uint16
Lookup SFNTLookupTable
}
type JustPCAction ¶
type JustPCAction struct {
ActionCount uint
Actions [1]JustPCActionSubrecord
}
type JustPCActionSubrecord ¶
type JustPCDuctilityAction ¶
type JustPostcompTable ¶
type JustPostcompTable struct {
LookupTable SFNTLookupTable
}
type JustWidthDeltaEntry ¶
type JustWidthDeltaGroup ¶
type JustWidthDeltaGroup struct {
Count uint
Entries [1]JustWidthDeltaEntry
}
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 KernTableHeader ¶
type KernVersion0Header ¶
type KerxAnchorPointAction ¶
type KerxControlPointAction ¶
type KerxControlPointEntry ¶
type KerxControlPointHeader ¶
type KerxCoordinateAction ¶
type KerxIndexArrayHeader ¶
type KerxKerningPair ¶
type KerxOrderedListEntry ¶
type KerxOrderedListEntry struct {
Pair KerxKerningPair
Value int16
}
type KerxOrderedListHeader ¶
type KerxSimpleArrayHeader ¶
type KerxStateEntry ¶
type KerxStateHeader ¶
type KerxSubtableHeader ¶
type KerxTableHeader ¶
type LcarCaretClassEntry ¶
type LcarCaretTable ¶
type LcarCaretTable struct {
Version int
Format uint16
Lookup SFNTLookupTable
}
type LtagStringRange ¶
type LtagTable ¶
type LtagTable struct {
Version uint
Flags uint
NumTags uint
TagRange [1]LtagStringRange
}
type Mach_vm_range_flags_t ¶
type Mach_vm_range_flags_t int64
const (
MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)
func (Mach_vm_range_flags_t) String ¶
func (e Mach_vm_range_flags_t) String() string
type Mach_vm_range_flavor_t ¶
type Mach_vm_range_flavor_t int64
const ( MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0 MACH_VM_RANGE_FLAVOR_V1 Mach_vm_range_flavor_t = 1 )
func (Mach_vm_range_flavor_t) String ¶
func (e Mach_vm_range_flavor_t) String() string
type Mach_vm_range_tag_t ¶
type Mach_vm_range_tag_t int64
const ( MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0 MACH_VM_RANGE_DATA Mach_vm_range_tag_t = 1 MACH_VM_RANGE_FIXED Mach_vm_range_tag_t = 2 )
func (Mach_vm_range_tag_t) String ¶
func (e Mach_vm_range_tag_t) String() string
type MortChain ¶
type MortChain struct {
DefaultFlags uint
Length uint
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 MortSubtable ¶
type MortSwashSubtable ¶
type MortSwashSubtable struct {
Lookup SFNTLookupTable
}
type MorxChain ¶
type MorxChain struct {
DefaultFlags uint
Length uint
NFeatures uint
NSubtables uint
FeatureEntries [1]MortFeatureEntry
}
type MorxContextualSubtable ¶
type MorxInsertionSubtable ¶
type MorxLigatureSubtable ¶
type MorxRearrangementSubtable ¶
type MorxRearrangementSubtable struct {
Header STXHeader
}
type MorxSubtable ¶
type Mpo_flags_t ¶
type Mpo_flags_t int64
const ( MPO_PORT Mpo_flags_t = 0 MPO_SERVICE_PORT Mpo_flags_t = 1024 MPO_CONNECTION_PORT Mpo_flags_t = 2048 MPO_REPLY_PORT Mpo_flags_t = 4096 MPO_WEAK_REPLY_PORT Mpo_flags_t = 16384 MPO_NOTIFICATION_PORT Mpo_flags_t = 17408 MPO_EXCEPTION_PORT Mpo_flags_t = 32768 MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536 )
func (Mpo_flags_t) String ¶
func (e Mpo_flags_t) String() string
type NXMouseButton ¶
type NXMouseButton int64
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
type OpbdSideValues ¶
type OpbdTable ¶
type OpbdTable struct {
Version int
Format uint16
LookupTable SFNTLookupTable
}
type Os_clockid_t ¶
type Os_clockid_t int64
const (
OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)
func (Os_clockid_t) String ¶
func (e Os_clockid_t) String() string
type PropLookupSegment ¶
type PropLookupSingle ¶
type PropTable ¶
type PropTable struct {
Version int
Format uint16
DefaultProps uint16
Lookup SFNTLookupTable
}
type Ptrauth_key ¶
type Ptrauth_key int64
const ( Ptrauth_key_none Ptrauth_key = -1 Ptrauth_key_asia Ptrauth_key = 0 Ptrauth_key_asib Ptrauth_key = 1 Ptrauth_key_asda Ptrauth_key = 2 Ptrauth_key_asdb Ptrauth_key = 3 Ptrauth_key_process_independent_code Ptrauth_key = 0 Ptrauth_key_process_dependent_code Ptrauth_key = 1 Ptrauth_key_process_independent_data Ptrauth_key = 2 Ptrauth_key_process_dependent_data Ptrauth_key = 3 Ptrauth_key_return_address Ptrauth_key = 1 Ptrauth_key_frame_pointer Ptrauth_key = 3 Ptrauth_key_function_pointer Ptrauth_key = 0 Ptrauth_key_block_function Ptrauth_key = 0 Ptrauth_key_cxx_vtable_pointer Ptrauth_key = 2 Ptrauth_key_method_list_pointer Ptrauth_key = 2 Ptrauth_key_objc_isa_pointer Ptrauth_key = 2 Ptrauth_key_objc_super_pointer Ptrauth_key = 2 Ptrauth_key_objc_sel_pointer Ptrauth_key = 3 Ptrauth_key_objc_class_ro_pointer Ptrauth_key = 2 Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2 Ptrauth_key_init_fini_pointer Ptrauth_key = 0 )
func (Ptrauth_key) String ¶
func (e Ptrauth_key) String() string
type Qos_class_t ¶
type Qos_class_t uint32
const ( QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33 QOS_CLASS_USER_INITIATED Qos_class_t = 25 QOS_CLASS_DEFAULT Qos_class_t = 21 QOS_CLASS_UTILITY Qos_class_t = 17 QOS_CLASS_BACKGROUND Qos_class_t = 9 QOS_CLASS_UNSPECIFIED Qos_class_t = 0 )
func (Qos_class_t) String ¶
func (e Qos_class_t) String() string
type ROTAGlyphEntry
deprecated
type ROTAHeader
deprecated
type SFNTLookupArrayHeader ¶
type SFNTLookupArrayHeader struct {
LookupValues [1]uint16
}
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 SFNTLookupVectorHeader ¶
type STClassTable ¶
type STEntryOne ¶
type STEntryTwo ¶
type STEntryZero ¶
type STXEntryOne ¶
type STXEntryTwo ¶
type STXEntryZero ¶
type SfntCMapEncoding ¶
C struct: sfntCMapEncoding
type SfntCMapExtendedSubHeader ¶
C struct: sfntCMapExtendedSubHeader
type SfntCMapHeader ¶
type SfntCMapHeader struct {
Version uint16
NumTables uint16
Encoding [1]SfntCMapEncoding
}
C struct: sfntCMapHeader
type SfntCMapSubHeader ¶
C struct: sfntCMapSubHeader
type SfntDescriptorHeader ¶
type SfntDescriptorHeader struct {
Version int
DescriptorCount int
Descriptor [1]SfntFontDescriptor
}
C struct: sfntDescriptorHeader
type SfntDirectory ¶
type SfntDirectory struct {
Format uint
NumOffsets uint16
SearchRange uint16
EntrySelector uint16
RangeShift uint16
Table [1]SfntDirectoryEntry
}
C struct: sfntDirectory
type SfntDirectoryEntry ¶
C struct: sfntDirectoryEntry
type SfntFeatureHeader ¶
type SfntFeatureHeader struct {
Version int
FeatureNameCount uint16
FeatureSetCount uint16
Reserved int
Names [1]SfntFeatureName
Settings [1]SfntFontFeatureSetting
Runs [1]SfntFontRunFeature
}
C struct: sfntFeatureHeader
type SfntFeatureName ¶
type SfntFeatureName struct {
FeatureType uint16
SettingCount uint16
OffsetToSettings int
FeatureFlags uint16
NameID int16
}
C struct: sfntFeatureName
type SfntFontDescriptor ¶
C struct: sfntFontDescriptor
type SfntFontFeatureSetting ¶
C struct: sfntFontFeatureSetting
type SfntFontRunFeature ¶
C struct: sfntFontRunFeature
type SfntInstance ¶
C struct: sfntInstance
type SfntNameHeader ¶
type SfntNameHeader struct {
Format uint16
Count uint16
StringOffset uint16
Rec [1]SfntNameRecord
}
C struct: sfntNameHeader
type SfntNameRecord ¶
type SfntNameRecord struct {
PlatformID uint16
ScriptID uint16
LanguageID uint16
NameID uint16
Length uint16
Offset uint16
}
C struct: sfntNameRecord
type SfntVariationAxis ¶
type SfntVariationAxis struct {
AxisTag uint
MinValue int
DefaultValue int
MaxValue int
Flags int16
NameID int16
}
C struct: sfntVariationAxis
type SfntVariationHeader ¶
type SfntVariationHeader struct {
Version int
OffsetToData uint16
CountSizePairs uint16
AxisCount uint16
AxisSize uint16
InstanceCount uint16
InstanceSize uint16
Axis [1]SfntVariationAxis
Instance [1]SfntInstance
}
C struct: sfntVariationHeader
type TrakTableData ¶
type TrakTableData struct {
NTracks uint16
NSizes uint16
SizeTableOffset uint
TrakTable [1]TrakTableEntry
}
type TrakTableEntry ¶
type Virtual_memory_guard_exception_code_t ¶
type Virtual_memory_guard_exception_code_t int64
const ( KGUARD_EXC_DEALLOC_GAP Virtual_memory_guard_exception_code_t = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE Virtual_memory_guard_exception_code_t = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE Virtual_memory_guard_exception_code_t = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE Virtual_memory_guard_exception_code_t = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE Virtual_memory_guard_exception_code_t = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE Virtual_memory_guard_exception_code_t = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE Virtual_memory_guard_exception_code_t = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION Virtual_memory_guard_exception_code_t = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY Virtual_memory_guard_exception_code_t = 13 KGUARD_EXC_SEC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 99 KGUARD_EXC_SEC_COPY_DENIED Virtual_memory_guard_exception_code_t = 100 KGUARD_EXC_SEC_SHARING_DENIED Virtual_memory_guard_exception_code_t = 101 KGUARD_EXC_MTE_SYNC_FAULT Virtual_memory_guard_exception_code_t = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204 )
func (Virtual_memory_guard_exception_code_t) String ¶
func (e Virtual_memory_guard_exception_code_t) String() string