core-text vocabulary - Factor Documentation (original) (raw)

Summary
Binding for macOS Core Text library

Metadata

Tags: bindings, fonts
Authors: Slava Pestov
Platforms: macos

Words

Tuple classes

Class Superclass Slots
line disposable font string line metrics image loc dim render-loc render-dim render-ext

Symbol words

CTLineRef
cached-lines

Ordinary words

Word Stack effect
( string open-font color -- line )
( font string -- line )
CGRect-translate-x ( CGRect x -- CGRect' )
CTLineCreateWithAttributedString ( string -- CTLineRef )
CTLineDraw ( line context -- )
CTLineGetImageBounds ( line context -- CGRect )
CTLineGetOffsetForStringIndex ( line charIndex secondaryOffset -- CGFloat )
CTLineGetStringIndexForPosition ( line position -- CFIndex )
CTLineGetTypographicBounds ( line ascent descent leading -- double )
cached-line ( font string -- line )
compute-font-metrics ( metrics font -- metrics )
compute-line-metrics ( open-font line -- line-metrics )
fill-background ( context font dim -- )
fill-selection-background ( context loc dim line string -- )
kCTFontAttributeName ( -- value )
kCTForegroundColorAttributeName ( -- value )
kCTGlyphInfoAttributeName ( -- value )
kCTKernAttributeName ( -- value )
kCTLigatureAttributeName ( -- value )
kCTParagraphStyleAttributeName ( -- value )
kCTUnderlineStyleAttributeName ( -- value )
kCTVerticalFormsAttributeName ( -- value )
line-loc ( metrics loc dim -- loc )
line-rect ( line -- rect )
line>image ( line -- image )
load-2x? ( -- ? )
make-attributes ( open-font color -- hashtable )
metrics>dim ( bounds -- dim )
render ( line -- line image )
selection-rect ( dim line selection -- rect )
set-kCTFontAttributeName ( obj -- )
set-kCTForegroundColorAttributeName ( obj -- )
set-kCTGlyphInfoAttributeName ( obj -- )
set-kCTKernAttributeName ( obj -- )
set-kCTLigatureAttributeName ( obj -- )
set-kCTParagraphStyleAttributeName ( obj -- )
set-kCTUnderlineStyleAttributeName ( obj -- )
set-kCTVerticalFormsAttributeName ( obj -- )
set-text-position ( context loc -- )
store-typographic-bounds ( metrics width ascent descent leading -- metrics )
typographic-bounds ( line -- width ascent descent leading )

Class predicate words

Word Stack effect
line? ( object -- ? )

Files

resource:basis/core-text/core-text.factor
resource:basis/core-text/core-text-tests.factor

Metadata files

resource:basis/core-text/authors.txt
resource:basis/core-text/platforms.txt
resource:basis/core-text/summary.txt
resource:basis/core-text/tags.txt

Children from resource:basis

Vocabulary Summary
core-text.fonts