core-text vocabulary
Factor handbook ยป Vocabulary index


Summary
Binding for Mac OS X Core Text library

Metadata
Tags:bindings, fonts
Authors:Slava Pestov
Platforms:macosx


Words

Tuple classes
ClassSuperclassSlots
line disposablefont string line metrics image loc dim render-loc render-dim render-ext


Symbol words
CTLineRef
cached-lines


Ordinary words
WordStack effect
<CTLine>( string open-font color -- line )
<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
WordStack effect
line?( object -- ? )


Files


Metadata files


Children from resource:basis
VocabularySummary
core-text.fonts