mainFree UCS Outline Fonts - Support: sr #107446, Greek missing in FreeMono Type1...

 
 

sr #107446: Greek missing in FreeMono Type1 font

Submitter:  None
Submitted:  Tue 03 Aug 2010 01:14:46 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Not a bug
Privacy:  Public Assigned to:  Stevan_White
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  *BSD
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 20 Aug 2010 11:49:45 AM UTC, comment #8: 

Matthias wrote to me privately:

"
Yes, the original thread "Greek missing" can safely be closed. At the moment
Hebrew and Arabic is not working with CUPS, which perhaps is rather a CUPS
problem, see
http://www.cups.org/newsgroups.php?s21175+gcups.general+v21189+T0
"

It appears that somewhere in CUPS, glyphs are being looked up incorrectly by glyph name rather than by encoding slot.  This is not a FreeFont bug.  Further, the CUPS people seem to be aware and discussing the options.

However, the glyph naming in FreeFont is a little chaotic.  Maybe something I could think about...

Thanks Matthias!

Steve White <Stevan_White>
Group administrator
Wed 18 Aug 2010 02:26:20 PM UTC, comment #7: 

see also this RFE in CUPS: http://www.cups.org/str.php?L3643

Matthias

Matthias Apitz <gurucubano>
Mon 09 Aug 2010 07:04:58 PM UTC, comment #6: 

Hi Matthias,

It's not clear to me just what the problem is, or what its scope might be.

As I understand it, what is proposed (as something easy) is a bulk re-naming of all the characters in FreeFont.  This does not strike me as a good idea at all, or as something easy to do.

People have actually fought over the particular choice of glyph names in some ranges.

If the problem is just with FreeMono, and just with these ranges, then I could take a bit of time to re-name all those glyphs.

Can you confirm the exact scope of the problem?

Cheers!

Steve White <Stevan_White>
Group administrator
Sun 08 Aug 2010 01:53:06 PM UTC, comment #5: 

Hi Steve,

Hebrew and Arabic are not working with CUPS because there is somehow a clash with the names; someone (Helge Blischke) posted in

http://www.cups.org/newsgroups.php?s21196+gcups.general+v21214+T0

"Mathias,

I've set up a virtual Linux (Peppermint Linux, which is based on, and said
to be compatible to, recent Ubuntu, and has CUPS 1.4.3 by default), loaded
the CUPS 1.4.3 sources, compiled it, and replaced the installed texttops
filter by my compiled one (in order to rule out any side effects caused by
the modifications Ubuntu is known to make).
Tests with this confiruration reviealed three things:...

(2) the glyph names
-----------------------------
The texttops filter uses the glyphlist file which maps the unicode code points to the glyph names as specified (as far I could check) in Adobe's AGLNF (Adobe Glyph List for New Fonts). The Gnu FreeMono family, on the other hand, uses "historic" glyph names for the Hebrew and Arabic glyphs which obviously have their origin in the pre-unicode area. An example:
the codepoint 05DC is mapped to afii57676 in both the cups's psglyphs file and the adobe glyphlist, but the latter lists the aliases "lamed" and "lamedhebrew" in addition, and this last one is the glyph name used by the font.

...

What to do:
=========

