forked from minhngoc25a/freetype2
Formatting.
This commit is contained in:
parent
64872a5016
commit
a44b784bca
|
@ -317,7 +317,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
total_read_count = 0;
|
total_read_count = 0;
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
ssize_t read_count;
|
ssize_t read_count;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3388,8 +3388,10 @@
|
||||||
FT_CMap cmap = FT_CMAP( face->charmap );
|
FT_CMap cmap = FT_CMAP( face->charmap );
|
||||||
|
|
||||||
|
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
gindex = cmap->clazz->char_next( cmap, &code );
|
gindex = cmap->clazz->char_next( cmap, &code );
|
||||||
|
|
||||||
} while ( gindex >= (FT_UInt)face->num_glyphs );
|
} while ( gindex >= (FT_UInt)face->num_glyphs );
|
||||||
|
|
||||||
result = ( gindex == 0 ) ? 0 : code;
|
result = ( gindex == 0 ) ? 0 : code;
|
||||||
|
|
|
@ -723,7 +723,8 @@
|
||||||
#if 0
|
#if 0
|
||||||
|
|
||||||
#define FT_OUTLINE_GET_CONTOUR( outline, c, first, last ) \
|
#define FT_OUTLINE_GET_CONTOUR( outline, c, first, last ) \
|
||||||
do { \
|
do \
|
||||||
|
{ \
|
||||||
(first) = ( c > 0 ) ? (outline)->points + \
|
(first) = ( c > 0 ) ? (outline)->points + \
|
||||||
(outline)->contours[c - 1] + 1 \
|
(outline)->contours[c - 1] + 1 \
|
||||||
: (outline)->points; \
|
: (outline)->points; \
|
||||||
|
|
|
@ -899,7 +899,8 @@
|
||||||
|
|
||||||
|
|
||||||
#define LOAD_( x ) \
|
#define LOAD_( x ) \
|
||||||
do { \
|
do \
|
||||||
|
{ \
|
||||||
FT_TRACE2(( "`" #x "' " )); \
|
FT_TRACE2(( "`" #x "' " )); \
|
||||||
FT_TRACE3(( "-->\n" )); \
|
FT_TRACE3(( "-->\n" )); \
|
||||||
\
|
\
|
||||||
|
@ -914,7 +915,8 @@
|
||||||
} while ( 0 )
|
} while ( 0 )
|
||||||
|
|
||||||
#define LOADM_( x, vertical ) \
|
#define LOADM_( x, vertical ) \
|
||||||
do { \
|
do \
|
||||||
|
{ \
|
||||||
FT_TRACE2(( "`%s" #x "' ", \
|
FT_TRACE2(( "`%s" #x "' ", \
|
||||||
vertical ? "vertical " : "" )); \
|
vertical ? "vertical " : "" )); \
|
||||||
FT_TRACE3(( "-->\n" )); \
|
FT_TRACE3(( "-->\n" )); \
|
||||||
|
@ -930,7 +932,8 @@
|
||||||
} while ( 0 )
|
} while ( 0 )
|
||||||
|
|
||||||
#define GET_NAME( id, field ) \
|
#define GET_NAME( id, field ) \
|
||||||
do { \
|
do \
|
||||||
|
{ \
|
||||||
error = tt_face_get_name( face, TT_NAME_ID_ ## id, field ); \
|
error = tt_face_get_name( face, TT_NAME_ID_ ## id, field ); \
|
||||||
if ( error ) \
|
if ( error ) \
|
||||||
goto Exit; \
|
goto Exit; \
|
||||||
|
|
|
@ -1334,7 +1334,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define TT_LOADER_SET_PP( loader ) \
|
#define TT_LOADER_SET_PP( loader ) \
|
||||||
do { \
|
do \
|
||||||
|
{ \
|
||||||
(loader)->pp1.x = (loader)->bbox.xMin - (loader)->left_bearing; \
|
(loader)->pp1.x = (loader)->bbox.xMin - (loader)->left_bearing; \
|
||||||
(loader)->pp1.y = 0; \
|
(loader)->pp1.y = 0; \
|
||||||
(loader)->pp2.x = (loader)->pp1.x + (loader)->advance; \
|
(loader)->pp2.x = (loader)->pp1.x + (loader)->advance; \
|
||||||
|
|
Loading…
Reference in New Issue