gtk c语言字体设置,GTK+控件背景颜色,字体颜色大小调整

SPAN文档:

The root tag of a marked-up document is

, but pango_parse_markup()

allows you to

omit this tag, so you will most likely never need to use it. The

most

general markup tag is , then

there are some convenience

tags. has the following

attributes:

attributes

font_desc

A font description string, such as "Sans Italic 12".

See pango_font_description_from_string()

for a description of the format of the string representation . Note

that any other span attributes will override this description. So if you

have "Sans Italic" and also a style="normal" attribute, you will get

Sans normal, not italic.

font_family

A font family name

face

Synonym for font_family

size

Font size in 1024ths of a point, or one of the absolute

sizes 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large',

'xx-large', or one of the relative sizes 'smaller' or

'larger'.

If you want to specify a absolute size, it's usually easier

to take advantage of the ability to specify a partial

font description using 'font_desc'; you can use

font_desc='12.5' rather than

size='12800'.

style

One of 'normal', 'oblique', 'italic'

weight

One of 'ultralight', 'light', 'normal', 'bold', 'ultrabold',

'heavy',

or a numeric weight

variant

'normal' or 'smallcaps'

stretch

One of 'ultracondensed', 'extracondensed', 'condensed',

'semicondensed', 'normal', 'semiexpanded', 'expanded',

'extraexpanded', 'ultraexpanded'

foreground

An RGB color specification such as '#00FF00' or a color name such

as 'red'

background

An RGB color specification such as '#00FF00' or a color name such

as 'red'

underline

One of 'none', 'single', 'double', 'low', 'error'

underline_color

The color of underlines; an RGB color specification such as

'#00FF00'

or a color name such as 'red'

rise

Vertical displacement, in 10000ths of an em. Can be negative

for subscript, positive for superscript.

strikethrough

'true' or 'false' whether to strike through the text

strikethrough_color

The color of strikethrough lines; an RGB color specification such

as

'#00FF00' or a color name such as 'red'

fallback

'true' or 'false' whether to enable fallback. If disabled, then

characters

will only be used from the closest matching font on the system. No

fallback

will be done to other fonts on the system that might contain the

characters

in the text. Fallback is enabled by default. Most applications

should not

disable fallback.

lang

A language code, indicating the text language

letter_spacing

Inter-letter spacing in 1024ths of a point.

gravity

One of 'south', 'east', 'north', 'west', 'auto'.

gravity_hint

One of 'natural', 'strong', 'line'.

The following convenience tags are provided:

Convenience tags

b

Bold

big

Makes font relatively larger, equivalent to

size="larger">

i

Italic

s

Strikethrough

sub

Subscript

sup

Superscript

small

Makes font relatively smaller, equivalent to

size="smaller">

tt

Monospace font

u

Underline

GTK+控件背景颜色,字体颜色大小调整

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值