codeface icon indicating copy to clipboard operation
codeface copied to clipboard

Generate alternative README.md for different font sizes

Open char101 opened this issue 8 years ago • 8 comments

Hi,

Since people use different font sizes in their editors, and some fonts look better in certain size, could you generate the previews for different font sizes, for example previews in 9pt would be in README-9pt.md, 10pt in README-10pt, and so on.

Thanks.

char101 avatar Dec 20 '15 05:12 char101

There is already a monofont playground But a version of this with all Codeface's fonts would be great.

tomByrer avatar Dec 20 '15 06:12 tomByrer

Thanks for this suggestion Charles. As Tom mentioned, we developed an ACE editor based web application as part of our Hack typeface project that permits comparison of a large number of these typefaces. We tossed in a number of web fonts for faces that release them and many others show up in the menus when you install them on your system. If you click the Compare Side-by-Side button in the upper right corner, you can view two faces at the size that you define in the dropdown on the upper left corner of the screen.

font-playground

If this meets your needs, we could consider expanding this resource to include all of the typefaces in this repository.

chrissimpkins avatar Dec 20 '15 12:12 chrissimpkins

Thanks, the playground is nice. What I'm suggesting is that the screenshots in codeface are supposed to reflect how the fonts will look, but fonts do not necessarily look the same in different sizes.

For example here is M+ font in 9pt and 14pt. The 14pt screenshot is scaled so it looks thinner but in full size it is too bold in my opinion.

m 9

m 14

The screenshots in codeface are also scaled to the container element width (888px) so they do not really reflect the font size in 16pt.

char101 avatar Dec 21 '15 01:12 char101

The screenshots in codeface are also scaled to the container element width (888px) so they do not really reflect the font size in 16pt.

This is now fixed

chrissimpkins avatar Dec 23 '15 20:12 chrissimpkins

the screenshots in codeface are supposed to reflect how the fonts will look, but fonts do not necessarily look the same in different sizes

This is a great point. I would counter, however, that there are so many variables at play across displays/renderers/platforms/hinting settings that we will never truly capture this for all, or even most, users. The goal here is to provide a flavor of the included faces so that you can select a subset and explore them on your own with your own personal set of all factors that play a role in the rendering of fonts on the screen. I intentionally display them at a large font size (14) for source code editors in order to provide more glyph + spacing detail than you would see at very small font sizes. The Font Playground tool begins to address an issue like this, but even there you will not necessarily see the same font rendering that you would in some applications on the same system (the JetBrains editors that use the Java font renderer are perfect examples).

Any thoughts about a different approach?

chrissimpkins avatar Dec 23 '15 20:12 chrissimpkins

Moving to a scripted image generator approach. See #119. This may be very feasible for a range of font sizes once this tool is in place. Let me get the main gallery updated and then we can discuss this in more detail.

chrissimpkins avatar Dec 24 '15 04:12 chrissimpkins

:thumbsup: I thought the screenshots was already generated automatically since I found this file render.py on the repository. Obviously I was not going to suggest generating screenshot for different font sizes if they have to be taken manually since it is a lot of work.

char101 avatar Dec 24 '15 04:12 char101

To date, it has all been manual :)

chrissimpkins avatar Dec 24 '15 04:12 chrissimpkins