From 6b4d016465f2307fb71019602a3d8e69026937e2 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Tue, 6 Jan 2015 20:28:21 +0000 Subject: [PATCH] Added Noto font support for Simplified Chinese and Korean. The fonts won't be bundled though. Part of #384. --- resources/report/css/typography.css | 53 ++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/resources/report/css/typography.css b/resources/report/css/typography.css index 7099e733..5b5c0c44 100644 --- a/resources/report/css/typography.css +++ b/resources/report/css/typography.css @@ -1,4 +1,5 @@ /* Font definitions */ +/* Roboto */ @font-face { font-family: 'Roboto'; font-style: normal; @@ -47,10 +48,60 @@ font-weight: 700; src: url('../fonts/Roboto-BoldItalic.ttf'); } +/* Noto - Korean */ +@font-face { + font-family: 'Noto'; + font-style: normal; + font-weight: 300; + src: url('../fonts/NotoSansCJKkr-Light.otf'); +} +@font-face { + font-family: 'Noto'; + font-style: normal; + font-weight: 400; + src: url('../fonts/NotoSansCJKkr-Regular.otf'); +} +@font-face { + font-family: 'Noto'; + font-style: normal; + font-weight: 500; + src: url('../fonts/NotoSansCJKkr-Medium.otf'); +} +@font-face { + font-family: 'Noto'; + font-style: normal; + font-weight: 700; + src: url('../fonts/NotoSansCJKkr-Bold.otf'); +} +/* Noto - Simplified Chinese */ +@font-face { + font-family: 'Noto'; + font-style: normal; + font-weight: 300; + src: url('../fonts/NotoSansCJKsc-Light.otf'); +} +@font-face { + font-family: 'Noto'; + font-style: normal; + font-weight: 400; + src: url('../fonts/NotoSansCJKsc-Regular.otf'); +} +@font-face { + font-family: 'Noto'; + font-style: normal; + font-weight: 500; + src: url('../fonts/NotoSansCJKsc-Medium.otf'); +} +@font-face { + font-family: 'Noto'; + font-style: normal; + font-weight: 700; + src: url('../fonts/NotoSansCJKsc-Bold.otf'); +} /* Typography */ html { - font:11pt/1.429 Roboto, sans-serif; + font:11pt/1.429 Roboto, Noto, sans-serif; color: rgba(0, 0, 0, 0.87); font-weight: 400; text-rendering: optimizeLegibility;