LaTeX 自定义超大的字体

latex 自定义超大的字体

scrextend

能用,但不优雅

1
2
\usepackage{scrextend}
\changefontsizes[48pt]{32pt}

根据这里所述,上述命令的文档十分缺乏。目前试出来的行为是:

\changefontsizes[最大支持字号]{需要设置的字号}

type1cm fontsize

If you use Type 1 fonts (e.g., package mathptmx or mathpazo), you can simply use the \fontsize command with large point sizes:

1
{\fontsize{50}{60}\selectfont Foo!}

(The first parameter (50) is font size. The second parameter (60) is line spacing. An appropriate line spacing depends on the font. Something like 1.2 times font size is commonly used with CM fonts. But it does not really matter if you are typesetting just one line of text.)

anyfontsize

A quick search on CTAN turned up anyfontsize. To quote the description:

The package allows the to user select any font size (via e.g. \fontsize{…}{…}\selectfont), even those sizes that are not listed in the .fd file. If such a size is requested, LaTeX will search for and select the nearest listed size; anyfontsize will then scale the font to the size actually requested.

Similar functionality is available for the CM family (type1cm), for the EC family (type1ec), or for either computer modern encoding (fix-cm); the present package generalises the facility.


LaTeX 自定义超大的字体
https://taylorandtony.github.io/2025/03/13/latex-自定义超大的字体/
作者
TaylorAndTony
发布于
2025年3月13日
许可协议