* include/freetype/config/ftstdlib.h (ft_strstr): New wrapper
macro for `strstr'. * src/truetype/ttobjs.c (tt_face_init): Use ft_strstr for scanning `trick_names', as suggested by Ivan Nincic.
This commit is contained in:
parent
dddd068e5d
commit
3d92f08bc5
|
@ -1,3 +1,11 @@
|
||||||
|
2007-03-05 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* include/freetype/config/ftstdlib.h (ft_strstr): New wrapper
|
||||||
|
macro for `strstr'.
|
||||||
|
|
||||||
|
* src/truetype/ttobjs.c (tt_face_init): Use ft_strstr for scanning
|
||||||
|
`trick_names', as suggested by Ivan Nincic.
|
||||||
|
|
||||||
2007-03-05 David Turner <david@freetype.org>
|
2007-03-05 David Turner <david@freetype.org>
|
||||||
|
|
||||||
* src/base/ftinit.c (FT_Init_FreeType): fixed a small memory leak
|
* src/base/ftinit.c (FT_Init_FreeType): fixed a small memory leak
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
/* ANSI-specific library and header configuration file (specification */
|
/* ANSI-specific library and header configuration file (specification */
|
||||||
/* only). */
|
/* only). */
|
||||||
/* */
|
/* */
|
||||||
/* Copyright 2002, 2003, 2004, 2005, 2006 by */
|
/* Copyright 2002, 2003, 2004, 2005, 2006, 2007 by */
|
||||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||||
/* */
|
/* */
|
||||||
/* This file is part of the FreeType project, and may only be used, */
|
/* This file is part of the FreeType project, and may only be used, */
|
||||||
|
@ -101,6 +101,7 @@
|
||||||
#define ft_strncmp strncmp
|
#define ft_strncmp strncmp
|
||||||
#define ft_strncpy strncpy
|
#define ft_strncpy strncpy
|
||||||
#define ft_strrchr strrchr
|
#define ft_strrchr strrchr
|
||||||
|
#define ft_strstr strstr
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
|
|
|
@ -479,7 +479,7 @@
|
||||||
if ( dim == AF_DIMENSION_HORZ )
|
if ( dim == AF_DIMENSION_HORZ )
|
||||||
{
|
{
|
||||||
if ( fitted < scaled )
|
if ( fitted < scaled )
|
||||||
scale -= scale/50; /* x_scale = x_scale*0.98 */
|
scale -= scale / 50; /* scale *= 0.98 */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -284,7 +284,7 @@
|
||||||
for ( nn = 0; trick_names[nn] != NULL; nn++ )
|
for ( nn = 0; trick_names[nn] != NULL; nn++ )
|
||||||
{
|
{
|
||||||
if ( ttface->family_name &&
|
if ( ttface->family_name &&
|
||||||
ft_strcmp( ttface->family_name, trick_names[nn] ) == 0 )
|
ft_strstr( ttface->family_name, trick_names[nn] ) )
|
||||||
{
|
{
|
||||||
unpatented_hinting = 1;
|
unpatented_hinting = 1;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue