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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-font.cc

Issue 475363002: Roll HarfBuzz to 0.9.35 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows build fix attempt Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright © 2011,2014 Google, Inc. 2 * Copyright © 2011,2014 Google, Inc.
3 * 3 *
4 * This is part of HarfBuzz, a text shaping library. 4 * This is part of HarfBuzz, a text shaping library.
5 * 5 *
6 * Permission is hereby granted, without written agreement and without 6 * Permission is hereby granted, without written agreement and without
7 * license or royalty fees, to use, copy, modify, and distribute this 7 * license or royalty fees, to use, copy, modify, and distribute this
8 * software and its documentation for any purpose, provided that the 8 * software and its documentation for any purpose, provided that the
9 * above copyright notice and the following two paragraphs appear in 9 * above copyright notice and the following two paragraphs appear in
10 * all copies of this software. 10 * all copies of this software.
11 * 11 *
12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR 12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN 14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16 * DAMAGE. 16 * DAMAGE.
17 * 17 *
18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, 18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23 * 23 *
24 * Google Author(s): Behdad Esfahbod, Roozbeh Pournader 24 * Google Author(s): Behdad Esfahbod, Roozbeh Pournader
25 */ 25 */
26 26
27 #include "hb-private.hh"
28
29 #include "hb-ot.h"
27 30
28 #include "hb-font-private.hh" 31 #include "hb-font-private.hh"
29 32
30 #include "hb-ot-cmap-table.hh" 33 #include "hb-ot-cmap-table.hh"
31 #include "hb-ot-hhea-table.hh" 34 #include "hb-ot-hhea-table.hh"
32 #include "hb-ot-hmtx-table.hh" 35 #include "hb-ot-hmtx-table.hh"
33 36
34 #include "hb-ot.h"
35
36 #include "hb-private.hh"
37 37
38 38
39 struct hb_ot_font_t 39 struct hb_ot_font_t
40 { 40 {
41 unsigned int num_glyphs; 41 unsigned int num_glyphs;
42 unsigned int num_hmetrics; 42 unsigned int num_hmetrics;
43 const OT::hmtx *hmtx; 43 const OT::hmtx *hmtx;
44 hb_blob_t *hmtx_blob; 44 hb_blob_t *hmtx_blob;
45 45
46 const OT::CmapSubtable *cmap; 46 const OT::CmapSubtable *cmap;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 { 280 {
281 hb_ot_font_t *ot_font = _hb_ot_font_create (font); 281 hb_ot_font_t *ot_font = _hb_ot_font_create (font);
282 if (unlikely (!ot_font)) 282 if (unlikely (!ot_font))
283 return; 283 return;
284 284
285 hb_font_set_funcs (font, 285 hb_font_set_funcs (font,
286 _hb_ot_get_font_funcs (), 286 _hb_ot_get_font_funcs (),
287 ot_font, 287 ot_font,
288 (hb_destroy_func_t) _hb_ot_font_destroy); 288 (hb_destroy_func_t) _hb_ot_font_destroy);
289 } 289 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-open-type-private.hh ('k') | third_party/harfbuzz-ng/src/hb-ot-layout-gpos-table.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698