OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2009 Red Hat, Inc. | 2 * Copyright © 2009 Red Hat, Inc. |
3 * Copyright © 2012 Google, Inc. | 3 * Copyright © 2012 Google, Inc. |
4 * | 4 * |
5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
6 * | 6 * |
7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
(...skipping 13 matching lines...) Expand all Loading... |
24 * | 24 * |
25 * Red Hat Author(s): Behdad Esfahbod | 25 * Red Hat Author(s): Behdad Esfahbod |
26 * Google Author(s): Behdad Esfahbod | 26 * Google Author(s): Behdad Esfahbod |
27 */ | 27 */ |
28 | 28 |
29 #include "hb-private.hh" | 29 #include "hb-private.hh" |
30 | 30 |
31 #include "hb-ot-layout-private.hh" | 31 #include "hb-ot-layout-private.hh" |
32 | 32 |
33 #include "hb-font-private.hh" | 33 #include "hb-font-private.hh" |
34 #include "hb-blob.h" | |
35 #include "hb-open-file-private.hh" | 34 #include "hb-open-file-private.hh" |
36 #include "hb-ot-head-table.hh" | 35 #include "hb-ot-head-table.hh" |
37 #include "hb-ot-maxp-table.hh" | 36 #include "hb-ot-maxp-table.hh" |
38 | 37 |
39 #include "hb-cache-private.hh" | 38 #include "hb-cache-private.hh" |
40 | 39 |
41 #include <string.h> | 40 #include <string.h> |
42 | 41 |
43 | 42 |
44 /* | 43 /* |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 void | 472 void |
474 hb_face_t::load_num_glyphs (void) const | 473 hb_face_t::load_num_glyphs (void) const |
475 { | 474 { |
476 hb_blob_t *maxp_blob = OT::Sanitizer<OT::maxp>::sanitize (reference_table (HB_
OT_TAG_maxp)); | 475 hb_blob_t *maxp_blob = OT::Sanitizer<OT::maxp>::sanitize (reference_table (HB_
OT_TAG_maxp)); |
477 const OT::maxp *maxp_table = OT::Sanitizer<OT::maxp>::lock_instance (maxp_blob
); | 476 const OT::maxp *maxp_table = OT::Sanitizer<OT::maxp>::lock_instance (maxp_blob
); |
478 num_glyphs = maxp_table->get_num_glyphs (); | 477 num_glyphs = maxp_table->get_num_glyphs (); |
479 hb_blob_destroy (maxp_blob); | 478 hb_blob_destroy (maxp_blob); |
480 } | 479 } |
481 | 480 |
482 | 481 |
OLD | NEW |