Rebol 3 のグラフィックスを低レベル (つまり、R3-GUI を使用していない) で理解しようとしています。描画ゴブでテキストのレンダリングに問題があります。
これは機能します:
REBOL []
par: make system/standard/para []
gob-svg: make gob! [ ;this GOB is just for SVG graphics
offset: 0x0
size: 640x480
draw: none
]
rt: bind/only [
size 18 para par text "This is a test!"
] import 'text
gob-svg/draw: bind compose/only [
box 20x20 50x50 1 text 100x100 640x480 anti-aliased rt
] import 'draw
view gob-svg
これは動作しません:
REBOL []
par: make system/standard/para []
gob-svg: make gob! [ ;this GOB is just for SVG graphics
offset: 0x0
size: 640x480
draw: none
]
gob-svg/draw: bind compose/only [
box 20x20 50x50 1 text 100x100 640x480 anti-aliased (
bind/only compose [
size 18 para (par) text "This is a test!"
] import 'text
)
] import 'draw
view gob-svg
私が間違っていることについてのアイデアはありますか?2 番目のスクリプトは、最初のスクリプトと機能的に同等であるべきではありませんか?
ありがとう。