Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1198)

Unified Diff: third_party/harfbuzz-ng/src/indic.cc

Issue 10510004: Roll harfbuzz-ng 3b8fd9c48f4bde368bf2d465c148b9743a9216ee (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-warning.cc ('k') | third_party/harfbuzz-ng/src/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/harfbuzz-ng/src/indic.cc
diff --git a/third_party/harfbuzz-ng/src/hb-fallback-shape-private.hh b/third_party/harfbuzz-ng/src/indic.cc
similarity index 67%
copy from third_party/harfbuzz-ng/src/hb-fallback-shape-private.hh
copy to third_party/harfbuzz-ng/src/indic.cc
index d0beb16dec680c23dcc51aef983bcff398555aa6..e00311d8d6eb3470120f0832612a49a1ced87205 100644
--- a/third_party/harfbuzz-ng/src/hb-fallback-shape-private.hh
+++ b/third_party/harfbuzz-ng/src/indic.cc
@@ -1,5 +1,5 @@
/*
- * Copyright © 2011 Google, Inc.
+ * Copyright © 2012 Google, Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
@@ -24,25 +24,23 @@
* Google Author(s): Behdad Esfahbod
*/
-#ifndef HB_FALLBACK_SHAPE_PRIVATE_HH
-#define HB_FALLBACK_SHAPE_PRIVATE_HH
+#include "hb-ot-shape-complex-indic-private.hh"
-#include "hb-private.hh"
+int
+main (void)
+{
+ hb_unicode_funcs_t *funcs = hb_unicode_funcs_get_default ();
-#include "hb-shape.h"
+ printf ("There are split matras without a Unicode decomposition:\n");
+ for (hb_codepoint_t u = 0; u < 0x110000; u++)
+ {
+ unsigned int type = get_indic_categories (u);
+ unsigned int category = type & 0x0F;
+ unsigned int position = type >> 4;
-HB_BEGIN_DECLS
-
-
-HB_INTERNAL hb_bool_t
-hb_fallback_shape (hb_font_t *font,
- hb_buffer_t *buffer,
- const hb_feature_t *features,
- unsigned int num_features,
- const char * const *shaper_options);
-
-
-HB_END_DECLS
-
-#endif /* HB_FALLBACK_SHAPE_PRIVATE_HH */
+ hb_codepoint_t a, b;
+ if (!hb_unicode_decompose (funcs, u, &a, &b))
+ printf ("U+%04X\n", u);
+ }
+}
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-warning.cc ('k') | third_party/harfbuzz-ng/src/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698