Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
slack for windowsで日本語フォントをnoto sans cjk jpに変更する。path: C:\Users\<ユーザ名>\AppData\Local\slack\app-<バージョン>\resources\app.asar.unpacked\src\static\lato.less
/*
This is a smaller variant of the new Lato2, serving compressed woff2 files.
Currently: TS-Only
Clients needs to have Lato2 pref turned ON.
The payload is 50% smaller. However, woff2 is not yet well supported,
so we're still providing the woff as fallback.
*/
/* Light */
@font-face {
font-family: 'Slack-Lato';
font-style: normal;
font-weight: 300;
// src: url(slack-resources:fonts/woff2/lato-light.woff2) format('woff2');
src: local('Noto Sans CJK JP');
unicode-range: U+0000-F8FE, U+F900-FFFF;
}
/* Regular */
@font-face {
font-family: 'Slack-Lato';
font-style: normal;
font-weight: 400;
// src: url(slack-resources:fonts/woff2/lato-regular.woff2) format('woff2');
src: local('Noto Sans CJK JP');
unicode-range: U+0000-F8FE, U+F900-FFFF;
}
/* Bold */
@font-face {
font-family: 'Slack-Lato';
font-style: normal;
font-weight: 700;
// src: url(slack-resources:fonts/woff2/lato-bold.woff2) format('woff2');
src: local('Noto Sans CJK JP');
unicode-range: U+0000-F8FE, U+F900-FFFF;
}
/* Black */
@font-face {
font-family: 'Slack-Lato';
font-style: normal;
font-weight: 900;
// src: url(slack-resources:fonts/woff2/lato-black.woff2) format('woff2');
src: local('Noto Sans CJK JP');
unicode-range: U+0000-F8FE, U+F900-FFFF;
}
/* Light Italic */
@font-face {
font-family: 'Slack-Lato';
font-style: italic;
font-weight: 300;
// src: url(slack-resources:fonts/woff2/lato-italic-light.woff2) format('woff2');
src: local('Noto Sans CJK JP');
unicode-range: U+0000-F8FE, U+F900-FFFF;
}
/* Regular Italic */
@font-face {
font-family: 'Slack-Lato';
font-style: italic;
font-weight: 400;
// src: url(slack-resources:fonts/woff2/lato-italic.woff2) format('woff2');
src: local('Noto Sans CJK JP');
unicode-range: U+0000-F8FE, U+F900-FFFF;
}
/* Bold Italic */
@font-face {
font-family: 'Slack-Lato';
font-style: italic;
font-weight: 700;
// src: url(slack-resources:fonts/woff2/lato-italic-bold.woff2) format('woff2');
src: local('Noto Sans CJK JP');
unicode-range: U+0000-F8FE, U+F900-FFFF;
}
/* Black Italic */
@font-face {
font-family: 'Slack-Lato';
font-style: italic;
font-weight: 900;
// src: url(slack-resources:fonts/woff2/lato-italic-black.woff2) format('woff2');
src: local('Noto Sans CJK JP');
unicode-range: U+0000-F8FE, U+F900-FFFF;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.