CT

package
v0.0.0-...-5fbe47b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2016 License: MIT, MIT Imports: 5 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FontRef

type FontRef CF.TypeRef

The FontRef type is an untyped reference to a Core Text font object.

https://developer.apple.com/library/mac/documentation/Carbon/Reference/CTFontRef/#//apple_ref/c/tdef/CTFontRef

func FontCreateCopyWithSymbolicTraits

func FontCreateCopyWithSymbolicTraits(font FontRef, size CG.Float, transform *CG.AffineTransform, traits FontSymbolicTraits, mask FontSymbolicTraits) FontRef

FontCreateCopyWithSymbolicTraits makes a copy of an existing font object but allows the program to change the affine transformation or the style attributes of the font on the copy.

https://developer.apple.com/library/mac/documentation/Carbon/Reference/CTFontRef/#//apple_ref/c/func/CTFontCreateCopyWithAttributes

func FontCreateWithName

func FontCreateWithName(name CF.StringRef, size CG.Float, transform *CG.AffineTransform) FontRef

FontCreateWithName creates a new font object from a name, size and optional affine transformation.

https://developer.apple.com/library/mac/documentation/Carbon/Reference/CTFontRef/#//apple_ref/c/func/CTFontCreateWithName

func (FontRef) CopyDisplayName

func (f FontRef) CopyDisplayName() CF.StringRef

FontCopyDisplayName returns a copy of the font's display name.

https://developer.apple.com/library/mac/documentation/Carbon/Reference/CTFontRef/#//apple_ref/c/func/CTFontCopyDisplayName

func (FontRef) CopyFamilyName

func (f FontRef) CopyFamilyName() CF.StringRef

FontCopyFamilyName returns a copy of the font's family name.

https://developer.apple.com/library/mac/documentation/Carbon/Reference/CTFontRef/#//apple_ref/c/func/CTFontCopyFamilyName

func (FontRef) CopyFullName

func (f FontRef) CopyFullName() CF.StringRef

FontCopyFullName returns a copy of the font's full name.

https://developer.apple.com/library/mac/documentation/Carbon/Reference/CTFontRef/#//apple_ref/c/func/CTFontCopyFullName

func (FontRef) CopyPostScriptName

func (f FontRef) CopyPostScriptName() CF.StringRef

FontCopyPostScriptName returns a copy of the font's post-script name.

https://developer.apple.com/library/mac/documentation/Carbon/Reference/CTFontRef/#//apple_ref/c/func/CTFontCopyPostScriptName

func (FontRef) GetAscent

func (f FontRef) GetAscent() CG.Float

FontGetAscent returns the ascent value of the font passed as argument.

https://developer.apple.com/library/mac/documentation/Carbon/Reference/CTFontRef/#//apple_ref/c/func/CTFontGetAscent

func (FontRef) GetDescent

func (f FontRef) GetDescent() CG.Float

FontGetDescent returns the descent value of the font passed as argument.

https://developer.apple.com/library/mac/documentation/Carbon/Reference/CTFontRef/#//apple_ref/c/func/CTFontGetDescent

func (FontRef) GetLeading

func (f FontRef) GetLeading() CG.Float

FontGetLeading returns the leading value of the font passed as argument.

https://developer.apple.com/library/mac/documentation/Carbon/Reference/CTFontRef/#//apple_ref/c/func/CTFontGetLeading

func (FontRef) GlyphAdvance

func (f FontRef) GlyphAdvance(char rune) CG.Float

FontGlyphAdvance returns the 'advance' of the glyph representing the rune given as second argument.

https://developer.apple.com/library/mac/documentation/TextFonts/Conceptual/CocoaTextArchitecture/TypoFeatures/TextSystemFeatures.html

func (FontRef) GlyphBounds

func (f FontRef) GlyphBounds(char rune) (advance CG.Float, bounds CG.Rect)

FontGlyphBounds returns the 'advance' and 'bounds' of the glyph representing the rune given as second argument.

https://developer.apple.com/library/mac/documentation/TextFonts/Conceptual/CocoaTextArchitecture/TypoFeatures/TextSystemFeatures.html

func (FontRef) GlyphDraw

func (f FontRef) GlyphDraw(char rune, origin CG.Point, alpha *image.Alpha) bool

FontGlyphDraw draws the font glyph representing the rune given as second argument into the alpha image at the specified position. The function returns true if the rune could be drawn, false otherwise, which measn the font had no representation of the rune.

func (FontRef) Kern

func (f FontRef) Kern(char0 rune, char1 rune) CG.Float

FontKern returns the ideal spacing to leave between the two characters passed as argument.

https://developer.apple.com/library/mac/documentation/TextFonts/Conceptual/CocoaTextArchitecture/TypoFeatures/TextSystemFeatures.html

func (FontRef) Release

func (f FontRef) Release()

Release decreases the reference counter of the Core Text font passed as argument.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFTypeRef/#//apple_ref/c/func/CFRelease

func (FontRef) Retain

func (f FontRef) Retain()

Retain increases the refence counter of the Core Text font passed as argument.

https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFTypeRef/#//apple_ref/c/func/CFRetain

func (FontRef) String

func (f FontRef) String() string

String satisfies the fmt.Stringer interface.

type FontSymbolicTraits

type FontSymbolicTraits int

FontSymbolicTraits is an enumeration representing the style attributes of a font.

https://developer.apple.com/library/mac/documentation/Carbon/Reference/CTFontDescriptorRef/#//apple_ref/c/tdef/CTFontSymbolicTraits

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL