跳轉到內容

Rebol 程式設計/set-font

來自華夏公益教科書,開放的書籍,為開放的世界
SET-FONT aface 'word val 

(未記錄)

SET-FONT 是一個函式值。

  • aface -- (型別:任何)
  • word -- (型別:任何)
  • val -- (型別:任何)

原始碼

[編輯 | 編輯原始碼]
set-font: func [aface 'word val][
    if none? aface/font [aface/font: vid-face/font] 
    if not flag-face? aface font [aface/font: make aface/font [] flag-face aface font] 
    either word = 'style [
        either none? val [aface/font/style: none] [
            if none? aface/font/style [aface/font/style: copy []] 
            if word? aface/font/style [aface/font/style: reduce [aface/font/style]] 
            aface/font/style: union aface/font/style reduce [val]
        ]
    ] [set in aface/font word val]
]
華夏公益教科書