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

Unified Diff: components/font_service/public/interfaces/font_service.mojom

Issue 1877673002: Move legacyCreateTypeface to SkFontStyle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DEPS change now that Skia change has landed. Created 4 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: components/font_service/public/interfaces/font_service.mojom
diff --git a/components/font_service/public/interfaces/font_service.mojom b/components/font_service/public/interfaces/font_service.mojom
index 3d53b0007f30616b9eadd31754ebc1fce7ac1aef..7b9bc31b4f84956b134f655302c3638ae17cb983 100644
--- a/components/font_service/public/interfaces/font_service.mojom
+++ b/components/font_service/public/interfaces/font_service.mojom
@@ -4,11 +4,15 @@
module font_service;
-enum TypefaceStyle {
- NORMAL = 0,
- BOLD = 0x01,
- ITALIC = 0x02,
- BOLD_ITALIC = 0x03
+enum TypefaceSlant {
+ ROMAN = 0,
+ ITALIC = 1,
+};
+
+struct TypefaceStyle {
+ uint16 weight;
+ uint8 width;
+ TypefaceSlant slant;
};
// A reference to specific font on the font service.
« no previous file with comments | « components/font_service/public/cpp/font_service_thread.cc ('k') | content/browser/renderer_host/sandbox_ipc_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698