|
|
|
@ -4,7 +4,7 @@ |
|
|
|
|
/* */ |
|
|
|
|
/* FreeType API for accessing BDF-specific strings (body). */ |
|
|
|
|
/* */ |
|
|
|
|
/* Copyright 2002-2004, 2013 by */ |
|
|
|
|
/* Copyright 2002-2004, 2013, 2014 by */ |
|
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
|
|
|
|
/* */ |
|
|
|
|
/* This file is part of the FreeType project, and may only be used, */ |
|
|
|
@ -17,6 +17,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <ft2build.h> |
|
|
|
|
#include FT_INTERNAL_DEBUG_H |
|
|
|
|
|
|
|
|
|
#include FT_INTERNAL_OBJECTS_H |
|
|
|
|
#include FT_SERVICE_BDF_H |
|
|
|
|
|
|
|
|
@ -32,19 +34,16 @@ |
|
|
|
|
const char* encoding = NULL; |
|
|
|
|
const char* registry = NULL; |
|
|
|
|
|
|
|
|
|
FT_Service_BDF service; |
|
|
|
|
|
|
|
|
|
error = FT_ERR( Invalid_Argument ); |
|
|
|
|
|
|
|
|
|
if ( face ) |
|
|
|
|
{ |
|
|
|
|
FT_Service_BDF service; |
|
|
|
|
|
|
|
|
|
if ( !face ) |
|
|
|
|
return FT_THROW( Invalid_Face_Handle ); |
|
|
|
|
|
|
|
|
|
FT_FACE_FIND_SERVICE( face, service, BDF ); |
|
|
|
|
FT_FACE_FIND_SERVICE( face, service, BDF ); |
|
|
|
|
|
|
|
|
|
if ( service && service->get_charset_id ) |
|
|
|
|
error = service->get_charset_id( face, &encoding, ®istry ); |
|
|
|
|
} |
|
|
|
|
if ( service && service->get_charset_id ) |
|
|
|
|
error = service->get_charset_id( face, &encoding, ®istry ); |
|
|
|
|
|
|
|
|
|
if ( acharset_encoding ) |
|
|
|
|
*acharset_encoding = encoding; |
|
|
|
@ -65,23 +64,23 @@ |
|
|
|
|
{ |
|
|
|
|
FT_Error error; |
|
|
|
|
|
|
|
|
|
FT_Service_BDF service; |
|
|
|
|
|
|
|
|
|
error = FT_ERR( Invalid_Argument ); |
|
|
|
|
|
|
|
|
|
aproperty->type = BDF_PROPERTY_TYPE_NONE; |
|
|
|
|
if ( !face ) |
|
|
|
|
return FT_THROW( Invalid_Face_Handle ); |
|
|
|
|
|
|
|
|
|
if ( face ) |
|
|
|
|
{ |
|
|
|
|
FT_Service_BDF service; |
|
|
|
|
if ( !aproperty ) |
|
|
|
|
return FT_THROW( Invalid_Argument ); |
|
|
|
|
|
|
|
|
|
aproperty->type = BDF_PROPERTY_TYPE_NONE; |
|
|
|
|
|
|
|
|
|
FT_FACE_FIND_SERVICE( face, service, BDF ); |
|
|
|
|
FT_FACE_FIND_SERVICE( face, service, BDF ); |
|
|
|
|
|
|
|
|
|
if ( service && service->get_property ) |
|
|
|
|
error = service->get_property( face, prop_name, aproperty ); |
|
|
|
|
} |
|
|
|
|
if ( service && service->get_property ) |
|
|
|
|
error = service->get_property( face, prop_name, aproperty ); |
|
|
|
|
|
|
|
|
|
return error; |
|
|
|
|
return error; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|