2018-06-03 09:01:17 +02:00
|
|
|
/****************************************************************************
|
|
|
|
*
|
|
|
|
* ftfntfmt.c
|
|
|
|
*
|
|
|
|
* FreeType utility file for font formats (body).
|
|
|
|
*
|
2023-01-17 09:18:25 +01:00
|
|
|
* Copyright (C) 2002-2023 by
|
2018-06-03 09:01:17 +02:00
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
2002-05-30 21:22:14 +02:00
|
|
|
|
|
|
|
|
2020-06-08 13:31:55 +02:00
|
|
|
#include <freetype/ftfntfmt.h>
|
|
|
|
#include <freetype/internal/ftobjs.h>
|
|
|
|
#include <freetype/internal/services/svfntfmt.h>
|
2002-05-29 00:07:49 +02:00
|
|
|
|
2004-12-14 00:16:59 +01:00
|
|
|
|
Rename `ftxf86.[ch]' to `ftfntfmt.[ch]'.
CMakeLists.txt, builds/amiga/makefile, builds/amiga/makefile.os4,
builds/amiga/smakefile, builds/mac/FreeType.m68k_cfm.make.txt,
builds/mac/FreeType.m68k_far.make.txt,
builds/mac/FreeType.ppc_carbon.make.txt,
builds/mac/FreeType.ppc_classic.make.txt, builds/symbian/bld.inf,
builds/symbian/freetype.mmp, builds/wince/vc2005-ce/freetype.vcproj,
builds/wince/vc2008-ce/freetype.vcproj,
builds/windows/vc2005/freetype.vcproj,
builds/windows/vc2008/freetype.vcproj,
builds/windows/vc2010/freetype.vcxproj,
builds/windows/vc2010/freetype.vcxproj.filters,
builds/windows/visualc/freetype.dsp,
builds/windows/visualc/freetype.vcproj,
builds/windows/visualce/freetype.dsp,
builds/windows/visualce/freetype.vcproj, docs/INSTALL.ANY,
include/config/ftheader.h, include/ftfntfmt.h, modules.cfg,
src/base/ftfntfmt.c, vms_make.com: Updated.
2015-03-11 06:30:23 +01:00
|
|
|
/* documentation is in ftfntfmt.h */
|
2004-12-14 00:16:59 +01:00
|
|
|
|
2015-03-11 07:32:58 +01:00
|
|
|
FT_EXPORT_DEF( const char* )
|
|
|
|
FT_Get_Font_Format( FT_Face face )
|
|
|
|
{
|
|
|
|
const char* result = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
if ( face )
|
2015-03-11 08:09:13 +01:00
|
|
|
FT_FACE_FIND_SERVICE( face, result, FONT_FORMAT );
|
2015-03-11 07:32:58 +01:00
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* deprecated function name; retained for ABI compatibility */
|
|
|
|
|
2002-05-29 00:07:49 +02:00
|
|
|
FT_EXPORT_DEF( const char* )
|
2002-05-30 21:22:14 +02:00
|
|
|
FT_Get_X11_Font_Format( FT_Face face )
|
2002-05-29 00:07:49 +02:00
|
|
|
{
|
|
|
|
const char* result = NULL;
|
|
|
|
|
2003-09-17 21:20:02 +02:00
|
|
|
|
* include/freetype/ftmm.h, include/freetype/ftmodule.h,
include/freetype/tttables.h, include/freetype/config/ftconfig.h,
include/freetype/internal/ftobjs.h,
include/freetype/internal/ftserv.h,
include/freetype/internal/internal.h,
include/freetype/internal/sfnt.h,
include/freetype/internal/tttypes.h,
include/freetype/internal/services/bdf.h,
include/freetype/internal/services/glyfdict.h,
include/freetype/internal/services/multmast.h,
include/freetype/internal/services/postname.h,
include/freetype/internal/services/sfnt.h,
include/freetype/internal/services/xf86name.h,
src/base/ftbdf.c, src/base/ftmm.c, src/base/ftobjs.c,
src/base/ftxf86.c, src/bdf/bdfdrivr.c, src/cff/cffdrivr.c,
src/cid/cidriver.c, src/pcf/pcfdrivr.c, src/sfnt/sfdriver.c,
src/truetype/ttdriver.c, src/type1/t1driver.c, src/type42/t42drivr.c:
heavy internal modifications to introduce the concept of
"module services". This is the first step towards a massive
simplification of the engine's internals, in order to
get rid of various numbers of hacks.
Note that this changes will break source & binary compatibility
for authors of external font drivers.
Maybe 2.1.6 will be called 2.2.0 after all :-)
2003-09-11 21:51:54 +02:00
|
|
|
if ( face )
|
2015-03-11 08:09:13 +01:00
|
|
|
FT_FACE_FIND_SERVICE( face, result, FONT_FORMAT );
|
2002-05-29 00:07:49 +02:00
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
2002-05-30 21:22:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|