Unicode Rebol 3 R3-GUI字段是否支持非ascii字符串输入?

Unicode Rebol 3 R3-GUI字段是否支持非ascii字符串输入?,unicode,cjk,rebol,rebol3,r3-gui,Unicode,Cjk,Rebol,Rebol3,R3 Gui,sometext字段现在只接受ASCII字符作为输入: REBOL [ title: "test" ] load-gui view [ sometext: field ] 是r3Gui的一位绘制其他语言的作者提供的示例。您可以使用这样的中文字体创建一个新的字段类型,它现在将显示字符 stylize [ ch-field: field [ about: "Chinese font field" dr

sometext
字段现在只接受ASCII字符作为输入:

REBOL [
    title: "test"
]

load-gui

view [
   sometext: field
]

是r3Gui的一位绘制其他语言的作者提供的示例。

您可以使用这样的中文字体创建一个新的字段类型,它现在将显示字符

stylize [
        ch-field: field [
                about: "Chinese font field"
                draw-text: [
                   pen off
                   fill-pen 0.0.0
                   anti-alias off
                   text 0x0 none aliased [font make object! [
                           name: "SimSun"
                           style: 'bold
                           size: 20
                           color: 0.0.0
                           offset: 0x0
                           space: 0x0
                           shadow: none
                       ] para make object! [
                           origin: 0x0
                           margin: 0x0
                           indent: 0x0
                           tabs: 40
                           wrap?: false
                           scroll: 0x0
                           align: 'left
                           valign: 'top
                       ] anti-alias off
                       caret make object! [
                           caret: [[""] ""]
                           highlight-start: [[""] ""]
                           highlight-end: [[""] ""]
                       ] ""
                   ]
               ]
        ]
]

view [
    ch-field "這是一份非常間單的說明書…"
]
由于剪贴板出现问题,您无法将中文文本粘贴到字段中。希望这将很快得到解决

stylize [
        ch-field: field [
                about: "Chinese font field"
                draw-text: [
                   pen off
                   fill-pen 0.0.0
                   anti-alias off
                   text 0x0 none aliased [font make object! [
                           name: "SimSun"
                           style: 'bold
                           size: 20
                           color: 0.0.0
                           offset: 0x0
                           space: 0x0
                           shadow: none
                       ] para make object! [
                           origin: 0x0
                           margin: 0x0
                           indent: 0x0
                           tabs: 40
                           wrap?: false
                           scroll: 0x0
                           align: 'left
                           valign: 'top
                       ] anti-alias off
                       caret make object! [
                           caret: [[""] ""]
                           highlight-start: [[""] ""]
                           highlight-end: [[""] ""]
                       ] ""
                   ]
               ]
        ]
]

view [
    ch-field "這是一份非常間單的說明書…"
]