freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] ftvalid


From: Masatake YAMATO
Subject: Re: [ft-devel] ftvalid
Date: Sat, 17 Jun 2006 05:32:57 +0900 (JST)

> I tried ftvalid for the first time today.
> 
> At first it just told me that every font I fed it was invalid. I
> discovered this was because the default freetype does not include the
> validation modules. After changing modules.cfg everything passed.
> 
> I wonder... would it be possible to have FT_OpenType_Validate return
> something other than FT_Err_Invalid_Argument if the validation service
> is not present, and have ftvalid check for the <service missing> error
> and generate an error saying that the service isn't present rather than
> that the font is invalid?
> 
> I found it a little confusing to have the default build tell me
> everything was invalid. It would be nicer to know that the font might be
> ok, but I need to rebuild the library...

Thank you for you suggestion.
I revised ftvalid.c to show messages and exit if validate modules is not
present. I also improved help message. Now it shows each validate module
is implemented or not.


    address@hidden/var/typehack/ft2demos/bin% ./ftvalid -t ot /tmp/foo.c
    ./ftvalid -t ot /tmp/foo.c
    FT_OpenType_Validateis disabled. replace FreeType2 with otvalid-enabled 
version

      error = 0x0007


    address@hidden/var/typehack/ft2demos/bin% ./ftvalid -h
    ./ftvalid -h
    lt-ftvalid: invalid option -- h

    ftvalid: layout table validator -- part of the FreeType project
    ---------------------------------------------------------------

    Usage: lt-ftvalid [options] fontfile

      -t validator              select validator. 
                                Available validators: "ot"(NOT IMPLEMENTED) 
"gx" "ckern" 
    ...                 

Masatake YAMATO





reply via email to

[Prev in Thread] Current Thread [Next in Thread]