diff --git a/src/styles/fonts/_fonts.scss b/src/styles/fonts/_fonts.scss index cb18ca838..5b33aa505 100644 --- a/src/styles/fonts/_fonts.scss +++ b/src/styles/fonts/_fonts.scss @@ -80,7 +80,7 @@ } @font-face { - font-family: "SSStandard"; + font-family: 'SSStandard'; src: url('//quran-1f14.kxcdn.com/fonts/ss-standard/ss-standard.eot'); src: url('//quran-1f14.kxcdn.com/fonts/ss-standard/ss-standard.eot?#iefix') format('embedded-opentype'), @@ -108,6 +108,17 @@ font-style: normal; } +@font-face { + font-family: 'divehi'; + src: url('//quran-1f14.kxcdn.com/fonts/divehi/divehi.eot?#iefix') + format('embedded-opentype'), + url('//quran-1f14.kxcdn.com/fonts/divehi/divehi.woff2') format('woff2'), + url('//quran-1f14.kxcdn.com/fonts/divehi/divehi.woff') format('woff'), + url('//quran-1f14.kxcdn.com/fonts/divehi/divehi.ttf') format('truetype'), + url('//quran-1f14.kxcdn.com/fonts/divehi/divehi.svg#dhivehiregular') + format('svg'); +} + @font-face { font-family: 'surah_names'; src: url('//quran-1f14.kxcdn.com/fonts/surah_names/surah_names.eot?yg3f94'); @@ -147,37 +158,37 @@ /* This triggers a redraw in IE to Fix IE8's :before content rendering. */ -html:hover [class^="ss-"] { +html:hover [class^='ss-'] { -ms-zoom: 1; } .ss-icon, .ss-icon.ss-standard, -[class^="ss-"]:before, -[class*=" ss-"]:before, -[class^="ss-"].ss-standard:before, -[class*=" ss-"].ss-standard:before, -[class^="ss-"].right:after, -[class*=" ss-"].right:after, -[class^="ss-"].ss-standard.right:after, -[class*=" ss-"].ss-standard.right:after { - font-family: "SSStandard"; +[class^='ss-']:before, +[class*=' ss-']:before, +[class^='ss-'].ss-standard:before, +[class*=' ss-'].ss-standard:before, +[class^='ss-'].right:after, +[class*=' ss-'].right:after, +[class^='ss-'].ss-standard.right:after, +[class*=' ss-'].ss-standard.right:after { + font-family: 'SSStandard'; font-style: normal; font-weight: normal; text-decoration: none; text-rendering: optimizeLegibility; white-space: nowrap; /*-webkit-font-feature-settings: "liga"; Currently broken in Chrome >= v22. Falls back to text-rendering. Safari is unaffected. */ - -moz-font-feature-settings: "liga=1"; - -moz-font-feature-settings: "liga"; - -ms-font-feature-settings: "liga" 1; - -o-font-feature-settings: "liga"; - font-feature-settings: "liga"; + -moz-font-feature-settings: 'liga=1'; + -moz-font-feature-settings: 'liga'; + -ms-font-feature-settings: 'liga' 1; + -o-font-feature-settings: 'liga'; + font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; } -[class^="ss-"].right:before, -[class*=" ss-"].right:before { +[class^='ss-'].right:before, +[class*=' ss-'].right:before { display: none; content: ''; } diff --git a/src/styles/main.scss b/src/styles/main.scss index 8cba0bd3d..08ff65361 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -105,6 +105,9 @@ li em { font-family: monospace; } } +.divehi { + font-family: 'divehi'; +} .text-translation { .urdu, @@ -157,4 +160,4 @@ li em { float: none; } } -} +} \ No newline at end of file diff --git a/static/fonts/divehi/divehi.eot b/static/fonts/divehi/divehi.eot new file mode 100644 index 000000000..4d91ef101 Binary files /dev/null and b/static/fonts/divehi/divehi.eot differ diff --git a/static/fonts/divehi/divehi.svg b/static/fonts/divehi/divehi.svg new file mode 100644 index 000000000..ee4586453 --- /dev/null +++ b/static/fonts/divehi/divehi.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/fonts/divehi/divehi.ttf b/static/fonts/divehi/divehi.ttf new file mode 100644 index 000000000..efc9b4bbe Binary files /dev/null and b/static/fonts/divehi/divehi.ttf differ diff --git a/static/fonts/divehi/divehi.woff b/static/fonts/divehi/divehi.woff new file mode 100644 index 000000000..6997fd67a Binary files /dev/null and b/static/fonts/divehi/divehi.woff differ diff --git a/static/fonts/divehi/divehi.woff2 b/static/fonts/divehi/divehi.woff2 new file mode 100644 index 000000000..a714ea327 Binary files /dev/null and b/static/fonts/divehi/divehi.woff2 differ