如何删除“写作模式:vertical-rl&变换:旋转(180DEG)"
仅使用简单而仅使用垂直文本作为侧向导航的一部分:
writing-mode: vertical-rl;
transform: rotate(180deg);
但是,在Chrome& Firefox,在我的两个标准字体上使用 arial & 时代新闻罗马 文本被锯齿状的别名锯齿状,并有错误的信件。
我发现,通过将0.1
添加到该学位上,这“解决”了混叠,并呈现出精美而忠实的字体,而无需任何锯齿状的混音:
transform: rotate(180.1deg);
但是,这增加了倾斜的倾斜度和一个额外的像素。菜单项,长话短说:这不是解决我的问题的(n优雅)解决方案,而是造成了新问题。
是否有另一种(更优雅的)方法可以摆脱垂直-RL和旋转(180DEG)的组合引入的锯齿状混叠?
Arial/Times,180度,直且锯齿状和混蛋。
请注意,字母间距看起来不正确!
arial/times,180.1级,没有锯齿的混叠和在字母之间的正确间距。
但是一切都是倾斜和倾斜的,这是不需要的:
demo
Given some vertical text as part of a sideways navigation using simply and only:
writing-mode: vertical-rl;
transform: rotate(180deg);
However, on both Chrome & Firefox, on both of my standard fontfaces used Arial & Times News Roman text becomes jagged aliased and has a wrong letterspacing.
I have discovered that by adding 0.1
to the degrees this "solves" the aliasing and renders the font beautifully and faithfully without any jagged aliasing:
transform: rotate(180.1deg);
However, this adds a slanted tilt and an extra pixel to the right of the menu items, long story short: it is not a(n elegant) solution to my problem and creates new problems.
Is there another (more elegant) way to get rid of the jagged aliasing introduced by the combination of vertical-rl and rotate(180deg)?
Arial/Times, 180degrees, straight but jagged and aliased.
Notice also how the letter spacing looks incorrect!
Arial/Times, 180.1degrees, no jagged aliasing and a correct spacing between letters.
But everything is slanted and tilted which is unwanted:
Demo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想我找到了解决这个问题的解决方案。您需要一个盒装属性,其值为 border-box 。
I think i found a solution to solve this problem. You need a box-sizing property with a value of border-box.