Giter Club home page Giter Club logo

Comments (1)

weakish avatar weakish commented on September 24, 2024 7

支持标点悬挂(hanging-punctuation),用法见文档

实现方法陈奕钧在内核恐慌第 16 期结尾(1:33:40-1:37:00)介绍过,是一个非常巧妙的 hack。因为行尾的半角空格会被浏览器的排版引擎挤出去,所以将可以悬挂的标点符号都替换为半角空格,再搭配专门制作的 web font 将半角空格显示为一个汉字(全角标点符号)的大小,最后将原来的标点叠加上去,这样就实现了标点悬挂(也就是利用浏览器对空格的处理机制给可悬挂的标点定位)。

from han.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.