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

字体模糊问题如何解决? #143

Open
hjane opened this issue Nov 1, 2021 · 1 comment
Open

字体模糊问题如何解决? #143

hjane opened this issue Nov 1, 2021 · 1 comment

Comments

@hjane
Copy link

hjane commented Nov 1, 2021

如题,字体边缘不清晰,字体大小增加后也依然模糊。
const config = {
text: item.text,
x,
y,
};
const text = new FFText(config);
text.setFont(fontsDir + '/msyh.ttf');
text.setDuration(item.duration);
text.addEffect('fadeIn', 1, item.offset);
text.addEffect('fadeOut', 1, item.offset + item.duration - 1);
text.alignCenter();
scene.addChild(text);

@jianshuo
Copy link

jianshuo commented Nov 8, 2021

我猜是不是你没有配置整个creator的width,height?如果不是1080x1960等等这样比较高的分辨率的话,字体的确会很模糊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants