Revert "Invoices: Support font choice and Arabic text"

This reverts commit d6f0615712.
This commit is contained in:
Raphael Michel
2023-05-22 10:53:06 +02:00
parent d6f0615712
commit 0f8ac3ffb3
6 changed files with 81 additions and 157 deletions

View File

@@ -19,8 +19,6 @@
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
# <https://www.gnu.org/licenses/>.
#
from arabic_reshaper import ArabicReshaper
from django.utils.functional import SimpleLazyObject
from PIL.Image import Resampling
from reportlab.lib.utils import ImageReader
@@ -43,9 +41,3 @@ class ThumbnailingImageReader(ImageReader):
# file handle if the file is a JPEG, and therefore does not respect the
# (smaller) size of the modified image.
return None
reshaper = SimpleLazyObject(lambda: ArabicReshaper(configuration={
'delete_harakat': True,
'support_ligatures': False,
}))