# \#text-insertion

**URL:** https://forum.mupdf.com/tag/text-insertion/6.md

[Latest](https://forum.mupdf.com/latest.md) · [Categories](https://forum.mupdf.com/categories.md) · [Tags](https://forum.mupdf.com/tags.md)

---

## [PyMuPDF Ignores Right-Alignment in Comb Text Fields - Bug?](https://forum.mupdf.com/t/pymupdf-ignores-right-alignment-in-comb-text-fields-bug/337)

<div class="topic-metadata">

**Author:** [@flywire](https://forum.mupdf.com/u/flywire)\
**Replies:** 2\
**Last updated:** [April 14, 2026, 1:54am UTC](https://forum.mupdf.com/t/pymupdf-ignores-right-alignment-in-comb-text-fields-bug/337 "2026-04-14T01:54:01Z")

</div>

Issue: PyMuPDF (fitz) fills right-aligned comb text fields as left-aligned, ignoring PDF alignment attributes. Expected: LastName “Doe” right-aligned in comb field. Actual: “Doe” left-filled, alignment ignored. I also…

---

## [How to debug - no insert\_text found in new pdf](https://forum.mupdf.com/t/how-to-debug-no-insert-text-found-in-new-pdf/201)

<div class="topic-metadata">

**Author:** [@edzob](https://forum.mupdf.com/u/edzob)\
**Replies:** 8\
**Last updated:** [November 20, 2025, 10:19pm UTC](https://forum.mupdf.com/t/how-to-debug-no-insert-text-found-in-new-pdf/201 "2025-11-20T22:19:00Z")

</div>

Hi, my goal is to write text to a pdf. When I open the pdf I only see a white page. I think I have an error in my setup and not in my code. Below a minimal working example. Q: How can I debug this, to find out what i…

---

## [PyMuPDF and using custom TrueType font](https://forum.mupdf.com/t/pymupdf-and-using-custom-truetype-font/168)

<div class="topic-metadata">

**Author:** [@Jamie\_Lemon](https://forum.mupdf.com/u/Jamie_Lemon)\
**Replies:** 2\
**Last updated:** [September 24, 2025, 3:07pm UTC](https://forum.mupdf.com/t/pymupdf-and-using-custom-truetype-font/168 "2025-09-24T15:07:57Z")

</div>

Hello @HaraldLieder ! I’m trying to use a TTF font file to render some text as follows: import pymupdf doc = pymupdf.open() n = doc.insert\_page(-1) page = doc\[0\] pontano = pymupdf.Font(fontname="Pontano Sans Regular",…
