Paste: change to windows.uniscribe to expand tabs
Author: | hsuh |
Mode: | factor |
Date: | Wed, 9 Dec 2009 22:02:09 |
Plain Text |
: <pTabDef> ( -- struct )
SCRIPT_TABDEF <struct>
1 >>cTabStops
4 <int> malloc-byte-array &free >>pTabStops ;
: make-script-string ( dc string -- script-string )
dup selection? [ string>> ] when
[ utf16n encode ]
[ length ] bi
dup 1.5 * 16 + >integer
-1
SSA_GLYPHS SSA_TAB bitor
0
f
f
f
<pTabDef>
f
f <void*>
[
[ ScriptStringAnalyse ] keep
[ ole32-error ] [ |ScriptStringFree *void* ] bi*
] with-destructors ;
Author: | hsuh |
Mode: | factor |
Date: | Wed, 9 Dec 2009 22:15:16 |
Plain Text |
: <pTabDef> ( -- struct )
[
SCRIPT_TABDEF <struct>
1 >>cTabStops
4 <int> malloc-byte-array &free >>pTabStops
] with-destructors ;
: make-script-string ( dc string -- script-string )
dup selection? [ string>> ] when
[ utf16n encode ]
[ length ] bi
dup 1.5 * 16 + >integer
-1
SSA_GLYPHS SSA_TAB bitor
0
f
f
f
<pTabDef>
f
f <void*>
[ ScriptStringAnalyse ] keep
[ ole32-error ] [ |ScriptStringFree *void* ] bi* ;
Author: | hsuh |
Mode: | factor |
Date: | Wed, 9 Dec 2009 22:19:36 |
Plain Text |
: <pTabDef> ( -- struct )
SCRIPT_TABDEF <struct>
1 >>cTabStops
4 <int> malloc-byte-array &free >>pTabStops ;
: make-script-string ( dc string -- script-string )
[
dup selection? [ string>> ] when
[ utf16n encode ]
[ length ] bi
dup 1.5 * 16 + >integer
-1
SSA_GLYPHS SSA_TAB bitor
0
f
f
f
<pTabDef>
f
f <void*>
[ ScriptStringAnalyse ] keep
[ ole32-error ] [ |ScriptStringFree *void* ] bi*
] with-destructors ;
New Annotation