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

Side by Side Diff: third_party/ots/src/metrics.h

Issue 1252363005: Update OTS to revision a7a3b94 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « third_party/ots/src/maxp.cc ('k') | third_party/ots/src/metrics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef OTS_METRICS_H_ 5 #ifndef OTS_METRICS_H_
6 #define OTS_METRICS_H_ 6 #define OTS_METRICS_H_
7 7
8 #include <new> 8 #include <new>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 15 matching lines...) Expand all
26 int16_t caret_slope_run; 26 int16_t caret_slope_run;
27 int16_t caret_offset; 27 int16_t caret_offset;
28 uint16_t num_metrics; 28 uint16_t num_metrics;
29 }; 29 };
30 30
31 struct OpenTypeMetricsTable { 31 struct OpenTypeMetricsTable {
32 std::vector<std::pair<uint16_t, int16_t> > entries; 32 std::vector<std::pair<uint16_t, int16_t> > entries;
33 std::vector<int16_t> sbs; 33 std::vector<int16_t> sbs;
34 }; 34 };
35 35
36 bool ParseMetricsHeader(OpenTypeFile *file, Buffer *table, 36 bool ParseMetricsHeader(Font *font, Buffer *table,
37 OpenTypeMetricsHeader *header); 37 OpenTypeMetricsHeader *header);
38 bool SerialiseMetricsHeader(const ots::OpenTypeFile *file, 38 bool SerialiseMetricsHeader(const ots::Font *font,
39 OTSStream *out, 39 OTSStream *out,
40 const OpenTypeMetricsHeader *header); 40 const OpenTypeMetricsHeader *header);
41 41
42 bool ParseMetricsTable(const ots::OpenTypeFile *file, 42 bool ParseMetricsTable(const ots::Font *font,
43 Buffer *table, 43 Buffer *table,
44 const uint16_t num_glyphs, 44 const uint16_t num_glyphs,
45 const OpenTypeMetricsHeader *header, 45 const OpenTypeMetricsHeader *header,
46 OpenTypeMetricsTable *metrics); 46 OpenTypeMetricsTable *metrics);
47 bool SerialiseMetricsTable(const ots::OpenTypeFile *file, 47 bool SerialiseMetricsTable(const ots::Font *font,
48 OTSStream *out, 48 OTSStream *out,
49 const OpenTypeMetricsTable *metrics); 49 const OpenTypeMetricsTable *metrics);
50 50
51 } // namespace ots 51 } // namespace ots
52 52
53 #endif // OTS_METRICS_H_ 53 #endif // OTS_METRICS_H_
54 54
OLDNEW
« no previous file with comments | « third_party/ots/src/maxp.cc ('k') | third_party/ots/src/metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698