mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Followup: Reorder Hebrew combining classes for better rendering
Patch from Jonathan Kew. Bug 662055 - advanced Hebrew diacritics are shown correctly only in particular order.
This commit is contained in:
1 parent
6e78607ea7
commit
514b6f8866
1 file changed
+10
-10
+10
-10
@@ -104,20 +104,20 @@ _hb_unicode_modified_combining_class (hb_unicode_funcs_t *ufuncs,
|
||||
{
|
||||
int c = hb_unicode_combining_class (ufuncs, unicode);
|
||||
|
||||
/* For Hebrew, we permute the "fixed-position" classes 10-15 into the order
|
||||
/* For Hebrew, we permute the "fixed-position" classes 10-25 into the order
|
||||
* described in the SBL Hebrew manual http://www.sbl-site.org/Fonts/SBLHebrewUserManual1.5x.pdf
|
||||
* (as recommended by http://forum.fontlab.com/archive-old-microsoft-volt-group/vista-and-diacritic-ordering-t6751.0.html)
|
||||
*/
|
||||
static const int permuted_hebrew_classes[25 - 10 + 1] = {
|
||||
/* 10 sheva */ 15,
|
||||
/* 11 hataf segol */ 16,
|
||||
/* 12 hataf patah */ 17,
|
||||
/* 13 hataf qamats */ 18,
|
||||
/* 14 hiriq */ 19,
|
||||
/* 15 tsere */ 20,
|
||||
/* 16 segol */ 21,
|
||||
/* 17 patah */ 22,
|
||||
/* 18 qamats */ 23,
|
||||
/* 10 sheva */ 22,
|
||||
/* 11 hataf segol */ 15,
|
||||
/* 12 hataf patah */ 16,
|
||||
/* 13 hataf qamats */ 17,
|
||||
/* 14 hiriq */ 23,
|
||||
/* 15 tsere */ 18,
|
||||
/* 16 segol */ 19,
|
||||
/* 17 patah */ 20,
|
||||
/* 18 qamats */ 21,
|
||||
/* 19 holam */ 14,
|
||||
/* 20 qubuts */ 24,
|
||||
/* 21 dagesh */ 12,
|
||||
|
||||
Reference in new issue
Block a user