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

text的文字斜体效果,貌似对中文不生效 #150

Open
rulaishenzhang opened this issue Nov 18, 2021 · 0 comments
Open

text的文字斜体效果,貌似对中文不生效 #150

rulaishenzhang opened this issue Nov 18, 2021 · 0 comments

Comments

@rulaishenzhang
Copy link

rulaishenzhang commented Nov 18, 2021

代码是examples中的text.js

const text3 = new FFText({ text: 斜体的FFCreator支持的文字效果`,
color: '#ffffff',
x: 200,
y: 190,
});
text3.addEffect('zoomIn', 1, 2);
text3.setStyle({
fontSize: 46,
fontStyle: 'italic'
});
scene1.addChild(text3);

const text41 = new FFText({
    text: `非斜体的FFCreator支持的文字效果`,
    color: '#ffffff',
    x: 200,
    y: 360,
});
text41.addEffect('zoomIn', 1, 2);
text41.setStyle({
    fontSize: 46,
});
scene1.addChild(text41);`

效果如下
001

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

1 participant