pyfribidi | simple python wrapper around the fribidi library
kandi X-RAY | pyfribidi Summary
kandi X-RAY | pyfribidi Summary
simple python wrapper around the fribidi library
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pyfribidi
pyfribidi Key Features
pyfribidi Examples and Code Snippets
Community Discussions
Trending Discussions on pyfribidi
QUESTION
I have qr code in PIL Image
and some Arabic text and trying to put the qr Image on a pdf file.
I'm using reportlab.pdfgen
's canvas
.
After a lot of searching I found arabic_reshaper
, someone's project that didn't work, and after reading the source code of textobject.py
I found that I need to install pyfribidi
, installed it, and used drawString(x,y,"مربحا",RTL)
nothing happens.
I'm using arabic_reshaper
as described in the repository, and the RTL
from pyfribidi
ANSWER
Answered 2019-May-07 at 00:37Thanks to some developers who noted that the problem is caused by the font I was able to fix it.
First I downloaded an Arabic TTF
font, and as I'm using linux
I placed it in '/usr/share/fonts'
then I did the following:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyfribidi
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page