Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Image
Image.Fonts

Method Image.Fonts.open_font()


Method open_font

Font open_font(string fontname, int size, int flags, int|void force)

Description

Find a suitable font in the directories specified with set_font_dirs .

flags is a bitwise or of 0 or more of ITALIC , BOLD and NO_FAKE .

fontname is the human-readable name of the font.

If force is true, a font is always returned (defaulting to arial or the pike builtin font), even if no suitable font is found.