Is there a simple means of superscripting a substring (e.g. a '%' symbol) of a string in Python when writing that string to a PDF using reportlab via the drawString() method?
Let's say for example, printing a string such as '37%', where I want the '%' symbol to be a superscripted.
My current workaround I suppose is to instead use two separate calls to the drawString() method and specify separate font sizes for each, with coordinates that effectively simulate the superscript notation. Are there any other feasible workarounds that limit this to one call of the drawString() method?
from Superscript a symbol in a string passed to reportlab drawString() method
No comments:
Post a Comment