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

Side by Side Diff: src/ots.cc

Issue 139563002: [OTS] Add support for the MATH table. (Closed) Base URL: https://chromium.googlesource.com/external/ots.git@master
Patch Set: More fixes. Created 6 years, 11 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 | « src/ots.h ('k') | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "ots.h" 5 #include "ots.h"
6 6
7 #include <sys/types.h> 7 #include <sys/types.h>
8 #include <zlib.h> 8 #include <zlib.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 { "GDEF", ots::ots_gdef_parse, ots::ots_gdef_serialise, 134 { "GDEF", ots::ots_gdef_parse, ots::ots_gdef_serialise,
135 ots::ots_gdef_should_serialise, ots::ots_gdef_free, false }, 135 ots::ots_gdef_should_serialise, ots::ots_gdef_free, false },
136 { "GPOS", ots::ots_gpos_parse, ots::ots_gpos_serialise, 136 { "GPOS", ots::ots_gpos_parse, ots::ots_gpos_serialise,
137 ots::ots_gpos_should_serialise, ots::ots_gpos_free, false }, 137 ots::ots_gpos_should_serialise, ots::ots_gpos_free, false },
138 { "GSUB", ots::ots_gsub_parse, ots::ots_gsub_serialise, 138 { "GSUB", ots::ots_gsub_parse, ots::ots_gsub_serialise,
139 ots::ots_gsub_should_serialise, ots::ots_gsub_free, false }, 139 ots::ots_gsub_should_serialise, ots::ots_gsub_free, false },
140 { "vhea", ots::ots_vhea_parse, ots::ots_vhea_serialise, 140 { "vhea", ots::ots_vhea_parse, ots::ots_vhea_serialise,
141 ots::ots_vhea_should_serialise, ots::ots_vhea_free, false }, 141 ots::ots_vhea_should_serialise, ots::ots_vhea_free, false },
142 { "vmtx", ots::ots_vmtx_parse, ots::ots_vmtx_serialise, 142 { "vmtx", ots::ots_vmtx_parse, ots::ots_vmtx_serialise,
143 ots::ots_vmtx_should_serialise, ots::ots_vmtx_free, false }, 143 ots::ots_vmtx_should_serialise, ots::ots_vmtx_free, false },
144 { "MATH", ots::ots_math_parse, ots::ots_math_serialise,
145 ots::ots_math_should_serialise, ots::ots_math_free, false },
144 // TODO(bashi): Support mort, base, and jstf tables. 146 // TODO(bashi): Support mort, base, and jstf tables.
145 { 0, NULL, NULL, NULL, NULL, false }, 147 { 0, NULL, NULL, NULL, NULL, false },
146 }; 148 };
147 149
148 bool ProcessGeneric(ots::OpenTypeFile *header, 150 bool ProcessGeneric(ots::OpenTypeFile *header,
149 uint32_t signature, 151 uint32_t signature,
150 ots::OTSStream *output, 152 ots::OTSStream *output,
151 const uint8_t *data, size_t length, 153 const uint8_t *data, size_t length,
152 const std::vector<OpenTypeTable>& tables, 154 const std::vector<OpenTypeTable>& tables,
153 ots::Buffer& file); 155 ots::Buffer& file);
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 va_start(va, format); 742 va_start(va, format);
741 std::vfprintf(stderr, format, va); 743 std::vfprintf(stderr, format, va);
742 va_end(va); 744 va_end(va);
743 std::fprintf(stderr, "\n"); 745 std::fprintf(stderr, "\n");
744 std::fflush(stderr); 746 std::fflush(stderr);
745 } 747 }
746 } 748 }
747 #endif 749 #endif
748 750
749 } // namespace ots 751 } // namespace ots
OLDNEW
« no previous file with comments | « src/ots.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698