X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=subsys%2Fwin32k%2Ffreetype%2Fsrc%2Fbase%2Fftnames.c;fp=subsys%2Fwin32k%2Ffreetype%2Fsrc%2Fbase%2Fftnames.c;h=0000000000000000000000000000000000000000;hp=43a0d12d0736b3b6b5596dd452c8fe1ed615fb35;hb=7c0db166f81fbe8c8b913d7f26048e337d383605;hpb=e3ed2d773259cc445c7ff8181ebd934931365328 diff --git a/subsys/win32k/freetype/src/base/ftnames.c b/subsys/win32k/freetype/src/base/ftnames.c deleted file mode 100644 index 43a0d12..0000000 --- a/subsys/win32k/freetype/src/base/ftnames.c +++ /dev/null @@ -1,70 +0,0 @@ -/***************************************************************************/ -/* */ -/* ftnames.c */ -/* */ -/* Simple interface to access SFNT name tables (which are used */ -/* to hold font names, copyright info, notices, etc.). */ -/* */ -/* This is _not_ used to retrieve glyph names! */ -/* */ -/* Copyright 1996-2000 by */ -/* David Turner, Robert Wilhelm, and Werner Lemberg. */ -/* */ -/* This file is part of the FreeType project, and may only be used, */ -/* modified, and distributed under the terms of the FreeType project */ -/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ -/* this file you indicate that you have read the license and */ -/* understand and accept it fully. */ -/* */ -/***************************************************************************/ - - -#include -#include - - -#ifdef FT_CONFIG_OPTION_SFNT_NAMES - - - FT_EXPORT_FUNC( FT_UInt ) FT_Get_Sfnt_Name_Count( FT_Face face ) - { - return face && ( FT_IS_SFNT( face ) ? ((TT_Face)face)->num_names : 0 ); - } - - - FT_EXPORT_FUNC( FT_Error ) FT_Get_Sfnt_Name( FT_Face face, - FT_UInt index, - FT_SfntName* aname ) - { - FT_Error error = FT_Err_Invalid_Argument; - - - if ( aname && face && FT_IS_SFNT( face ) ) - { - TT_Face ttface = (TT_Face)face; - - - if ( index < ttface->num_names ) - { - TT_NameRec* name = ttface->name_table.names + index; - - - aname->platform_id = name->platformID; - aname->encoding_id = name->encodingID; - aname->language_id = name->languageID; - aname->name_id = name->nameID; - aname->string = (FT_Byte*)name->string; - aname->string_len = name->stringLength; - - error = FT_Err_Ok; - } - } - - return error; - } - - -#endif /* FT_CONFIG_OPTION_SFNT_NAMES */ - - -/* END */