Ticket #6182 (new defect)

SVN Diffs for #6182

 

Opened 9 months ago

Last modified 4 months ago

Need to apply 'kern' table if 'GPOS' doesn't have 'kern' feature

Reported by: eric Assigned to: eric
Priority: minor Milestone: 4.2
Component: layout Version: Current
Keywords: Cc:
Load: Xref:
Java Version: Operating System:
Project (C/J): ICU4C Weeks: 1
Review:

Description

Currently the LayoutEngine will only process the 'kern' table if the font doesn't have a 'GSUB' table that covers the given script and language. The 'GSUB' table in Times New Roman in Vista covers the Latin script, but the 'GPOS' table does not. This causes the 'kern' table to not be applied.

The correct behavior is to apply the 'kern' table if:

1) There's no 'GPOS' table or 2) The 'GPOS' table doesn't cover the given script and language or 3) The 'GPOS' table doesn't contain a non-empty 'kern' feature.

This will be done in OpenTypeLayoutEngine::adjustGlyphPositions(). If either of the first two cases apply, fGPOSTable will be NULL. To test the third case, we'll need a function that looks in the feature list for the 'kern' feature, and makes sure that it contains at least one lookup.

Attachments

Change History

07/10/08 14:17:57 changed by yoshito

  • priority changed from major to assess.

07/21/08 09:09:13 changed by hchapman

  • priority changed from assess to minor.
  • milestone changed from UNSCH to 4.2.

Add/Change #6182 (Need to apply 'kern' table if 'GPOS' doesn't have 'kern' feature)




Anti spam check: