Myanmar Tharlon font
Added @font-face "Tharlon"
Myanmar Tharlon font by jitsai
Details
Authorjitsai
LicenseNo License
Categoryuserstyles
Created
Updated
Size4.9 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Clone from : https://github.com/vednoc/custom-fonts
https://userstyles.world/style/85/custom-fonts
Source code
/* ==UserStyle==
@name Myanmar Tharlon font | Cloned from Custom fonts
@namespace github.com/vednoc/custom-fonts
@description Apply custom base font globally.
@author vednoc <vednoc@pm.me> (https://github.com/vednoc)
@homepageURL https://github.com/vednoc/custom-fonts
@supportURL https://github.com/vednoc/custom-fonts/issues
@preprocessor stylus
@version 0.3.0
@license MIT
@var text base 'Base font' '"Tharlon"'
@var text mono 'Mono font' '"Tharlon"'
==/@var checkbox inputs 'Use monospace font in input areas' 0== */
==/UserStyle== */
@-moz-document regexp("https?://.*") {
@font-face {
font-family: 'Tharlon';
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
/* https://www.google.com/get/noto/help/guidelines/ */
@font-face {
font-family: "Google Sans";
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
@font-face {
font-family: "Noto Sans Myanmar";
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
@font-face {
font-family: "Noto Sans Myanmar Regular";
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
@font-face {
font-family: "Noto Sans Myanmar Bold";
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
@font-face {
font-family: "Noto Sans Myanmar Light";
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
@font-face {
font-family: "Myanmar MN";
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
@font-face {
font-family: "Myanmar MN Bold";
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
@font-face {
font-family: "Myanmar Sangam MN";
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
@font-face {
font-family: "Myanmar Sangam MN Bold
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
@font-face {
font-family: "serif";
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
@font-face {
font-family: "Arial";
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
@font-face {
font-family: "arial";
src: url('https://fonts.gstatic.com/ea/tharlon/v3/Tharlon-Regular.ttf') format('truetype');
}
i = !important
// Exclude default code areas.
// n ?= ':not(code):not(pre):not(pre > span):not(code > span)'.
// Exclude icon fonts.
n += ':not(.i):not(.icon)'
n += ':not(.fa):not(.fab):not(.fad):not(.fal):not(.far):not(.fas)'
n += ':not([class*="octicon-"])' // github
n += ':not(.glyphicon)' // searx
n += ':not([aria-hidden=true])' // google meet
n += ':not([class*=material-icons])' // material icons
n += ':not([class*=icofont])' // icofont icons
n += ':not([class*=selector__glyph][data-bind])' // fontello icons
// Exclude icons on DuckDuckGo.
n += ':not(input[id^="search"][type=submit][value=S])' // search bar
n += ':not([class*="js-side-menu-"])' // navbar menu
n += ':not(.ddgsi):not(.btn--icon)' // misc icons
// Exclude code areas on GitHub.
n += ':not([class^="blob-"]):not([class^="blob-"] > span)'
// Exclude code areas on GitLab.
n += ':not(.diff-line-num):not(pre > code > span span)'
n += ':not(.diff-viewer *)' // commit diff
// Editors.
// n += ':not(.ace_editor):not(.ace_editor *)' // #2,
// n += ':not(.CodeMirror):not(.CodeMirror *)'.
//n += ':not(.monaco-editor *)'.
// n += ':not(#squire *)' // protonmail.
// Use monospace input font on Discord.
if inputs {
n += ':not([data-slate-editor=true] *)'
}
// Exclude Gmail composer and font menu.
n += ':not(div[jsaction][jslog] *)'
n += ':not([id][style*="font-family"]):not([id][style*="font-family"] *)'
// Exclude utility classes for fonts.
n += ':not(.monospace):not(.text-mono)'
// Feat -> Change base fonts in input areas.
if inputs {
n += ':not(input):not(textarea)'
// Gmail elements.
$d ?= ':not([g_editable])'
$i ?= ':not([name="subjectbox"])'
// Workaround for specificity issues.
:not(#z) {
[contenteditable="true"]{ $d } *,
input{ $i },
textarea {
font-family: mono, monospace, Tharlon i
}
}
}
// Generate.
{ n } {
font-family: base, serif, Tharlon i
}