Formatting, comment fixes.

This commit is contained in:
Werner Lemberg 2006-01-14 07:10:45 +00:00
parent e33dc2ebee
commit 3d8eeb8e97
5 changed files with 10 additions and 4 deletions

View File

@ -5,7 +5,7 @@
* src/bdf/bdfdrivr.c (BDF_Size_Request, BDF_Size_Select),
src/pcf/pcfdrivr.c (PCF_Size_Request, PCF_Size_Select),
src/winfonts/winfnt.c (FNT_Size_Request, FNT_Size_Select): Do size
matching for request of type NOMINAL and REAL_DIM.
matching for requests of type NOMINAL and REAL_DIM.
* src/winfonts/winfnt.c (FNT_Face_Init): Print trace message when
`pixel_height' is used for nominal height.

View File

@ -2201,9 +2201,9 @@
if ( clazz->request_size )
error = clazz->request_size( face->size, req );
/*
* The reason that a driver not having `request_size' defined is
* either the scaling here suffices or the supported formats
* are bitmap-only and size matching is not implmented.
* The reason that a driver doesn't have `request_size' defined is
* either that the scaling here suffices or that the supported formats
* are bitmap-only and size matching is not implemented.
*
* In the latter case, a simple size matching is done.
*/

View File

@ -624,11 +624,13 @@ THE SOFTWARE.
if ( height == ( bsize->y_ppem + 32 ) >> 6 )
error = BDF_Err_Ok;
break;
case FT_SIZE_REQUEST_TYPE_REAL_DIM:
if ( height == ( bdffont->font_ascent +
bdffont->font_descent ) )
error = BDF_Err_Ok;
break;
default:
error = BDF_Err_Unimplemented_Feature;
break;

View File

@ -408,11 +408,13 @@ THE SOFTWARE.
if ( height == ( bsize->y_ppem + 32 ) >> 6 )
error = PCF_Err_Ok;
break;
case FT_SIZE_REQUEST_TYPE_REAL_DIM:
if ( height == ( face->accel.fontAscent +
face->accel.fontDescent ) )
error = PCF_Err_Ok;
break;
default:
error = PCF_Err_Unimplemented_Feature;
break;

View File

@ -613,10 +613,12 @@
if ( height == ( bsize->y_ppem + 32 ) >> 6 )
error = FNT_Err_Ok;
break;
case FT_SIZE_REQUEST_TYPE_REAL_DIM:
if ( height == header->pixel_height )
error = FNT_Err_Ok;
break;
default:
error = FNT_Err_Unimplemented_Feature;
break;