RTF小知识

来源:互联网 发布:手机域名投资 编辑:程序博客网 时间:2024/05/29 14:40

1、\sb0\sa120\sl-500\slmult0 (表示为:段前0磅,段后6磅,记得要乘以20。行间距,固定磅数,为25磅,记得也要乘以20)

其中:

(引用:Rich Text Format (RTF) Specification Version 1.9.1  下载地址:微软官网下载地址)

Spacing
\sbN Space before in twips (default is 0).
\saN Space after in twips (default is 0).

对应:

间距
\sbN 段前间隔(默认为0)。
\saN 段后间隔(默认为0)。

(注:sb中的b就是before,sa中的a就是after)


\slN Space between lines. If this control word is missing or if \sl0 is used, the line spacing is automatically determined by the tallest character in the line. If N is a positive value, this size is used only if it is taller than the tallest character (otherwise, the tallest character is used); if N is a negative value, the absolute value of N is used, even if it is shorter than the tallest character.

对应:

\slN 行间距。如果没有使用该控制字或者使用\sl0,则行间距将根据行间字符最高值自动取值。若N为一个正值,则该值将仅仅在该值大于行间字符最高值时才使用(否则,使用字符最高值);分N是一个负值,即使在其小于行间字符最高值时,总是使用N的绝对值。


\slmultN Line spacing multiple. Indicates that the current line spacing is a multiple of "Single" line spacing. This control word can follow only the \slN control word and works in conjunction with it.
0 "At Least" or "Exactly" line spacing
1 Multiple line spacing, relative to "Single"

对应:

\slmultN 多倍行间距。指出当前行间距是单倍行距的倍数。该控制字只能跟在\sl后,联合作用。
0 “最小”或者是“精确”的行距
1 多倍行距,相对于“单倍”行距。


2、在word中,字体大小是磅值的对应关系如下:
字号‘八号’对应磅值5
字号‘七号’对应磅值5.5
字号‘小六’对应磅值6.5
字号‘六号’对应磅值7.5
字号‘小五’对应磅值9
字号‘五号’对应磅值10.5
字号‘小四’对应磅值12
字号‘四号’对应磅值14
字号‘小三’对应磅值15
字号‘三号’对应磅值16
字号‘小二’对应磅值18
字号‘二号’对应磅值22
字号‘小一’对应磅值24
字号‘一号’对应磅值26
字号‘小初’对应磅值36
字号‘初号’对应磅值42


3、设置字体大小:

\fN Font number. N refers to an entry in the font table.
\fsN Font size in half-points (default is 24).

对应:

\fN 字号。N指字体表的一个入口。
\fsN 按半点计算的字体尺寸(默认为24)。

0 0
原创粉丝点击