1 /****************************************************************************
5 * The FreeType PostScript name services (specification).
7 * Copyright (C) 2003-2020 by
8 * David Turner, Robert Wilhelm, and Werner Lemberg.
10 * This file is part of the FreeType project, and may only be used,
11 * modified, and distributed under the terms of the FreeType project
12 * license, LICENSE.TXT. By continuing to use, modify, or distribute
13 * this file you indicate that you have read the license and
14 * understand and accept it fully.
22 #include <freetype/internal/ftserv.h>
28 * A trivial service used to retrieve the PostScript name of a given font
29 * when available. The `get_name' field should never be `NULL`.
31 * The corresponding function can return `NULL` to indicate that the
32 * PostScript name is not available.
34 * The name is owned by the face and will be destroyed with it.
37 #define FT_SERVICE_ID_POSTSCRIPT_FONT_NAME "postscript-font-name"
41 (*FT_PsName_GetFunc)( FT_Face face );
44 FT_DEFINE_SERVICE( PsFontName )
46 FT_PsName_GetFunc get_ps_font_name;
50 #define FT_DEFINE_SERVICE_PSFONTNAMEREC( class_, get_ps_font_name_ ) \
51 static const FT_Service_PsFontNameRec class_ = \
62 #endif /* SVPOSTNM_H_ */