You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will depend on how to superscript was set: If it was set using the superscript character "²", then it should be in one string. However, normally superscript is produced manually by using a smaller font and offsetting the baseline. In the latter case two strings would be returned.
If it was set using the superscript character "²", then it should be in one string
Unlike what you are saying above, my case uses the superscript character to display a prawn document with the string m²- for denominating square meters -, using text 'm²'. This produces 2 strings in PDF::Inspector. The size of the strings array is 2. If you can double check, pls.
Another option might be font fallback. If your current font doesn't have a glyph for supperscript character Prawn might switch to fallback font. Font switch produces another string in PDF.
Since we don't have reproducible example we can only guess.
If a string contains a superscript char like
m²
, then thePDF::Inspector::Text.analyze(some_pdf).strings
array will produce 2 strings:instead of a single array entry with
m²
The text was updated successfully, but these errors were encountered: