[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Need help on dvi viewer with freetype
From: |
crusius_at_stanford . edu |
Subject: |
Need help on dvi viewer with freetype |
Date: |
Sun, 08 Oct 2000 11:16:40 -0700 |
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
- Need help on dvi viewer with freetype,
crusius_at_stanford . edu <=