Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于将字体插入到书本中 #273

Open
IFRFSX opened this issue Apr 6, 2019 · 2 comments
Open

关于将字体插入到书本中 #273

IFRFSX opened this issue Apr 6, 2019 · 2 comments

Comments

@IFRFSX
Copy link

IFRFSX commented Apr 6, 2019

可以这样来插入字体:


<html>
<head>
<title>测试</title>
<link rel=stylesheet type=text/css href=main.css>
</head>
<body>
<style>

@font-face
{
font-family: fsfs-font;
src: url('XXXX.ttf');
}

.ss
{
color:cyan;
font-family: fsfs-font;
font-size: 72;
}
</style>

<p class=ss>xxxx</p>



</body>
</html>

字体下载:https://www.zcool.com.cn/special/zcoolfonts/
点击右侧的“免费字体”就可以了。只是那几个免费字体的下载链接是打乱的,不对应的……

@IFRFSX
Copy link
Author

IFRFSX commented Apr 6, 2019

注:Markdown可以写入html的标签的

@tonghuix
Copy link
Contributor

请直接提交 PR 吧!

目前 HTML 版用的字体依旧是 Github 或者 Readthedocs 内置提供的,有时候 readthedocs 会调 Google 字体,在国内访问会有点问题。@IFRFSX 是否愿意尝试解决一下?我们在生成 readthedocs 的时候用的是 mkdocs 这个 python 包,应该也可以定义 CSS 和嵌入字体。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants