gpt4 book ai didi

java - 查找特定字体的所有适用字体大小

转载 作者:行者123 更新时间:2023-12-02 06:21:16 25 4
gpt4 key购买 nike

我正在寻找一种方法来查找特定字体的所有适用字体大小的列表。过去我曾经了解到,由于字体的基本主体尺寸,并非每种字体在某些尺寸下看起来都很棒。

所以我想知道是否有某种库可以以这种思维方式计算所有适用的尺寸

Font font = new Font("Times New Roman");
List<Integer> fontSizes = font.getApplicableSizes();

我不确定它是否存在,但如果存在,我想知道,我用谷歌搜索了一段时间,但我可能没有搜索正确的关键字

最佳答案

任何整数值都是 TTF font 的有效大小。 .

History

The system was developed and eventually released as TrueType with the launch of Mac OS System 7 in May 1991. The initial Truetype outline fonts, four-weight families of Times Roman, Helvetica, Courier, and the Pi font replicated the original PostScript fonts of the Apple LaserWriter. Apple also replaced some of their bitmap fonts used by the graphical user-interface of previous Macintosh System versions (including Geneva, Monaco and New York) with scalable Truetype outline-fonts. For compatibility with older systems, Apple shipped these fonts, a TrueType Extension and a TrueType-aware version of Font/DA Mover for System Software 6. For compatibility with the Laserwriter II, Apple developed fonts like ITC Bookman and ITC Chancery in Truetype format.

All of these fonts could now scale to all sizes on screen and printer,..

关于java - 查找特定字体的所有适用字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20989974/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com