Show HN: Sidebearing-trim – グリフボックスではなく可視インクにテキストを揃える
テキストをレイアウト端に揃える際、大きなサンセリフフォントでは文字のサイドベアリング(字面とグリフボックスの間の余白)により見た目がずれて見える問題がある。npmパッケージ「sidebearing-trim」は、.woffフォントのメトリクスを解析し、各行の先頭文字のサイドベアリング値に基づいて行をシフトすることで、テキストを可視インク(実際の描画領域)に正確に揃える。
テキストをレイアウト端に揃える際、大きなサンセリフフォントでは文字のサイドベアリング(字面とグリフボックスの間の余白)により見た目がずれて見える問題がある。npmパッケージ「sidebearing-trim」は、.woffフォントのメトリクスを解析し、各行の先頭文字のサイドベアリング値に基づいて行をシフトすることで、テキストを可視インク(実際の描画領域)に正確に揃える。
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.