Comments (1)
支持标点悬挂(hanging-punctuation),用法见文档。
实现方法陈奕钧在内核恐慌第 16 期结尾(1:33:40-1:37:00)介绍过,是一个非常巧妙的 hack。因为行尾的半角空格会被浏览器的排版引擎挤出去,所以将可以悬挂的标点符号都替换为半角空格,再搭配专门制作的 web font 将半角空格显示为一个汉字(全角标点符号)的大小,最后将原来的标点叠加上去,这样就实现了标点悬挂(也就是利用浏览器对空格的处理机制给可悬挂的标点定位)。
from han.
Related Issues (20)
- Conflict With Font-awesome CSS HOT 2
- 在<a>中禁用相邻文本装饰线跳脱 HOT 3
- 自定義 css 的 ruby rt 字體顏色經 javascript 眩染後顏色回到預設值 HOT 1
- Include Source Han Serif
- 注音行間注在直排時聲號顯示錯位 HOT 1
- 如何啟用「冒號-開引號」的標點擠壓 HOT 1
- 官方网站以及文档无法访问 HOT 1
- 語言屬性值的思考 HOT 1
- Windows 10 上面中文無粗體 HOT 1
- 啓用漢字時,間距變小,與note tag插件樣式衝突導致錯誤
- 请问有计划release新的版本吗?
- 西尔里文的问题 HOT 1
- css.hanzi.co 网站挂了 HOT 1
- Proposal: support "wavy underline" form title mark (甲式書名號) HOT 3
- 标点悬挂在 Chrome 85 (Mac) 里出现错误 HOT 1
- Follow CLREQ(Requirements for Chinese Text Layout) HOT 2
- 标点挤压与 `white-space: nowrap` 冲突 HOT 2
- 中英混排使用著重號時著是否需每個英數字都加著重號? HOT 1
- Chromium 123 text-spacing-trim 与标点挤压冲突 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from han.