Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果汉字不是正方形,旋转后可能会出问题 #5

Open
walkthetalk opened this issue Apr 29, 2024 · 4 comments
Open

如果汉字不是正方形,旋转后可能会出问题 #5

walkthetalk opened this issue Apr 29, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@walkthetalk
Copy link

目前我的想法是先根据宽高比修改xscale,让其横向排版时占据宽度等于高,然后旋转时再恢复xscale,并适当更改所加 hlist 的xoffset。

@Fusyong
Copy link
Owner

Fusyong commented May 1, 2024

碰到实际例子时请告知。
这个问题记得当时考虑了?(当时所用字体中的“一”字不是正方形,而是横向的长方形。)

@walkthetalk
Copy link
Author

lishu
其实我指的主要是字体外框(不是boundingbox),我不确定是不是所有中文字符外框是不是均为正方形。
而即使字体外框是正方形,但boundingbox不是正方形时,也会造成问题,比如隶书本身扁平,旋转后会导致字符间距较大。
其实这个issue应该是竖排模块的。

@Fusyong Fusyong added the bug Something isn't working label May 2, 2024
@Fusyong
Copy link
Owner

Fusyong commented May 2, 2024

请把这个字体的具体名称告诉我。

@walkthetalk
Copy link
Author

walkthetalk commented May 2, 2024

请把这个字体的具体名称告诉我。

fzheilis 方正的隶书,一般隶书都比较扁,而仿宋都比较瘦,这种字体可能会对旋转后的效果带来一定的影响。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants