Navigation: Main Page » Computer / Recreational / Science / Society / Television
 
Web N-N-A.com
         
Computer Groups Forum Index  »  Fonts  »  Misplaced glyph in Postscript compilation
Page 1 of 1    
Author Message
Guest
Posted: Tue Mar 27, 2007 8:04 pm
Hi,

First post here.

I'm trying to solve the mis-positioning of one character in a font
which occurs only when it is turned into a Postscript file using
Finale "compile Postscript" command (Finale version 2007, Windows XP
Pro, tried on two machines).

Here are two sample images; the first is how it looks in the source
(Finale screen capture), and the second is the resulting Postscript
file displayed in Ghostscript.

http://maltedmedia.com/images/finale/hi-ay-good-orig.gif
http://maltedmedia.com/images/finale/hi-ay-bad-ps.gif

This font is TrueType, and was created with Font Creator 5.5 from
scanned text in old opera scores. I started at the Font Creator forum
and was referred to the Adobe forum by the programmer of FC, as he
examined the font and found no problems with it. Adobe's regulars
basically said "nothing to see here, move along.".

The font works properly in MSWord and in Postcript compiled there via
Ghostscript. Printing to PDF also works under any application (via
Acrobat Distiller or docPrint Pro). In Finale Postscript compilation,
it fails.

I have another font that has the same offset problem -- but in a
different glyph slot and with a different offset (offset left rather
than down) -- and it's also during Finale Postscript compilation.

It doesn't affect printing to a Postscript printer (even if printing
to file) from Finale, just when compiled to a Postscript or EPS file
within Finale.

I don't know where to look for additional positioning data in the font
that a PS compiler would be fooled by. It could be Finale's Postscript
compiler, but the compiler is the only real option; printing to
Postscript/PDF within Finale produces a very ugly screen display and
bulky document.

I need to solve this problem (it's holding up production of an opera
score for a client, who needs the font), and don't know where to ask.
I started by guessing the font was the issue, next went to Adobe, and
now am here. I will go to the even-badly-supported Finale tech support
as a last resort -- knowing they will never ever ever help. (Ever.)

I don't really care who's responsible for the problem. What I'm asking
is: where in a font's parameters can I find the likely cause of a
Postscript mis-compile of its placement? I'll fix it.

Thanks,
Dennis
Character
Posted: Tue Mar 27, 2007 8:04 pm
Guest
bathorykitsz@gmail.com wrote:

Quote:
Hi,

First post here.

I'm trying to solve the mis-positioning of one character in a font
which occurs only when it is turned into a Postscript file using
Finale "compile Postscript" command (Finale version 2007, Windows XP
Pro, tried on two machines).

Here are two sample images; the first is how it looks in the source
(Finale screen capture), and the second is the resulting Postscript
file displayed in Ghostscript.

http://maltedmedia.com/images/finale/hi-ay-good-orig.gif
http://maltedmedia.com/images/finale/hi-ay-bad-ps.gif

This font is TrueType, and was created with Font Creator 5.5 from
scanned text in old opera scores. I started at the Font Creator forum
and was referred to the Adobe forum by the programmer of FC, as he
examined the font and found no problems with it. Adobe's regulars
basically said "nothing to see here, move along.".

The font works properly in MSWord and in Postcript compiled there via
Ghostscript. Printing to PDF also works under any application (via
Acrobat Distiller or docPrint Pro). In Finale Postscript compilation,
it fails.

I have another font that has the same offset problem -- but in a
different glyph slot and with a different offset (offset left rather
than down) -- and it's also during Finale Postscript compilation.

It doesn't affect printing to a Postscript printer (even if printing
to file) from Finale, just when compiled to a Postscript or EPS file
within Finale.

I don't know where to look for additional positioning data in the font
that a PS compiler would be fooled by. It could be Finale's Postscript
compiler, but the compiler is the only real option; printing to
Postscript/PDF within Finale produces a very ugly screen display and
bulky document.

I need to solve this problem (it's holding up production of an opera
score for a client, who needs the font), and don't know where to ask.
I started by guessing the font was the issue, next went to Adobe, and
now am here. I will go to the even-badly-supported Finale tech support
as a last resort -- knowing they will never ever ever help. (Ever.)

I don't really care who's responsible for the problem. What I'm asking
is: where in a font's parameters can I find the likely cause of a
Postscript mis-compile of its placement? I'll fix it.

Thanks,
Dennis


Just some shooting in the dark here ... it certainly sounds like a
problem with Finale, but I understand your reluctance to try and get
help from there! And are you using the full version or the free
version of Finale, and what version? Have you tried with different
versions of Finale?

Does the problem occur at all sizes (maybe it's some strange hinting
problem)?

Did you trim down the FontCreator font (it normally creates hundreds
of unnecessary and empty glyphs, and maybe Finale is choking on the size)?

Have you (or anyone else) tried recompiling the font with FontLab or
some other more robust font editor?

Have you tried it with any other music notation software?

Have you tried a pragmatic solution rather than an ęsthetically and
technically pleasing one? Specifically, open a new font and copy all
of the glyphs from the "bad" one into it and see if the new one then
exhibits the same problem.

If you could post a copy of the font(s) in question in might help.
(You could put it in the same directory as your sample images).

- Character
Dennis Bathory-Kitsz
Posted: Wed Mar 28, 2007 12:03 am
Guest
Character wrote:
Quote:
Just some shooting in the dark here ... it certainly sounds like a
problem with Finale, but I understand your reluctance to try and get
help from there! And are you using the full version or the free
version of Finale, and what version? Have you tried with different
versions of Finale?

Yes, it's the full version. I've been a Finale user since 1992.

I have not tried the new font with different versions because Finale
2007 is the first version is which Postscript compilation actually
worked with 9-1/4 x 12-1/4 paper.

However, with the other font I mentioned the problem (one offset glyph)
exists in both Finale 2006 and 2007 during Postscript compilation.

Quote:
Does the problem occur at all sizes (maybe it's some strange hinting
problem)?

I haven't tried all sizes, but it occurs when used at 12, 14 and 16
point.

Quote:
Did you trim down the FontCreator font (it normally creates hundreds
of unnecessary and empty glyphs, and maybe Finale is choking on the size)?

It's gradually being trimmed. The resulting font is about 40K. The other
font is even small and has considerably fewer points.

Quote:
Have you (or anyone else) tried recompiling the font with FontLab or
some other more robust font editor?

I only have Font Creator ... fits my budget. I don't know FontLab, but
will check if it has a demo version.

Quote:
Have you tried it with any other music notation software?

No. But I have tried it in other applications, such as MS Word, and the
offset does not occur. Finale is unique as the only application that
offers the option of creating a Postscript listing from the program
rather than printing to a file. Its Postscript print-to-file function is
badly coded and produces ugly displays and bloated files in Windows (I
mean by a factor of ten to twenty). The Mac version works correctly.

Quote:
Have you tried a pragmatic solution rather than an ęsthetically and
technically pleasing one? Specifically, open a new font and copy all
of the glyphs from the "bad" one into it and see if the new one then
exhibits the same problem.

A good idea. I will try it. I did swap H and L to test, and the H still
was offset in its new position. But it was within the same font file.

Quote:
If you could post a copy of the font(s) in question in might help.
(You could put it in the same directory as your sample images).

Thanks very much. I have done that. You'll find them at:
http://maltedmedia.com/images/finale/Opera-Lyrics-OldStyle.ttf
http://maltedmedia.com/images/finale/Opera-Lyrics-Smooth.ttf

The first is the characters as scanned and trimmed, the second is a
working font with the glyphs gradually being smoothed.

Thanks again,
Dennis


--
Dennis Bįthory-Kitsz

My New Project: http://maltedmedia.com/waam/
Kalvos & Damian NonPop: http://kalvos.org/
Downloadable Scores: http://maltedmedia.com/scores/

--
Posted via a free Usenet account from http://www.teranews.com
Guest
Posted: Wed Mar 28, 2007 4:02 am
On Mar 27, 8:42 pm, Character <C...@cters.old.style> wrote:
Quote:
An immediate major problem that I see is that there is no 'null'
glyph, having been replaced by "not.def.00" and the "H" glyph is also
in the .notdef position in both of the fonts.

Interesting. I'm seeing the null at $0001 and .notdef at $0000. That's
how the default Font Creator file is set up for a new font. I never
noticed that, and wonder if it's an issue in general. My few fonts
have started with a default Font Creator file. I put the second H (a
duplicate test H) in an undefined slot ($009B). The real H (at least
here) reads its correct definition of Capital H. I can certainly
delete the second H, but the problem existed before I put a duplicate
up there.

Quote:
Beyond that, as others have said, there's nothing obviously different
about the "H" glyph by itself. I'm not sure how you'd fix the problem
in Font Creator.
There's a minor unrelated difficulty in the font names - both fonts
have the same "Full Name" of "Opera Lyrics" where all the other
internal font names have the complete names "Opera Lyrics Smooth" or
"Opera Lyrics OldStyle".

Also interesting. I'm an amateur at this process, and filled in all
the Windows names and they show up correctly identified in the Windows
font manager. But I never clicked the Macintosh names tab in Font
Creator. Didn't notice it there.

Quote:
Another random thought I had was that there might be a problem in
converting the true-type outlines to postscript (Type 1) outlines.

Does the Postscript compiler do that? It doesn't embed TrueType by its
own parameters? This is worth taking a look at. I have that old
command line TTF to Type 1 converted, which works pretty well. I
wonder if it will reproduce the error when it does a conversion.

Quote:
You might also want to change the "vendor code" from HL (the makers of
FOnt Creator) to MM for maltedmedia Smile

I haven't found the vendor code change yet. Still hunting.

Quote:
Since you're using Google Groups, which can't have attachments, I'll
send you a revised test version directly to your email (assuming that
the one shown here is valid). The revision deletes the characters
mentioned in the first paragraph above, changes the name entries as
indicated, deletes most of the empty glyphs, and is generated with
FontLab.

Thanks very much. Both emails I've been using are good. The bathory/
bathory/org one is better in general.

I'll let you know what I see here, and again, many thanks.

Dennis
Character
Posted: Wed Mar 28, 2007 4:02 am
Guest
Dennis Bathory-Kitsz wrote:

Quote:
Character wrote:

Just some shooting in the dark here ... it certainly sounds like a
problem with Finale, but I understand your reluctance to try and get
help from there! And are you using the full version or the free
version of Finale, and what version? Have you tried with different
versions of Finale?


Yes, it's the full version. I've been a Finale user since 1992.

I have not tried the new font with different versions because Finale
2007 is the first version is which Postscript compilation actually
worked with 9-1/4 x 12-1/4 paper.

However, with the other font I mentioned the problem (one offset glyph)
exists in both Finale 2006 and 2007 during Postscript compilation.


Does the problem occur at all sizes (maybe it's some strange hinting
problem)?


I haven't tried all sizes, but it occurs when used at 12, 14 and 16
point.


Did you trim down the FontCreator font (it normally creates hundreds
of unnecessary and empty glyphs, and maybe Finale is choking on the size)?


It's gradually being trimmed. The resulting font is about 40K. The other
font is even small and has considerably fewer points.


Have you (or anyone else) tried recompiling the font with FontLab or
some other more robust font editor?


I only have Font Creator ... fits my budget. I don't know FontLab, but
will check if it has a demo version.


Have you tried it with any other music notation software?


No. But I have tried it in other applications, such as MS Word, and the
offset does not occur. Finale is unique as the only application that
offers the option of creating a Postscript listing from the program
rather than printing to a file. Its Postscript print-to-file function is
badly coded and produces ugly displays and bloated files in Windows (I
mean by a factor of ten to twenty). The Mac version works correctly.


Have you tried a pragmatic solution rather than an ęsthetically and
technically pleasing one? Specifically, open a new font and copy all
of the glyphs from the "bad" one into it and see if the new one then
exhibits the same problem.


A good idea. I will try it. I did swap H and L to test, and the H still
was offset in its new position. But it was within the same font file.


If you could post a copy of the font(s) in question in might help.
(You could put it in the same directory as your sample images).


Thanks very much. I have done that. You'll find them at:
http://maltedmedia.com/images/finale/Opera-Lyrics-OldStyle.ttf
http://maltedmedia.com/images/finale/Opera-Lyrics-Smooth.ttf

The first is the characters as scanned and trimmed, the second is a
working font with the glyphs gradually being smoothed.

Thanks again,
Dennis



An immediate major problem that I see is that there is no 'null'
glyph, having been replaced by "not.def.00" and the "H" glyph is also
in the .notdef position in both of the fonts.

Beyond that, as others have said, there's nothing obviously different
about the "H" glyph by itself. I'm not sure how you'd fix the problem
in Font Creator.

There's a minor unrelated difficulty in the font names - both fonts
have the same "Full Name" of "Opera Lyrics" where all the other
internal font names have the complete names "Opera Lyrics Smooth" or
"Opera Lyrics OldStyle".

Another random thought I had was that there might be a problem in
converting the true-type outlines to postscript (Type 1) outlines.

You might also want to change the "vendor code" from HL (the makers of
FOnt Creator) to MM for maltedmedia :)

Since you're using Google Groups, which can't have attachments, I'll
send you a revised test version directly to your email (assuming that
the one shown here is valid). The revision deletes the characters
mentioned in the first paragraph above, changes the name entries as
indicated, deletes most of the empty glyphs, and is generated with
FontLab.

- Character
Guest
Posted: Wed Mar 28, 2007 4:02 am
I haven't received your file yet, but quick postscript (lowercase!):

I ran the ttf2pt1 and refont converter pair, and they produced what
looks so far like a good Type 1 font. I'm going to install it and run
Finale with it tomorrow, to see if the problem persists. If it's gone,
I'll use that font for this project. Since it's the second font
created with Font Creator to exhibit a misplaced glyph when compiling
Finale postscript, I may find I need to convert the custom fonts to
Type 1 for future Finale projects.

Looking forward to your rework,
Dennis
Character
Posted: Wed Mar 28, 2007 8:03 am
Guest
bathorykitsz@gmail.com wrote:

Quote:
On Mar 27, 8:42 pm, Character <C...@cters.old.style> wrote:


Another random thought I had was that there might be a problem in
converting the true-type outlines to postscript (Type 1) outlines.


Does the Postscript compiler do that?

No. It couldn't possibly - I was way off-base there!


Quote:

You might also want to change the "vendor code" from HL (the makers of
FOnt Creator) to MM for maltedmedia :)


I haven't found the vendor code change yet. Still hunting.

Buried very deep in FontCreator ... under

Format / Settings / Font Settings / General
at the bottom of that window is "Font Vendor Identification" with a
drop down of a standard set of vendors, or you can enter up to 4 upper
case characters. It defaults to "HL"


Quote:
Since you're using Google Groups, which can't have attachments, I'll
send you a revised test version directly to your email (assuming that
the one shown here is valid). The revision deletes the characters
mentioned in the first paragraph above, changes the name entries as
indicated, deletes most of the empty glyphs, and is generated with
FontLab.


Thanks very much. Both emails I've been using are good. The bathory/
bathory/org one is better in general.

I sent it again, because I mistyped your address the first time.

It looks like you've come up with something that solves the immediate
problem. I'd double check the type 1 font created by that old utility
to make sure that it's acceptable to Windows XP, which can be kind of
nit-picking about fonts' validity.

- Character
Character
Posted: Wed Mar 28, 2007 4:04 pm
Guest
bathorykitsz@gmail.com wrote:

Quote:
Character,

Your font revision worked fine -- not only that, but your font
revision then revised and run through Font Creator *also* worked fine.

I just posted this over at the Font Creator forum. Perhaps they'll
have some ideas as to what's happened.

Many thanks for the kind attention ... very much appreciated. Now I
get back to work on the actual opera engraving project!

Dennis



Glad to help, and thank you for being able to see the results!

Now I'll just wait for the opera to appear at the Met or LaScala or
the LA Opera. Or maybe first at Glimmerglass.

- Character



Quote:
Here are the final results that I can produce.

http://maltedmedia.com/images/finale/hi-jay-bad.gif
http://maltedmedia.com/images/finale/hi-jay-good.gif

The first was produced with the Font Creator-originated font, with all
its parameters changed to match the FontLab-modified font.

The second was produced with the FontLab-modified font, after being
run through Font Creator.

Here are the two fonts:
Font Creator: http://maltedmedia.com/images/finale/Opera-Lyrics-Smooth.ttf
FontLab: http://maltedmedia.com/images/finale/OperaLyricsSmoothTest02.ttf

I have tweaked every parameter I could find in the Font Creator-
originated font to match the FontLab-revised font (which, as I say,
was run through Font Creator just to kind of scrub it with whatever
Font Creator does).

Suggestions welcome, as I'd hate to run into this problem again on a
short deadline. Dick? Erwin? Smile

Many thanks,
Dennis
Guest
Posted: Wed Mar 28, 2007 4:04 pm
Character,

Your font revision worked fine -- not only that, but your font
revision then revised and run through Font Creator *also* worked fine.

I just posted this over at the Font Creator forum. Perhaps they'll
have some ideas as to what's happened.

Many thanks for the kind attention ... very much appreciated. Now I
get back to work on the actual opera engraving project!

Dennis

=====

Here are the final results that I can produce.

http://maltedmedia.com/images/finale/hi-jay-bad.gif
http://maltedmedia.com/images/finale/hi-jay-good.gif

