formZ SDK | 5.0 API Reference | System | Text Fonts and Styles

# fz_font_find_by_name

Description

Gets the font id from a font family name and font face name. If the specified font is not loaded in formZ (or the ), the font id will be set to FZ_FONT_NONE and a FZ_FONT_NOT_FOUND error will be returned.

Plugin Prototype

fzrt_error_td fz_font_find_by_name(

fzrt_int | windex,
char * | font_family_name,
char * | font_face_name,
fz_font_id_td * | font_id )

Parameters

windex [Input]

project window index, use -1 to access the font table

font_family_name [Input]

font family name

font_face_name [Input]

font face name

font_id [Result]

font id of matching font

Returns

Error codes

Availability

5.5.0.0

Example Files

util_objt_unistr_text.fsl

Function Set

fz_text_fset

Defined in

fz_text_api.h