In the short run, I'd suggest to modify the fonts of the FreeMono family to
be compliant to the cups psglyphs list. This is best done by
1. disassembling the pfa files
2. mapping the glyph names to unicode numbers according the AGL
3. mapping the unicode numbers to the glyph names according to psglyphs
4. reassembling the files
(1 and 4 by t1disasm and t1asm, respectively, from the t1utils suite; 2 and
3 perhaps by a suitable Perl or Python script, I'd suggest).

The other way round - to modify the texttops filter to accept the aliases as specified in the AGL - would require quite a big modification which, I suspect, sould be some 3 to 4 weeks developing and testing. ... "

(EOF citat)

What do you think about this clash of the names and mapping?

Thanks in advance

    Matthias

Matthias Apitz <gurucubano>
Wed 04 Aug 2010 06:45:40 PM UTC, comment #4: 

Hi Steve,

Yes, the original thread "Greek missing" can safely be closed. At the moment Hebrew and Arabic is not working with CUPS, which perhaps is rather a CUPS problem, see
http://www.cups.org/newsgroups.php?s21175+gcups.general+v21189+T0

Concerning Type 1 fonts, the UTF-8 texttops filter of CUPS only supports ASCII Type 1 fonts. So it would be nice if they could be part of download area of FreeFont.

Thanks for all your comments in any case

Matthias

Matthias Apitz <gurucubano>
Wed 04 Aug 2010 06:00:25 PM UTC, comment #3: 

Hi Matthias,

Do I understand that the primary problem has been solved?
Can I close this report?

FWIW, Linux systems can use TrueType fonts directly.
This is really convenient--for the most part one just installs them (it's not strictly that easy, but almost). 

(SPARC, really?)

I'm still not clear on why you want to use Type 1 fonts.  I'm sure it takes rather more work.

If there is anything I can do to help, let me know.  In particular, perhaps I could make another build target in the Makefile.  Let me know if there are any further problems.

Good luck!

Steve White <Stevan_White>
Group administrator
Wed 04 Aug 2010 09:37:40 AM UTC, comment #2: 

Hi Steve,

Some information to put you in the picture: I'm heading a project to make our Library Management System UTF-8 ready. This means in the near future title records, user names, ... will be stored in UTF-8 and not in ISO-8859-1 anymore. We will have many scripts at the same time in the database, logic, and we need print support for many scripts in the UNIX host, using CUPS 1.4.3.

CUPS picks up the fonts for the Unicode ranges from a file

/usr/local/share/cups/charsets/utf-8 which has lines like:

# Each line consists of:
#
#   first last direction width normal bold italic bold-italic
#
0000 00FF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
0100 01FF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
0200 02FF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
0300 03FF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
0400 04FF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
0980 09FF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
1E00 1EFF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
1F00 1FFF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
2000 20FF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
2300 23FF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
2400 24FF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
2500 25FF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa
2600 26FF ltor single FreeMono.pfa FreeMonoBold.pfa FreeMonoOblique.pfa FreeMonoBoldOblique.pfa

'testtops' of CUPS generates a PostScript file based on the above information, which is then translated to PDF by CUPS-PDF using Ghostscript internally. CUPS itself only supports Type1 fonts (that's why the need to convert the fonts to Type1).

My fault yesterday was, that I did not realized that the above font files FreeMono.pfa ... must not only be available for CUPS, but also in the Ghostscript fonts directory for the PDF generation.

Now Greek is fine. I'm still struggling with Hebrew and Bengali.

I'm using FreeBSD on my laptop for all these test, the real system runs on Linux and SPARC.

Thanks

matthias

Matthias Apitz <gurucubano>
Tue 03 Aug 2010 06:28:03 PM UTC, comment #1: 

Hi, Matthias,

Frankly I never tried generating PS Type 1 files, just TrueType and OpenType.

I generated such files, but I'm a bit stuck:

1) How do you "use them" in CUPS?  Please give explicit steps!

2) Where are these script names printed?  What list do you get, exactly?

I see you're on a BSD system.  Out of curiosity, why do you want Type 1 specifically rather than TrueType or OpenType?

Cheers!

Steve White <Stevan_White>
Group administrator
Tue 03 Aug 2010 01:14:46 PM UTC, original submission:  

Hello,

I've fetched freefont-sfd-20090104.tar.gz and generated, using fontforge, the Type 1 ASCII files:
FreeMonoBold.pfa
FreeMonoBold.afm
FreeMono.pfa
FreeMono.afm
FreeMonoBoldOblique.pfa
FreeMonoBoldOblique.afm
FreeMonoOblique.pfa
FreeMonoOblique.afm

Using them in CUPS-1.4.3 a lot of scripts are printed, but not (for example) Greek.

What I'm missing or what I have done wrong?

Thanks in advance

    Matthias

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gurucubano (Posted a comment)
  • -email is unavailable- added by Stevan_White (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-08-20 Stevan_White Open/ClosedOpen Closed
        StatusNeed Info Not a bug
    2010-08-03 Stevan_White StatusNone Need Info
        Assigned toNone Stevan_White

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code