The first was produced with the Font Creator-originated font, with all
its parameters changed to match the FontLab-modified font.

The second was produced with the FontLab-modified font, after being
run through Font Creator.

Here are the two fonts:
Font Creator: http://maltedmedia.com/images/finale/Opera-Lyrics-Smooth.ttf
FontLab: http://maltedmedia.com/images/finale/OperaLyricsSmoothTest02.ttf

I have tweaked every parameter I could find in the Font Creator-
originated font to match the FontLab-revised font (which, as I say,
was run through Font Creator just to kind of scrub it with whatever
Font Creator does).

Suggestions welcome, as I'd hate to run into this problem again on a
short deadline. Dick? Erwin? Smile

Many thanks,
Dennis
Guest
Posted: Wed Mar 28, 2007 8:03 pm
Character,

Quick note. A person on the Font Creator forum found the problem.
There are two validation modes in FC -- "global" and "local". I don't
know what the differences mean ... yet; they're not discussed in the
manual, and the font validation dialog doesn't indicate which one is
being used to validate the font. The default validation is "global",
and I'd carefully removed every error it found -- without knowing
there was another validation mode.

It turns out the "local" validation finds more (or other?) errors,
including a glyph starting point that is out of range. Fixing that
point also fixed the placement of the letter.

Now I gotta do some more reading about what points belong to what. :)

Many thanks,
Dennis
Character
Posted: Thu Mar 29, 2007 8:03 am
Guest
bathorykitsz@gmail.com wrote:

Quote:
Character,

Quick note. A person on the Font Creator forum found the problem.
There are two validation modes in FC -- "global" and "local". I don't
know what the differences mean ... yet; they're not discussed in the
manual, and the font validation dialog doesn't indicate which one is
being used to validate the font. The default validation is "global",
and I'd carefully removed every error it found -- without knowing
there was another validation mode.

It turns out the "local" validation finds more (or other?) errors,
including a glyph starting point that is out of range. Fixing that
point also fixed the placement of the letter.

Now I gotta do some more reading about what points belong to what. :)

Many thanks,
Dennis



Thanks for the info ... news to me too!
Guest
Posted: Thu Mar 29, 2007 4:05 pm
Hi all,

In case you've been reading along, here's what we found (explained as
best as I can).

First, here is why I avoid the PDF printing capability of Finale:
Under Windows, it is deeply flawed in screen display, making it
unacceptable for professional examples. It worked from about version
2.2 (1992) to ca. version 97, but has been broken from around version
2000 to the present. The second option of Postscript compilation has
been broken as long as I've used Finale until version 2006, and not
until version 2007 did it perform compilation to 9.25x12.25 paper (or
any custom size). Finally I have been able re-do all my 2000-2005
scores as Postscript compilations, and been able to use PS compiled
versions for customers (such as one requiring this special font).

Now, the font problem solved: It turned out to be how the font was
read by the Postscript compiler. As I mentioned above, the Font
Creator program has two validation modes -- global (how the points and
curves relate to all the glyphs) and local (how the points and curves
relate to the particular glyph). This option is fairly well buried,
not identified in the validation dialog. The default is "global".
Doing a "local" validation uncovered out-of-range points.

Most of these errors are not problematic and almost all applications
handle them correctly. But it turns out that if the first point of a
contour begins with an off-curve point out of range, the glyph is
misplaced to the other side of the bounding rectangle during Finale's
Postscript compilation. This font was scanned from 19th century text,
resulting in a first pass of pretty craggy and mis-sized glyphs. The
glyphs had to be resized, there were hundreds of points to delete to
smooth it out. If one of those resizings or deletions of multiple
points just happened to leave behind an off-curve point out of range
that was a contour's starting point, the font would be misplaced
during compilation to the other side of that point.

It took us several days to find this because it is so rare (the
combination of this uncommon error and a Postscript compilation). The
two opera-lyrics fonts and the music font, all done in FC, now work
correctly. The author of Font Creator had never seen this issue, and
is now adding this to the documentation.

Thanks to Erwin Denissen at Font Creator for being a software author
actually willing to pursue what appears to be somebody else's problem,
to FC user Bhikkhu Pesala for hitting on the idea of changing the
contour's starting point, and to Character here on comp.fonts for
giving us a working font to use as a model.

Dennis
 
Page 1 of 1       All times are GMT
The time now is Wed Jan 07, 2009 9:01 am