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

Unified Diff: trunk/src/cmap.cc

Issue 341983012: OTS: Add DoNotDropColorBitmapTables() API. (Closed) Base URL: http://ots.googlecode.com/svn/
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/cblc.cc ('k') | trunk/src/ots.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/cmap.cc
===================================================================
--- trunk/src/cmap.cc (revision 113)
+++ trunk/src/cmap.cc (working copy)
@@ -848,9 +848,12 @@
const off_t table_start = out->Tell();
// Some fonts don't have 3-0-4 MS Symbol nor 3-1-4 Unicode BMP tables
- // (e.g., old fonts for Mac). We don't support them.
+ // (e.g., old fonts for Mac). We don't support them except for color bitmap
+ // fonts.
if (!have_304 && !have_314 && !have_034) {
- return OTS_FAILURE();
+ if (!(file->cbdt && file->cblc)) {
+ return OTS_FAILURE();
+ }
}
if (!out->WriteU16(0) ||
« no previous file with comments | « trunk/src/cblc.cc ('k') | trunk/src/ots.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698