APK errors

In a PDF the letter ə becomes a square

A square means the font has no ə, or the PDF did not embed the font. The reader cannot find the letter and puts an empty box in its place.

Helvetica, many old PDF fonts, and decorative fonts do not carry ə. Arial, Calibri, Times New Roman, and Noto Sans do.

If the square is already inside the PDF, another reader will not fix it. Change the font and write the file again.

from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.pdfgen import canvas

pdfmetrics.registerFont(TTFont("Arial", r"C:\Windows\Fonts\arial.ttf"))
fayl = canvas.Canvas("sened.pdf")
fayl.setFont("Arial", 14)
fayl.drawString(40, 800, "Azərbaycan")
fayl.save()