News for hackers. Stuff that matters.
Re:The 'Ahem' Font by CharlesW on Wednesday June 08, 2022 @02:46PM (#31672181)
Can someone smarter than me explain what this is for? (I've read https://github.com/Hydrock/AhemFont and https://hydrock.github.io/AhemFont/.)
Re:The 'Ahem' Font by re on Wednesday June 08, 2022 @03:06PM (#31672422)
For writing portable, reliable tests for web browsers.

> The web-platform-tests project is a cross-browser test suite for the Web-platform stack. Writing tests in a way that allows them to be run in all browsers gives browser projects confidence that they are shipping software which is compatible with other implementations, and that later implementations will be compatible with their implementations.

https://web-platform-tests.org/

> Tests should be as cross-platform as reasonably possible, working across different devices, screen resolutions, paper sizes, etc. ... Fonts cannot be relied on to be either installed or to have specific metrics. As such, in most cases when a known font is needed, Ahem should be used and loaded as a web font. In other cases, @font-face should be used.

https://web-platform-tests.org/writing-tests/general-guideli...

Re:The 'Ahem' Font by pdpi on Wednesday June 08, 2022 @09:32PM (#31676635)
Production-quality fonts usually have huge amounts of tweaks and fine-tuning to make them look good. Characters won’t be exactly the same height, they’ll be a bit above or below their nominal position, that sort of thing. Those tweaks also make those fonts completely useless as reference for developers.

What this font gives you is a bunch of boxes and lines with well-defined, predictable sizes and positions, which makes it very easy to validate that your text rendering/layout is at least somewhat sane.

Re:The 'Ahem' Font by bombcar on Wednesday June 08, 2022 @02:50PM (#31672228)
I suppose you use it when you're adjusting things to "look right" and need to know how big the character space actually is (then you replace it with the real font you want to use)?