bugThe FreeType Project - Bugs: bug #52467, Can no longer detect absence of MS...

 
 

bug #52467: Can no longer detect absence of MS unicode cmap tables.

Submitted by:  Tor Andersson <ccxvii>
Submitted on:  Mon 20 Nov 2017 01:07:54 PM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: Ready For TestPrivacy: Public
Assigned to: Alexei Podtelezhnikov <podtelez>Open/Closed: Closed
Planned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 20 Nov 2017 06:19:13 PM UTC, comment #3:

That'll work. Thanks.

Tor Andersson <ccxvii>
Mon 20 Nov 2017 06:10:17 PM UTC, comment #2:

FT_Get_CMap_Format is this mechanism. Synthetic unicode charmap will return -1, whereas actual SFNT charmaps have valid formats.

Please let as know if this mechanism is deficient.

Alexei Podtelezhnikov <podtelez>
Project MemberIn charge of this item.
Mon 20 Nov 2017 05:21:10 PM UTC, comment #1:

We have already discussed that, IIRC. Alexei, can you try to implement a flag so that we can provide an `FT_HAS_SYNTHESIZED_CMAP' macro?

Werner LEMBERG <wl>
Project Administrator
Mon 20 Nov 2017 01:07:54 PM UTC, original submission:

The PDF interpreter in MuPDF requires that we be able to detect whether a MS unicode cmap table is actually present in the TTF file. If a font has no MS unicode cmap table, we need to use the
MacRoman cmap table instead.

The following commit makes this impossible, since we cannot detect the absence of a MS unicode cmap table anymore! Please set a flag in the CMap to indicate that it is synthesized and not part of the original TTF font file.

Commit 75cb071b3fbfa2315c5d458fee2bb465a14568ae
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date: Wed Jun 21 22:52:37 2017 -0400

[sfnt] Synthesize a Unicode charmap if one is missing.

Tor Andersson <ccxvii>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by podtelez (Posted a comment)
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by ccxvii (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 Nov 2017 06:10:17 PM UTCpodtelezStatusNone=>Ready For Test
      Open/ClosedOpen=>Closed
    Mon 20 Nov 2017 05:21:10 PM UTCwlAssigned toNone=>podtelez

    Back to the top


    Powered by Savane 3.1-cleanup1