vrshoot
diff libs/ft2static/freetype/internal/services/svpostnm.h @ 0:b2f14e535253
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 01 Feb 2014 19:58:19 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libs/ft2static/freetype/internal/services/svpostnm.h Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,79 @@ 1.4 +/***************************************************************************/ 1.5 +/* */ 1.6 +/* svpostnm.h */ 1.7 +/* */ 1.8 +/* The FreeType PostScript name services (specification). */ 1.9 +/* */ 1.10 +/* Copyright 2003, 2007 by */ 1.11 +/* David Turner, Robert Wilhelm, and Werner Lemberg. */ 1.12 +/* */ 1.13 +/* This file is part of the FreeType project, and may only be used, */ 1.14 +/* modified, and distributed under the terms of the FreeType project */ 1.15 +/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 1.16 +/* this file you indicate that you have read the license and */ 1.17 +/* understand and accept it fully. */ 1.18 +/* */ 1.19 +/***************************************************************************/ 1.20 + 1.21 + 1.22 +#ifndef __SVPOSTNM_H__ 1.23 +#define __SVPOSTNM_H__ 1.24 + 1.25 +#include FT_INTERNAL_SERVICE_H 1.26 + 1.27 + 1.28 +FT_BEGIN_HEADER 1.29 + 1.30 + /* 1.31 + * A trivial service used to retrieve the PostScript name of a given 1.32 + * font when available. The `get_name' field should never be NULL. 1.33 + * 1.34 + * The corresponding function can return NULL to indicate that the 1.35 + * PostScript name is not available. 1.36 + * 1.37 + * The name is owned by the face and will be destroyed with it. 1.38 + */ 1.39 + 1.40 +#define FT_SERVICE_ID_POSTSCRIPT_FONT_NAME "postscript-font-name" 1.41 + 1.42 + 1.43 + typedef const char* 1.44 + (*FT_PsName_GetFunc)( FT_Face face ); 1.45 + 1.46 + 1.47 + FT_DEFINE_SERVICE( PsFontName ) 1.48 + { 1.49 + FT_PsName_GetFunc get_ps_font_name; 1.50 + }; 1.51 + 1.52 +#ifndef FT_CONFIG_OPTION_PIC 1.53 + 1.54 +#define FT_DEFINE_SERVICE_PSFONTNAMEREC(class_, get_ps_font_name_) \ 1.55 + static const FT_Service_PsFontNameRec class_ = \ 1.56 + { \ 1.57 + get_ps_font_name_ \ 1.58 + }; 1.59 + 1.60 +#else /* FT_CONFIG_OPTION_PIC */ 1.61 + 1.62 +#define FT_DEFINE_SERVICE_PSFONTNAMEREC(class_, get_ps_font_name_) \ 1.63 + void \ 1.64 + FT_Init_Class_##class_( FT_Library library, \ 1.65 + FT_Service_PsFontNameRec* clazz) \ 1.66 + { \ 1.67 + FT_UNUSED(library); \ 1.68 + clazz->get_ps_font_name = get_ps_font_name_; \ 1.69 + } 1.70 + 1.71 +#endif /* FT_CONFIG_OPTION_PIC */ 1.72 + 1.73 + /* */ 1.74 + 1.75 + 1.76 +FT_END_HEADER 1.77 + 1.78 + 1.79 +#endif /* __SVPOSTNM_H__ */ 1.80 + 1.81 + 1.82 +/* END */