Quantcast

Re: Bug report: space size

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bug report: space size

arataj
On 5/27/05, Ralf Stubner <[hidden email]> wrote:

> That looks ok in principle. The space character has a width of 377
> units. The two lines with '74 304 rmoveto' and 'closepath' look strange
> and are unnecessary, but I would be surprised if they cause any harm.
> You can test this though by removing these two lines and assembling the
> font again with t1asm.

These two lines describe a test point, that I added to check if it helps.

>
> Another wierd possibility is encoding. Maybe space is not encoded or in
> an unsual position in your font, and the application you are using uses
> code positions instead of glyphnames. So look out for /Encoding near the
> begining of the disassembled file. What does it say there?
>

/Encoding 256 array

> If those ideas don't help, then i am lost. Can you make the font in
> question available so that others can have a look at it?
>

Here it is: http://www.iitis.gliwice.pl/~arataj/test.pfa

Thanks,
Artur




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Fontforge-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fontforge-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bug report: space size

George Williams
On Mon, 2005-05-30 at 05:20, [hidden email] wrote:

> Here it is: http://www.iitis.gliwice.pl/~arataj/test.pfa
This font does not contain a space glyph at all. That may be causing
your problem. It only contains a hyphen.
> Another wierd possibility is encoding. Maybe space is not encoded or
in
> > an unsual position in your font, and the application you are using uses
> > code positions instead of glyphnames. So look out for /Encoding near the
> > begining of the disassembled file. What does it say there?
> >
>
> /Encoding 256 array
No, the Encoding is defined as:
        /Encoding 256 array
         0 1 255 { 1 index exch /.notdef put} for
        dup 45/hyphen put
        readonly def

There are two glyphs defined in this font:
        2 index /CharStrings 2 dict dup begin
        /.notdef 9 RD  0 192 hsbw endchar ND
        /hyphen 20 RD  16 192 hsbw 308 vmoveto -52 vlineto 160 hlineto
        52 vlineto closepath endchar ND
        end end
Again no space.

Perhaps you have several instances of the font and are confused about
which you are using at any given time.



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Fontforge-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fontforge-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bug report: space size

Ralf Stubner
George Williams wrote:
> On Mon, 2005-05-30 at 05:20, [hidden email] wrote:
>
>> Here it is: http://www.iitis.gliwice.pl/~arataj/test.pfa
> This font does not contain a space glyph at all. That may be causing
> your problem. It only contains a hyphen.

Ooops. The font I got from there at about 1800+0200 did contain more
than this. In particular it did contain a space glyph encoded at
position 32. This font uses an emsize of 2048, which is rather unusual
though perfectly valid AFAIK. However, eg gfontview (uses libt1) is
confused and uses a way to large space. If I rescale the font to an
emsize of 1000, everything is fine.

cheerio
ralf




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Fontforge-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fontforge-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bug report: space size

arataj
In reply to this post by arataj
On 5/30/05, Ralf Stubner <[hidden email]> wrote:
> George Williams wrote:
> > On Mon, 2005-05-30 at 05:20, [hidden email] wrote:
> >
> >> Here it is: http://www.iitis.gliwice.pl/~arataj/test.pfa
> > This font does not contain a space glyph at all. That may be causing
> > your problem. It only contains a hyphen.
>

It is very strange - I suppose I had never designed a hyphen in Fontforge
at all, lest a font that contains only the hyphen. Are you sure that
you had not accidentally used another font named `test'?

> Ooops. The font I got from there at about 1800+0200 did contain more
> than this. In particular it did contain a space glyph encoded at
> position 32. This font uses an emsize of 2048, which is rather unusual
> though perfectly valid AFAIK. However, eg gfontview (uses libt1) is

After the problems with space, I tested generating TTFs, so I rescaled
the emsize to the power of 2. And it worked well, except for the buggy
rendering of the l character in turn.

> confused and uses a way to large space. If I rescale the font to an
> emsize of 1000, everything is fine.

Are you using X window with Freetype?

Thanks,
Artur



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Fontforge-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fontforge-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bug report: space size

Ralf Stubner
[hidden email] wrote:

> Are you using X window with Freetype?

Recent Debian Sarge here. The only app I have found which has problems
with you font is gfontview, which uses t1lib and not freetype for Type1
rendering.

cheerio
ralf




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Fontforge-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fontforge-devel
Loading...