| Tags: | bindings, fonts |
| Authors: | Slava Pestov |
| Platforms: | macos |
| Class | Superclass | Slots |
glyph-region | tuple | run range left right order max-right |
line | disposable | font string line metrics image loc dim render-loc render-dim render-ext selection-key selection-spans index-map render-index |
CTLineRef |
CTRunRef |
cached-lines |
| Word | Stack effect |
<CTLine> | ( string open-font color -- line ) |
<glyph-region> | ( run positions start count bounds order -- region ) |
<line> | ( font string -- line ) |
CGRect-translate-x | ( CGRect x -- CGRect' ) |
CTLineCreateWithAttributedString | ( string -- CTLineRef ) |
CTLineDraw | ( line context -- ) |
CTLineGetGlyphCount | ( line -- CFIndex ) |
CTLineGetGlyphRuns | ( line -- CFArrayRef ) |
CTLineGetImageBounds | ( line context -- CGRect ) |
CTLineGetOffsetForStringIndex | ( line charIndex secondaryOffset -- CGFloat ) |
CTLineGetStringIndexForPosition | ( line position -- CFIndex ) |
CTLineGetTypographicBounds | ( line ascent descent leading -- double ) |
CTRunDraw | ( run context range -- ) |
CTRunGetAttributes | ( run -- CFDictionaryRef ) |
CTRunGetGlyphCount | ( run -- CFIndex ) |
CTRunGetPositions | ( run range positions -- ) |
CTRunGetPositionsPtr | ( run -- void* ) |
CTRunGetStatus | ( run -- uint32_t ) |
CTRunGetStringRange | ( run -- CFRange ) |
CTRunGetTypographicBounds | ( run range ascent descent leading -- double ) |
add-run-regions | ( run regions -- ) |
cached-line | ( font string -- line ) |
compute-font-metrics | ( metrics font -- metrics ) |
compute-line-metrics | ( open-font line -- line-metrics ) |
draw-line-region | ( context line loc dim -- ) |
fill-background | ( context font dim -- ) |
fill-line-backgrounds | ( context line offset dim loc -- ) |
fill-selection-background | ( context loc dim line -- ) |
glyph-position-x | ( positions i -- x ) |
indices-before | ( n positions -- count ) |
kCTFontAttributeName | ( -- value ) |
kCTForegroundColorAttributeName | ( -- value ) |
kCTGlyphInfoAttributeName | ( -- value ) |
kCTKernAttributeName | ( -- value ) |
kCTLigatureAttributeName | ( -- value ) |
kCTParagraphStyleAttributeName | ( -- value ) |
kCTRunStatusHasNonIdentityMatrix | ( -- value ) |
kCTRunStatusRightToLeft | ( -- value ) |
kCTUnderlineStyleAttributeName | ( -- value ) |
kCTVerticalFormsAttributeName | ( -- value ) |
line-index-map | ( line -- map ) |
line-index>utf16 | ( n line -- index ) |
line-loc | ( metrics loc dim -- loc ) |
line-rect | ( line -- rect ) |
line-render-index | ( line -- regions ) |
line-selection-spans | ( line start end -- spans ) |
line-string | ( line -- string ) |
line>image | ( line -- image ) |
make-attributes | ( open-font color -- hashtable ) |
max-layout-dim | ( -- value ) |
merge-selection-spans | ( spans -- merged ) |
metrics>dim | ( bounds -- dim ) |
prepare-render | ( line -- ) |
render | ( line -- line image ) |
render-region | ( line offset dim -- image ) |
run-selection-span | ( ctline run start end -- span/f ) |
run-x | ( run -- x ) |
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 ) |
string-index>utf16 | ( n string -- index ) |
typographic-bounds | ( line -- width ascent descent leading ) |
utf16>line-index | ( index line -- n ) |
visible-glyph-regions | ( line left right -- regions ) |
| Word | Stack effect |
glyph-region? | ( object -- ? ) |
line? | ( object -- ? ) |
| Vocabulary | Summary |
core-text.fonts |