freetype
[Top][All Lists]
Advanced

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

Re: [ft] Fonts and definition of space-character (and: error codes)


From: Oliver Bandel
Subject: Re: [ft] Fonts and definition of space-character (and: error codes)
Date: Thu, 20 Mar 2008 21:04:16 +0100
User-agent: Internet Messaging Program (IMP) 3.2.6

Zitat von Werner LEMBERG <address@hidden>:

>
> > I have tried to get all glyphs of a text-string.  When my program
> > has to get the glyph of a space- character, it does not work.
> >
> > I have looked into the font (ttf-font) with fontforge.  The field
> is
> > not undefined (no red crosses there), but it somehow does not work.
>
> Which font?  Sample code, please.
[...]


I tried some fonts, but do not remember, which ist was.

I used locate and then selected some fontnames arbitrarily.


If this is wrong behaviour, and if it would make sense to create a list
of fonts that behavse that way, tell me; I could then systematically
look for it / change my program, so that it can look for it.

In the meantime I have made a hook into my sources, that
looks for undefined values (one of the functions gives me NULL,
which I can look for).
So, I add a littlebid space between the symbols, when I encounter
an undefined thing like a " ", and do not even call the FT_-functions.



>
> > I got an error with value 6.  (BTW: how to get textual
> > error-messages for that code?)
>
> This is described in file fterrors.h.

Well, I once have looked into it.

I may need a free head to understand it;
sometimes, when I'm too unpatioent, I have no
neurons reserved for reading such stuff ;-)

When I next time get an error that is too annoying,
I will try this stuff from fterror.h
It didn't worked so far... so I try another time,
because I aliready have a workaround for my " "-problem.


>
> > Why is the space-char not defined?  Are the fonts I used
> incomplete,
> > or is it the usual way, that some chars have no glyphs and even not
> > a spatial extent?
>
> Well, there exist fonts which don't have a space character (TeX
> fonts,
> for example).

TeX-fonts?!
Ooops... I did not expect that. TeX also has a "\ ",
so i thought this will be created by a font-coded
" ", but it seems I have wrong assumptions here.

Ciao,
   Oliver




reply via email to

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