Why are we stuck with a finite number of font sizes in LaTeX? Modern fonts are fully vector-based and scalable - why can't LaTeX do this? Or maybe it can, and I just don't know how.
Also see the question Continuously-sizable brackets?
|
Why are we stuck with a finite number of font sizes in LaTeX? Modern fonts are fully vector-based and scalable - why can't LaTeX do this? Or maybe it can, and I just don't know how. Also see the question Continuously-sizable brackets? |
||||
|
As egreg has already commented, it is possible to load vector fonts at arbitrary sizes. Using a small set of sizes has a lot more to do with good design than any technical limitations. In general, most documents do not need lots of different sizes, but instead need a small set of sizes with a clear relationship. The size ratios commonly used by LaTeX have been established by printing tradition over very many years. Of course, if you are doing the design part of laying out a text then you may need to set up these 'logical' font sizes to map to arbitrary real sizes. Another point is that most fonts have different design characteristics at different sizes. A classic case is the very smallest font sizes, which are often subtly different to their larger cousins. So scaling a 6 pt font to 12 pt may not give exactly the same result as using a native 12 pt version. So it's normally best to be conservative with scaling: 12 pt scaled to 12.5 pt is probably fine, but 6 pt scaled to 30 pt may well not be. |
|||
|
|
|
You can scale the font with an factor using the small
It basically only executed You can also scale small amounts of text using the macros given by A little bit related is the |
||||
|
|
|
Another way of doing this, depending on what you want to do, is to use tikz (as always). You just need the "transform shape" option to nodes containing the text.
|
||||
|
|
|
As @egreg suggested, you can use lmodern, a close simulacrum of Computer Modern. However, if you don't want to switch over to lmodern, you can also |
|||
|
|
\usepackage{lmodern}...\fontsize{8.785pt}{11pt}\selectfont– egreg Jun 28 '11 at 17:00fixcmpackage for CM fonts. – Leo Liu Jun 29 '11 at 5:41