szclsya / dotfiles Goto Github PK
View Code? Open in Web Editor NEWMy practical Linux desktop config.
My practical Linux desktop config.
劳烦请作者帮助我一下
我偏好使用github 的默认字体,例如markdown代码块中的默认字体
我复制https://github.com/szclsya/dotfiles/blob/master/fontconfig/fonts.conf
到我的~/.config/fontconfig/
中
删除了以下三项
<!-- Map fonts that are commonly used by web pages to our preferred fonts -->
<match target="pattern">
<test qual="any" name="family"><string>Liberation Sans</string></test>
<edit name="family" mode="assign" binding="same"><string>sans-serif</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>Liberation Mono</string></test>
<edit name="family" mode="assign" binding="same"><string>monospace</string></edit>
</match>
<selectfont>
<rejectfont>
<pattern>
<patelt name="family" >
<!-- This font is causing problem with GitHub -->
<string>Nimbus Sans</string>
</patelt>
</pattern>
</rejectfont>
</selectfont>
但默认字体仍然没有恢复,
我查看了wiki,浏览了一边/usr/share/fontconfig/conf.avail/
目录下的文件,没有发现可以撤销的配置的地方,如何把这个rejectfont
恢复呢?使用acceptfont
也没有效果
如题
<match>
<edit mode="prepend" name="family">
<string>Noto Sans</string>
</edit>
</match>
这一段会导致优先使用 Noto Sans 而不是 Mono 字体
将 prepend
改为 append_last
就正常了
Liberation 字体替换后导致 Chromium 部分网站页面显示异常。 如 reddiet
:root {
--font-sans: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol',sans-serif
}
删除 'Apple Color Emoji','Segoe UI Emoji'
后显示正常
Anyway thank you for your tutorial.
我希望能在 font.cond
中加入 nerd fonts 的 fallback (我个人使用的是 Symbols Nerd Font
); 另外同样希望有希腊字符和数学字符的 fallback (但这后两者我没有找到合适的字体).
谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.