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

Urdu not centered in text component #161

Open
whatneuron opened this issue Nov 8, 2021 · 2 comments
Open

Urdu not centered in text component #161

whatneuron opened this issue Nov 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@whatneuron
Copy link

Can I use Editly for creating pictures with text in Urdu language ?

@mifi
Copy link
Owner

mifi commented Nov 8, 2021

you can try. use a font that supports Urdi. If it doesn't work, report back

@mifi mifi closed this as completed Nov 8, 2021
@whatneuron
Copy link
Author

Thanks, its working but text is not coming in middle

image

Here's the code I used

const editly = require('editly');

const editSpec = {
width: 1920,
height: 1080,
fps: 30,
outPath: './output/subtitle.mp4',
defaults: {
layer: {
fontPath: './fonts/jameel.ttf'
},
layerType: {
'fill-color': {
color: '#00aa00'
}
}
},
clips: [{
duration: 5,
transition: {
name: 'dreamyzoom'
},
layers: [{
type: 'title-background',
text: 'جس میں امریکی فٹ بال ٹیم چارجرز کے طور پر جانا جاتا ہے؟',
background: {
type: 'radial-gradient'
},
fontSize: 72
}]
}, ],
}

// See editSpec documentation
editly(editSpec)
.catch(console.error);

@mifi mifi reopened this Nov 15, 2021
@mifi mifi changed the title Can I use Editly for creating pictures with text in Urdu language ? Urdu not centered in text component Nov 15, 2021
@mifi mifi added the bug Something isn't working label Nov 15, 2021
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