Tags: | bindings, fonts |
Authors: | Slava Pestov |
Platforms: | macos |
Class | Superclass | Slots |
line | disposable | font string line metrics image loc dim render-loc render-dim render-ext |
CTLineRef |
cached-lines |
Word | Stack 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 ) |
Word | Stack effect |
line? | ( object -- ? ) |
Vocabulary | Summary |
core-text.fonts |