-// =======================================================================
-// function : checkFont
-// purpose :
-// =======================================================================
-static Handle(Font_SystemFont) checkFont (const Handle(Font_FTLibrary)& theFTLib,
- const Standard_CString theFontPath)
+//! Retrieve font information.
+//! @param theFonts [out] list of validated fonts
+//! @param theFTLib [in] font library
+//! @param theFontPath [in] path to the file
+//! @param theFaceId [in] face id, or -1 to load all faces within the file
+//! @return TRUE if at least one font face has been detected
+static bool checkFont (NCollection_Sequence<Handle(Font_SystemFont)>& theFonts,
+ const Handle(Font_FTLibrary)& theFTLib,
+ const TCollection_AsciiString& theFontPath,
+ FT_Long theFaceId = -1)