editly icon indicating copy to clipboard operation
editly copied to clipboard

Urdu not centered in text component

Open whatneuron opened this issue 4 years ago • 2 comments

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

whatneuron avatar Nov 08 '21 00:11 whatneuron

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

mifi avatar Nov 08 '21 03:11 mifi

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);

whatneuron avatar Nov 15 '21 02:11 whatneuron