freetype
[Top][All Lists]
Advanced

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

Re: Need help on dvi viewer with freetype


From: Tom Kacvinsky
Subject: Re: Need help on dvi viewer with freetype
Date: Sun, 8 Oct 2000 14:34:19 -0400 (EDT)

Unlike the other fonts from the Computer Modern family, CMEX10 has
many glyphs with *deep* descenders.  These glyphs are completely
below the baseline and are in excess of 1500 Type 1 units (1000 Type 1
units per em) deep.  I suspect that this is the cause of the problem.
I am looking into it right now; ftview fails to display glyph number
90 (/integraldisplay).

Tom

On Sun, 8 Oct 2000 address@hidden wrote:

> hi! right now i have a pretty functional dvi viewer written for ggi
> and using freetype for fonts. sometimes, however, weird things happen,
> and i hope someone can help me.
> 
> as an example, if i'm viewing a file that uses cmex10, for example:
> when the dvi files uses glyph number 90, freetype signals an error.
> here's what happens: the code below, executed with ch=90, and
> curr_font->face being from cmex10.pfb, scaled correctly
> 
> -----------------
> if(FT_Load_Glyph(curr_font->face,ch,FT_LOAD_NO_HINTING) ||
>    FT_Get_Glyph(curr_font->face->glyph,curr_font->glyphs+ch))
> {
>   fprintf(stderr,"Could not load glyph %d from font 
> %d.\n",ch,curr_font->number);
>   terminate(1);
> }
> -----------------
> 
> terminates my program (could not load glyph 90 from font 18). i would
> like to release my viewer for the public, but while these types of
> errors keep popping up i can't... (btw, that never happens with cmr10
> and the likes. it also works fine with other glyphs from cmex10) since
> i'm no font expert, i hope some of you guys can pinpoint where the
> error is occurring (in freetype, in cmex10, encoding, my code...).
> 
> thanks!
> 
> --
> Cesar Augusto Rorato Crusius    __o      __o      __o      __o      __o    
> Stanford University           _`\<,    _`\<,    _`\<,    _`\<,    _`\<,    
> e-mail:address@hidden    (_)/(_)  (_)/(_)  (_)/(_)  (_)/(_)  (_)/(_)   
> www.stanford.edu/~crusius
>                                        o      _     _         _
>    __o      __o      __o      __o     /\_   _ \\o  (_)\__/o  (_)
>  _`\<,    _`\<,    _`\<,    _`\<,    _>(_) (_)/<_    \_| \   _|/' \/
> (_)/(_)  (_)/(_)  (_)/(_)  (_)/(_)  (_)        (_)   (_)    (_)'  _\o_
> 
> He who sacrifices functionality for ease of use
> Loses both and deserves neither
> 




reply via email to

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