Show HN: Sidebearing-trim – 按实际墨迹对齐文本,而非字形框
这是一个npm包,用于解决文本对齐时因字体侧边距(sidebearing)导致的视觉缩进问题。通过提取.woff字体度量信息,检测每行视觉起始字符,并按首字符的侧边距值精确偏移每行文本。该问题在大号无衬线字体上尤为明显,W3C早在2014年就提出相关CSS提案但一直未落地。
这是一个npm包,用于解决文本对齐时因字体侧边距(sidebearing)导致的视觉缩进问题。通过提取.woff字体度量信息,检测每行视觉起始字符,并按首字符的侧边距值精确偏移每行文本。该问题在大号无衬线字体上尤为明显,W3C早在2014年就提出相关CSS提案但一直未落地。
The article discusses how new information can lead to a complete rethinking of historical events and their broader implications for society. It presents a story that challenges conventional understanding of past occurrences.
The article discusses artificial intelligence systems and their outputs, referencing Noam Chomsky's perspective on what these systems produce. It includes a poetic reference to "Sediment" from the band Say Anything.
The tweet questions why various charts in America appear to overlay perfectly, suggesting a coordinated pattern across different economic and social metrics. It includes a video reference to further illustrate the point about synchronized data trends.
The article discusses the importance of text in communication and knowledge sharing, emphasizing its enduring value in the digital age. It explores how text remains a fundamental medium for conveying complex ideas and information.
Guillermo Rauch states that obsession is the mother of invention, suggesting that intense focus drives innovation.