LaTeXML...on::Font(3)

๐Ÿ“ฆ version 0.8.8, in nixos 26.05, nixpkgs unstable

๐Ÿ’– NAME ๐Ÿ’–

"LaTeXML::Common::Font" โ€” representation of fonts.

okay so bestie, this is the LaTeXML...on::Font(3) page under User Contributed Perl Documentation (yes the header truncates the title, but the main character is LaTeXML::Common::Font), and itโ€™s literally all about fonts in LaTeXML ๐Ÿ’…โœจ


๐ŸŒธ DESCRIPTION ๐ŸŒธ

"LaTeXML::Common::Font" represents fonts in LaTeXML. It extends LaTeXML::Common::Object.

This module defines Font objects. ngl, the author says theyโ€™re not completely happy with the arrangement โ€” or maybe just the use of it โ€” so theyโ€™re not going to document extensively at this point ๐Ÿ™ˆ

The attributes are:

  • family โ€” serif, sansserif, typewriter, caligraphic, fraktur, script
  • series โ€” medium, bold
  • shape โ€” upright, italic, slanted, smallcaps
  • size โ€” TINY, Tiny, tiny, SMALL, Small, small, normal, Normal, large, Large, LARGE, huge, Huge, HUGE, gigantic, Gigantic, GIGANTIC
  • color โ€” any named color, default is Black

They are usually merged against the current font, attempting to mimic the sometimes counter-intuitive way that TeX does it โ€” particularly for math ๐Ÿงฎโœจ


๐ŸŽ€ Methods ๐ŸŽ€

๐Ÿ’ซ $font->specialize($string);

In math mode, LaTeXML::Common::Font supports computing a font reflecting how the specific $string would be printed when $font is active. This (attempts to) handle the curious ways that lower case greek often doesnโ€™t get a different font. In particular, it recognizes the following classes of strings: single latin letter, single uppercase greek character, single lowercase greek character, digits, and others. ๐Ÿฆ‹


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Bruce Miller <bruce.miller@nist.gov>


Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.


later bestie โ€” this page is from perl v5.42.3, dated 2024-02-26 ๐Ÿ’–๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from