enum Tessell::Kit::FontWeight

Overview

组件层字重(issue #29)。映射到 FontStack::Weight:Normal→Regular、 Bold→Bold。选脸结果(font_id)一路传到 Painter——组件层只声明 "这是粗体",不持有 face 对象。

Defined in:

tessell/kit/context.cr

Enum Members

Normal = 0
Bold = 1

Instance Method Summary

Instance Method Detail

def bold? #

Returns true if this enum value equals Bold


[View source]
def normal? #

Returns true if this enum value equals Normal


[View source]