[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] Setting FT_ValidationLevel
From: |
Masatake YAMATO |
Subject: |
[ft-devel] Setting FT_ValidationLevel |
Date: |
Wed, 13 Jul 2005 00:29:29 +0900 (JST) |
I have found that there is no way to pass
FT_VALIDATE_DEFAULT, FT_VALIDATE_TIGHT not FT_VALIDATE_PARANOID to
FT_OpenType_Validate.
static FT_Error
otv_validate( FT_Face face,
FT_UInt ot_flags,
FT_Bytes *ot_base,
FT_Bytes *ot_gdef,
FT_Bytes *ot_gpos,
FT_Bytes *ot_gsub,
FT_Bytes *ot_jstf )
{
FT_Error error = OTV_Err_Ok;
FT_Byte *base, *gdef, *gpos, *gsub, *jstf;
FT_ULong len_base, len_gdef, len_gpos, len_gsub, len_jstf;
FT_ValidatorRec valid;
base = gdef = gpos = gsub = jstf = NULL;
len_base = len_gdef = len_gpos = len_gsub = len_jstf = 0;
/* load tables */
...
if ( base )
{
ft_validator_init( &valid, base, base + len_base, FT_VALIDATE_DEFAULT );
if ( ft_setjmp( valid.jump_buffer ) == 0 )
otv_BASE_validate( base, &valid );
Always FT_VALIDATE_DEFAULT is used.
Is it expected behavior?
Masatake YAMATO
- [ft-devel] Setting FT_ValidationLevel,
Masatake YAMATO <=