mdbFontSize(5)

πŸ“¦
version 1.8.4 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– mdbFontSize πŸ’–

ok so bestie, this is mdbFontSize(5), a page from The m17n Library manual, and it's literally all about font size. yes. that's the whole vibe. sit with me 🫢


✨ NAME ✨

mdbFontSize β€” Font Size πŸ’…


🌸 DESCRIPTION 🌸

ok so picture this: sometimes a font is out here lying about how big it actually is. incorrect information about its size, no cap. it's typically the case with a hacked TrueType font, and the drama is that when you use a font like that next to other fonts, your text layout comes out busted. 😭

to fix that mess, the m17n library goes and grabs font-size adjustment info from the m17n database, using the tags <font, resize>. and the data it loads? it's a plist, formatted like this πŸ‘‡

FONT-SIZE-ADJUSTMENT ::= PER-FONT *

PER-FONT ::= '(' FONT-SPEC ADJUST-RATIO ')'

FONT-SPEC ::=
    '(' [ FOUNDRY FAMILY
          [ WEIGHT [ STYLE [ STRETCH [ ADSTYLE ]]]]]
    REGISTRY ')'

ADJUST-RATIO ::= INTEGER

so FONT-SPEC is there to specify the properties of a font, periodt. FOUNDRY through REGISTRY are symbols that correspond to the #Mfoundry through #Mregistry properties of a font β€” and if you wanna know what each of those properties actually means, go read m17nFont. it's giving required reading bestie πŸ“š

then we have ADJUST-RATIO, which is an integer that says by percentage how much the font-size needs to be adjusted. so like, for example, this here PER-FONT:

((devanagari-cdac) 150)

tells the font handler of the m17n library to open a font that's 1.5 times bigger than the requested size when it opens a font whose registry is devanagari-cdac. iconic behavior honestly πŸ”₯


Copyright (C) 2001 Information-technology Promotion Agency (IPA)

Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.


and that's the whole page, bestie!! 🌈 this one's from Version 1.8.4, dated Mon Sep 25 2023, and it lives its life as mdbFontSize(5). mwah, go read a font spec, ily πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from