mdbFontSize(5)
π 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 π
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
- debian trixie: m17n-docs 1.8.4-1
- ubuntu noble: m17n-docs 1.8.4-1
- ubuntu questing: m17n-docs 1.8.4-1
- ubuntu resolute: m17n-docs 1.8.4-1build1
- ubuntu stonking: m17n-docs 1.8.4-1build1
- Copyright (C) 2001 Information-technology Promotion Agency (IPA)
- Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms