t1tables.h: Documentation improvements.

This commit is contained in:
Werner Lemberg 2022-02-12 07:58:43 +01:00
parent c67ecb8c3a
commit 5a53e51b5c
1 changed files with 28 additions and 8 deletions

View File

@ -490,18 +490,28 @@ FT_BEGIN_HEADER
* *
* @output: * @output:
* afont_info :: * afont_info ::
* Output font info structure pointer. * A pointer to a @PS_FontInfoRec object.
* *
* @return: * @return:
* FreeType error code. 0~means success. * FreeType error code. 0~means success.
* *
* @note: * @note:
* String pointers within the @PS_FontInfoRec structure are owned by the * String pointers within the @PS_FontInfoRec structure are owned by the
* face and don't need to be freed by the caller. Missing entries in * face and don't need to be freed by the caller. Missing entries in the
* the font's FontInfo dictionary are represented by `NULL` pointers. * font's FontInfo dictionary are represented by `NULL` pointers.
* *
* If the font's format is not PostScript-based, this function will * The following font formats support this feature: 'Type~1', 'Type~42',
* return the `FT_Err_Invalid_Argument` error code. * 'CFF', 'CID~Type~1'. For other font formats this function returns the
* `FT_Err_Invalid_Argument` error code.
*
* @example:
* ```
* PS_FontInfoRec font_info;
*
*
* error = FT_Get_PS_Font_Info( face, &font_info );
* ...
* ```
* *
*/ */
FT_EXPORT( FT_Error ) FT_EXPORT( FT_Error )
@ -524,7 +534,7 @@ FT_BEGIN_HEADER
* *
* @output: * @output:
* afont_private :: * afont_private ::
* Output private dictionary structure pointer. * A pointer to a @PS_PrivateRec object.
* *
* @return: * @return:
* FreeType error code. 0~means success. * FreeType error code. 0~means success.
@ -533,8 +543,18 @@ FT_BEGIN_HEADER
* The string pointers within the @PS_PrivateRec structure are owned by * The string pointers within the @PS_PrivateRec structure are owned by
* the face and don't need to be freed by the caller. * the face and don't need to be freed by the caller.
* *
* If the font's format is not PostScript-based, this function returns * Only the 'Type~1' font format supports this feature. For other font
* the `FT_Err_Invalid_Argument` error code. * formats this function returns the `FT_Err_Invalid_Argument` error
* code.
*
* @example:
* ```
* PS_PrivateRec font_private;
*
*
* error = FT_Get_PS_Font_Private( face, &font_private );
* ...
* ```
* *
*/ */
FT_EXPORT( FT_Error ) FT_EXPORT( FT_Error )