Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

m17n-dump(1) [debian man page]

m17n-dump(1)							 The m17n Library						      m17n-dump(1)

NAME
m17n-dump - dump text image SYNOPSIS
m17n-dump [ OPTION ... ] [ FILE ] DESCRIPTION
Dump a text as PNG image file. The PNG file is written to a file created in the current directory with the name 'BASE.png' where BASE is the basename of FILE. If FILE is omitted, text is read from standard input, and the image is dumped into the file 'output.png'. The following OPTIONs are available. o -s SIZE SIZE is the font size in point. The default font size is 12 point. o -d DPI DPI is the resolution in dots per inch. The default resolution is 300 dpi. o -p PAPER PAPER is the paper size: a4, a4r, a5, a5r, b5, b5r, letter, WxH, or W. In the case of WxH, W and H are the width and height in millimeter. In the case of W, W is the width in millimeter. If this option is specified, PAPER limits the image size. If FILE is too large for a single page, multiple files with the names 'BASE.01.png', 'BASE.02.png', etc. are created. o -m MARGIN MARGIN is the horizontal and vertical margin in millimeter. The default margin is 20 mm. It is ignored when PAPER is not specified. o -c POS POS is the character position of cursor to draw. By default, cursor is not drawn. o -x FILE is assumed to be an XML file generated by the serialize facility of the m17n library, and FILE is deserialized before an image is created. o -w Each line is broken at word boundary. o -f FILTER FILTER is a string containing a shell command line. If this option is specified, the PNG image is not written info a file but is given to FILTER as standard input. If FILTER contains '%s', that part is replaced by a basename of FILE. So, the default behaviour is the same as specifying 'cat > %s.png' as FILTER. If FILTER is just '-', the PNG image is written to stdout. o -a Enable anti-alias drawing. o --family FAMILY Prefer a font whose family name is FAMILY. o --language LANG Prefer a font specified for the language LANG. LANG must be a 2-letter code of ISO 630 (e.g. 'en' for English). o -fg FOREGROUND Specify the text color. The supported color names are those of HTML 4.0 and '#RRGGBB' notation. o -bg BACKGROUND Specify the background color. The supported color names are the same as FOREGROUND, except that if 'transparent' is specified, make the background transparent. o -r Specify that the orientation of the text is right-to-left. o -q Quiet mode. Don't print any messages. o --version Print the version number. o -h, --help Print this message. 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>. Version 1.6.2 12 Jan 2011 m17n-dump(1)

Check Out this Related Man Page

mdraw_text(3m17n)						 The m17n Library						 mdraw_text(3m17n)

NAME
mdraw_text - Draw an M-text on a window. SYNOPSIS
int mdraw_text (MFrame * frame, MDrawWindow win, int x, int y, MText * mt, int from, int to) DESCRIPTION
Draw an M-text on a window. The mdraw_text() function draws the text between from and to of M-text mt on window win of frame frame at coordinate (x, y). The appearance of the text (size, style, color, etc) is specified by the value of the text property whose key is Mface. If the M-text or a part of the M-text does not have such a text property, the default face of frame is used. The font used to draw a character in the M-text is selected from the value of the fontset property of a face by the following algorithm: 1. Search the text properties given to the character for the one whose key is Mcharset; its value should be either a symbol specifying a charset or Mnil. If the value is Mnil, proceed to the next step. Otherwise, search the mapping table of the fontset for the charset. If no entry is found proceed to the next step. If an entry is found, use one of the fonts in the entry that has a glyph for the character and that matches best with the face properties. If no such font exists, proceed to the next step. 2. Get the character property 'script' of the character. If it is inherited, get the script property from the previous characters. If there is no previous character, or none of them has the script property other than inherited, proceed to the next step. Search the text properties given to the character for the one whose key is Mlanguage; its value should be either a symbol specifying a language or Mnil. Search the mapping table of the fontset for the combination of the script and language. If no entry is found, proceed to the next step. If an entry is found, use one of the fonts in the entry that has a glyph for the character and that matches best with the face properties. If no such font exists, proceed to the next step. 3. Search the fall-back table of the fontset for a font that has a glyph of the character. If such a font is found, use that font. If no font is found by the algorithm above, this function draws an empty box for the character. This function draws only the glyph foreground. To specify the background color, use mdraw_image_text() or mdraw_text_with_control(). This function is the counterpart of XDrawString(), XmbDrawString(), and XwcDrawString() functions in the X Window System. RETURN VALUE
If the operation was successful, mdraw_text() returns 0. If an error is detected, it returns -1 and assigns an error code to the external variable merror_code. ERRORS
MERROR_RANGE SEE ALSO
mdraw_image_text() 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>. Version 1.6.2 12 Jan 2011 mdraw_text(3m17n)
Man Page