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

Unified Diff: content/renderer/pepper/pepper_truetype_font_win.cc

Issue 13913006: Add Pepper TrueType font API call to enumerate fonts in a given family. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename IsFont to IsTrueTypeFont. Created 7 years, 8 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
Index: content/renderer/pepper/pepper_truetype_font_win.cc
diff --git a/content/renderer/pepper/pepper_truetype_font_win.cc b/content/renderer/pepper/pepper_truetype_font_win.cc
index 4c09ac59e4f886a350087be3348fdb698e226ddf..83f0af530fec852312b10cefa923b45b5864f502 100644
--- a/content/renderer/pepper/pepper_truetype_font_win.cc
+++ b/content/renderer/pepper/pepper_truetype_font_win.cc
@@ -15,6 +15,7 @@
#include "base/win/scoped_select_object.h"
#include "ppapi/c/dev/ppb_truetype_font_dev.h"
#include "ppapi/c/pp_errors.h"
+#include "ppapi/proxy/serialized_structs.h"
namespace content {
@@ -113,7 +114,7 @@ int32_t PepperTrueTypeFontWin::Describe(
desc->style = font_desc.lfItalic ? PP_TRUETYPEFONTSTYLE_ITALIC :
PP_TRUETYPEFONTSTYLE_NORMAL;
desc->weight = static_cast<PP_TrueTypeFontWeight_Dev>(font_desc.lfWeight);
- desc->width = PP_TRUETYPEFONTWIDTH_NORMAL;
+ desc->width = PP_TRUETYPEFONTWIDTH_NORMAL; // TODO(bbudge) support widths.
desc->charset =
static_cast<PP_TrueTypeFontCharset_Dev>(font_desc.lfCharSet);

Powered by Google App Engine
This is Rietveld 408576698