X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fharfbuzz-ng%2Fsrc%2Fhb-ot-font.cc;h=3514fcc27be88f246fb8687c6d651e98031f7425;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=8ddc41713f6e3314353c75d437cfae36f46bc5c7;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/harfbuzz-ng/src/hb-ot-font.cc b/src/third_party/harfbuzz-ng/src/hb-ot-font.cc index 8ddc417..3514fcc 100644 --- a/src/third_party/harfbuzz-ng/src/hb-ot-font.cc +++ b/src/third_party/harfbuzz-ng/src/hb-ot-font.cc @@ -24,6 +24,9 @@ * Google Author(s): Behdad Esfahbod, Roozbeh Pournader */ +#include "hb-private.hh" + +#include "hb-ot.h" #include "hb-font-private.hh" @@ -31,9 +34,6 @@ #include "hb-ot-hhea-table.hh" #include "hb-ot-hmtx-table.hh" -#include "hb-ot.h" - -#include "hb-private.hh" struct hb_ot_font_t @@ -81,12 +81,15 @@ _hb_ot_font_create (hb_font_t *font) const OT::CmapSubtable *subtable_uvs = NULL; /* 32-bit subtables. */ + if (!subtable) subtable = cmap->find_subtable (3, 10); if (!subtable) subtable = cmap->find_subtable (0, 6); if (!subtable) subtable = cmap->find_subtable (0, 4); - if (!subtable) subtable = cmap->find_subtable (3, 10); /* 16-bit subtables. */ - if (!subtable) subtable = cmap->find_subtable (0, 3); if (!subtable) subtable = cmap->find_subtable (3, 1); + if (!subtable) subtable = cmap->find_subtable (0, 3); + if (!subtable) subtable = cmap->find_subtable (0, 2); + if (!subtable) subtable = cmap->find_subtable (0, 1); + if (!subtable) subtable = cmap->find_subtable (0, 0); /* Meh. */ if (!subtable) subtable = &OT::Null(OT::CmapSubtable);