让你的浏览器字体颜值爆表
Tofloor
poster avatar
guanmfei
deepin
2016-02-01 02:24
Author
本帖最后由 guanmfei 于 2016-2-1 11:58 编辑

首先感谢深度团队,windows,osx,ubuntu,archlinux我都用过,在deepin上思源黑体的显示效果我个人觉得是最棒的,但chrome浏览器的默认字体却不尽人意,通过我一下午的怕文终于解决。
先看看对比,
替换字体之前:

替换字体之后:

我做成了chrome扩展
customcss.zip,直接安装即可。
原理是在custom.css中自定义font-family实现字体的替换。




Reply Favorite View the author
All Replies
1 / 2
To page
avatar
guanmfei
deepin
2016-02-01 02:26
#1
安装方法:大家直接解压后,拖到chrome设置的扩展程序页面即可安装
Reply View the author
avatar
loveinccnu
deepin
2016-02-01 02:57
#2
很好很强大
Reply View the author
avatar
guanmfei
deepin
2016-02-01 03:14
#3

谢谢支持!
Reply View the author
avatar
guanmfei
deepin
2016-02-01 19:26
#4
2月1日更新,之前的那一版本在部分网页会有乱码,已经更新。https://bbs.deepin.org/user/24802
Reply View the author
avatar
q1205556364
deepin
2016-02-02 01:04
#5
楼主,好像没什么效果啊,而且我的笔记本自带的字体好小好难看啊。怎么修改字体啊?
Reply View the author
avatar
guanmfei
deepin
2016-02-02 01:35
#6
https://bbs.deepin.org/post/36819
楼主,好像没什么效果啊,而且我的笔记本自带的字体好小好难看啊。怎么修改字体啊? ...

我并没有调字体大小(其实我也不怎么会写css),只是把网页字体替换成思源黑体
Reply View the author
avatar
q1205556364
deepin
2016-02-03 09:50
#7
guanmfei 发表于 2016-2-1 17:35
我并没有调字体大小(其实我也不怎么会写css),只是把网页字体替换成思源黑体 ...

额,chrome浏览器能改字体大小。只是启动你发的这个扩展没效果。。。
Reply View the author
avatar
tsugumi
deepin
2016-02-03 16:57
#8
很好很强大,可是chrome还是没有小狐狸颜值高哎~
Reply View the author
avatar
guanmfei
deepin
2016-02-03 17:07
#9
https://bbs.deepin.org/post/36819
很好很强大,可是chrome还是没有小狐狸颜值高哎~

各有所爱嘛{:4_127:}
Reply View the author
avatar
tsugumi
deepin
2016-02-03 17:54
#10
在S6edge+和windows上肯定是chrome,小狐狸被甩几条街;Mac上chrome比较费电,自带的Safari过得去,所以还是小狐狸;iOS设备默认都要用Safari内核渲染,从来都不用的啦,还因为新的版本固件发布,旧的设备就卡,压根儿就没瞧上眼~
Reply View the author
avatar
evangao06
deepin
2016-02-03 20:03
#11
确实好看了,赞一个
Reply View the author
avatar
shishi
deepin
2016-04-03 18:48
#12
能有XP的字体就好了,W7看到眼花
Reply View the author
avatar
rivers_
deepin
2016-07-29 05:38
#13
要是有firefox的就好了……
Reply View the author
avatar
guanmfei
deepin
2016-07-29 06:14
#14
https://bbs.deepin.org/post/36819
要是有firefox的就好了……

我现在改用油猴脚本了
Reply View the author
avatar
guanmfei
deepin
2016-07-29 06:16
#15
  1. // ==UserScript==
  2. // @name        字体样式美化
  3. // [url=home.php?mod=space&uid=17642]@namespace[/url]   http://daysv.github.com
  4. // @description 使得字体更加好看^_^
  5. // @version     2
  6. // @include       *
  7. // @grant       none
  8. // ==/UserScript==

  9. var css = document.createElement('style');
  10. var text = document.createTextNode('a:hover{color: #39F  !important;text-shadow:-5px 3px 18px #39F !important;-webkit-transition: all 0.3s ease-out;};a{-webkit-transition: all 0.3s ease-out;};*{text-decoration:none!important;font-weight:500!important;}*:not([class*="hermit"]):not([class*="btn"]):not([class*="button"]):not([class*="icon"]):not(i){font-family: "Source Han Sans SC", "Source Han Sans SC" !important; }*{text-shadow:0.005em 0.005em 0.025em #999999 !important;}');
  11. css.appendChild(text);
  12. document.getElementsByTagName('head') [0].appendChild(css);
Copy the Code

Reply View the author
avatar
slg1984
deepin
2016-09-06 18:19
#16
更喜欢油猴脚本的调教,感谢,漂亮很多啊
Reply View the author
avatar
slg1984
deepin
2016-09-06 23:50
#17
https://bbs.deepin.org/user/36957 发现一个问题,思源黑体不能完全显示一些符号之类的,截图是wordpress plugin的
Reply View the author
avatar
chrischen009
deepin
2016-09-07 01:51
#18
可以试用下 opera  感觉非常好用
Reply View the author
avatar
guanmfei
deepin
2016-09-10 01:00
#19
https://bbs.deepin.org/post/36819
@guanmfei 发现一个问题,思源黑体不能完全显示一些符号之类的,截图是wordpress plugin的
...

嗯,的确是有这个问题
Reply View the author
avatar
guanmfei
deepin
2016-09-10 01:04
#20
https://bbs.deepin.org/post/36819
@guanmfei 发现一个问题,思源黑体不能完全显示一些符号之类的,截图是wordpress plugin的
...

我现在改用油猴脚本了
Reply View the author
1 / 2
To page