[Picture Q] LODOP font settings method

Font setting method:
a whole set (for text items), after printing initialization, increase call this function before printing items
LODOP.SET_PRINT_STYLE ( "FontSize", 11) ;
Second, a single print items (for text items) to set the font, for example:
LODOP.SET_PRINT_STYLEA (. 3, "the FontName", "official script");
to set the font of three content items official script.
LODOP.SET_PRINT_STYLEA (3, "FontSize", 15);
set of content items 3 to 15 Font Font
set the font of a print item alone, reference may be 3 samples.
One, two, all content is the font set, only for text entry works, hypertext does not work. css style See Sample 10.
Also: when hypertext output font, set the font size at this time is best used pt this unit, do not use px, otherwise it will affect by print resolution. px is a relative unit of measurement displayed on the screen 12:00 and 12:00 on the printer may not be as large. However, almost all with 9pt big, 9pt on the printer or perhaps 11px 12px. Printing is best not to use htm statement, use add_print_text statement. Do not set the browser engine will be set as the default font, the default font size is 9 font.

 

Font setting method picture: 

Guess you like

Origin www.cnblogs.com/huaxie/p/11840694.html