bugGNU TeXmacs - Bugs: bug #38031, Encoding of Pandora font


You are not allowed to post comments on this tracker with your current authentication level.

bug #38031: Encoding of Pandora font

Submitted by:  Miguel de Benito <mdbenito>
Submitted on:  Sun 06 Jan 2013 08:24:29 PM UTC  
Category: TypesetterPriority: 5 - Normal
Item Group: ErrorStatus: Fixed
Privacy: PublicAssigned to: Joris van der Hoeven <vdhoeven>
Originator Name: Open/Closed: Closed
Release: Release: None
Fixed Release: NoneFixed Release: 

Fri 29 Nov 2013 05:58:59 PM UTC, comment #1:

OK, I applied your patch. I cannot really test with the old style font mechanism, because TeX did not install any Pandora fonts on my system (I hard copied them, so they are only recognized by the new font system). It seems that the Pandora fonts use the EC encoding except for the range 0 until 31, where they follow the CM encoding. Well, all this is really exotic and deprecated, but I applied your patch; thanks.

Joris van der Hoeven <vdhoeven>
Project AdministratorIn charge of this item.
Sun 06 Jan 2013 08:24:29 PM UTC, original submission:

Select Document->Program font->Pandora and open a scheme session. Type an accented letter, like á ä ö. The letters displayed are ok, but the overlayed accents are not («, instead of ´ for instance).

The font rules for Pandora fonts in fonts-ec.scm say they are CM instead of EC. This results in find_font() instantiating them via tex_cm_font(). As a result typesetting of accented characters happens using CM_accents[] and CM_unaccented[], which I think follow the OT1 font encoding (see ftp://ftp.dante.de/pub/tex/macros/latex/doc/encguide.pdf ).

However, the proper encoding for whatever font is actually used seems to be T1 (sloppily checked changing the character codes in CM_accents[] to follow T1, i.e \01 instead of \23, for the acute accent, etc.)

The attached patch changes the font rules for Pandora. Because I'm not sure the problem is not due to the lack of a particular font in my system or some weird side-effect thereof, I cannot commit until someone knowledgeable gives some input.

Miguel de Benito <mdbenito>
Project Member


Attached Files
file #27210:  pandora-ec.patch added by mdbenito (1KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by vdhoeven (Posted a comment)
  • -unavailable- added by mdbenito (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 29 Nov 2013 05:58:59 PM UTCvdhoevenStatusNeed Info=>Fixed
      Assigned tomdbenito=>vdhoeven
    Thu 15 Aug 2013 07:36:52 PM UTCmdbenitoStatusConfirmed=>Need Info
      Assigned toNone=>mdbenito
    Sun 06 Jan 2013 08:24:29 PM UTCmdbenitoAttached File-=>Added pandora-ec.patch, #27210

    Back to the top

    Powered by Savane 3.1-cleanup1