| 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 17 matching lines...) Expand all Loading... |
| 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-open-file-private.hh" | 34 #include "hb-open-file-private.hh" |
| 35 #include "hb-ot-head-table.hh" | 35 #include "hb-ot-head-table.hh" |
| 36 #include "hb-ot-maxp-table.hh" | 36 #include "hb-ot-maxp-table.hh" |
| 37 | 37 |
| 38 #include "hb-cache-private.hh" | |
| 39 | |
| 40 #include <string.h> | 38 #include <string.h> |
| 41 | 39 |
| 42 | 40 |
| 43 /* | 41 /* |
| 44 * hb_face_t | 42 * hb_face_t |
| 45 */ | 43 */ |
| 46 | 44 |
| 47 const hb_face_t _hb_face_nil = { | 45 const hb_face_t _hb_face_nil = { |
| 48 HB_OBJECT_HEADER_STATIC, | 46 HB_OBJECT_HEADER_STATIC, |
| 49 | 47 |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 void | 470 void |
| 473 hb_face_t::load_num_glyphs (void) const | 471 hb_face_t::load_num_glyphs (void) const |
| 474 { | 472 { |
| 475 hb_blob_t *maxp_blob = OT::Sanitizer<OT::maxp>::sanitize (reference_table (HB_
OT_TAG_maxp)); | 473 hb_blob_t *maxp_blob = OT::Sanitizer<OT::maxp>::sanitize (reference_table (HB_
OT_TAG_maxp)); |
| 476 const OT::maxp *maxp_table = OT::Sanitizer<OT::maxp>::lock_instance (maxp_blob
); | 474 const OT::maxp *maxp_table = OT::Sanitizer<OT::maxp>::lock_instance (maxp_blob
); |
| 477 num_glyphs = maxp_table->get_num_glyphs (); | 475 num_glyphs = maxp_table->get_num_glyphs (); |
| 478 hb_blob_destroy (maxp_blob); | 476 hb_blob_destroy (maxp_blob); |
| 479 } | 477 } |
| 480 | 478 |
| 481 | 479 |
| OLD | NEW |