m17n-dump(1)
πΈ m17n-dump β dump text image β¨
okay bestie, gather round, because m17n-dump from the m17n Library is about to eat π
it takes your text and turns it into a straight-up PNG glow-up. no cap.
β¨ SYNOPSIS β¨
m17n-dump [ OPTION ... ] [ FILE ]
π DESCRIPTION π
So the whole vibe is: you dump a text as a PNG image file. that's it. that's the job. iconic.
The PNG file gets written to a file created in the current directory, and its name is BASE.png β where BASE is the basename of FILE. π
If FILE is omitted? no stress. text is read from standard input, and the image gets dumped into the file output.png.
The following OPTIONs are available. yes, all of them. we're not skipping a single one, bestie. π«Ά
-s SIZEβSIZEis the font size in point. the default font size is 12 point. tiny but cute.-d DPIβDPIis the resolution in dots per inch. the default resolution is 300 dpi. crisp β¨-p PAPERβPAPERis the paper size, and your options are:a4,a4r,a5,a5r,b5,b5r,letter,WxH, orW. forWxH,WandHare the width and height in millimeter. forW,Wis the width in millimeter. if this option is specified,PAPERlimits the image size. and ifFILEis too large for a single page, multiple files with the namesBASE.01.png,BASE.02.png, etc. are created. multipage slay π¦-m MARGINβMARGINis the horizontal and vertical margin in millimeter. the default margin is 20 mm. it is ignored whenPAPERis not specified. lowkey a package deal, they come together π-c POSβPOSis the character position of cursor to draw. by default, cursor is not drawn. π-xβFILEis assumed to be an XML file generated by the serialize facility of the m17n library, andFILEis deserialized before an image is created. fancy π-wβ each line is broken at word boundary.-f FILTERβFILTERis a string containing a shell command line. if this option is specified, the PNG image is not written into a file but is given toFILTERas standard input. ifFILTERcontains%s, that part is replaced by a basename ofFILE. so, the default behaviour is the same as specifyingcat > %s.pngasFILTER.
and if FILTER is just -, the PNG image is written to stdout. periodt. π
-aβ enable anti-alias drawing. smooth like butter π§β¨--family FAMILYβ prefer a font whose family name isFAMILY.--language LANGβ prefer a font specified for the languageLANG.LANGmust be a 2-letter code of ISO 630 (e.g.enfor English). iykyk π-fg FOREGROUNDβ specify the text color. the supported color names are those of HTML 4.0 and#RRGGBBnotation.-bg BACKGROUNDβ specify the background color. the supported color names are the same asFOREGROUND, except that iftransparentis specified, make the background transparent. see-through moment π«§-rβ specify that the orientation of the text is right-to-left.-qβ quiet mode. don't print any messages. π€«--versionβ print the version number.-h,--helpβ print this message.
ngl bestie, some of these options interact in ways that matter β like-mdoing literally nothing unless you also passed-p, and-fcompletely changing where your PNG ends up (file? pipe? stdout?). read twice, dump once. π
π 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 π Version 1.8.4, dated Mon Sep 25 2023 β m17n-dump(1), out. go dump something gorgeous β¨π
π¦ 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