handle create_font_indirect(const logical_font* font)

This function creates a logical font with the specified characteristics.


const logical_font* font

A pointer to an instance of the logical font class defining the characteristics of the font.



The handle of the logical font or null if an error occurred.


This function creates a logical font with the characteristics specified by an instance of the class logical_font. When the font is selected, the font mapper attempts to match the logical font with a physical font. If an exact match cannot be found, the mapper provides an alternative font whose characteristics match as many of the requested characteristics as possible.

When the font is no longer required, the function delete_object may be used to destroy it.