diff options
author | marha <marha@users.sourceforge.net> | 2011-11-18 15:29:09 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-11-18 15:29:09 +0100 |
commit | 1037d56ca89d503cfd62830a90e934a2806ad804 (patch) | |
tree | 9a72a42de4a86af33a93a8829e387476694c314a /freetype/src/base/fttype1.c | |
parent | 1d325f411302fb329f0045f1288fc7cba03b17ce (diff) | |
download | vcxsrv-1037d56ca89d503cfd62830a90e934a2806ad804.tar.gz vcxsrv-1037d56ca89d503cfd62830a90e934a2806ad804.tar.bz2 vcxsrv-1037d56ca89d503cfd62830a90e934a2806ad804.zip |
freetype 2.4.8
Diffstat (limited to 'freetype/src/base/fttype1.c')
-rw-r--r-- | freetype/src/base/fttype1.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/freetype/src/base/fttype1.c b/freetype/src/base/fttype1.c index 3975584db..885dba598 100644 --- a/freetype/src/base/fttype1.c +++ b/freetype/src/base/fttype1.c @@ -4,7 +4,7 @@ /* */ /* FreeType utility file for PS names support (body). */ /* */ -/* Copyright 2002, 2003, 2004 by */ +/* Copyright 2002-2004, 2011 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -91,4 +91,30 @@ } + /* documentation is in t1tables.h */ + + FT_EXPORT_DEF( FT_Long ) + FT_Get_PS_Font_Value( FT_Face face, + PS_Dict_Keys key, + FT_UInt idx, + void *value, + FT_Long value_len ) + { + FT_Int result = 0; + FT_Service_PsInfo service = NULL; + + + if ( face ) + { + FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); + + if ( service && service->ps_get_font_value ) + result = service->ps_get_font_value( face, key, idx, + value, value_len ); + } + + return result; + } + + /* END */ |