Re: Printing Σ (Sigma) not possible in PDF [message #7897 is a reply to message #7896] |
Thu, 02 January 2025 06:27 |
AJM
Messages: 2373 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I tried running a test with the sigma character on my PC using the Times font and it displayed as '?' which is incorrect.
I tried running example_008.php in the TCPDF download as this demonstrates the ability to print numerous UTF-8 characters. I even added 'Großes Sigma: Σ' to the 'German (de)' entry in the examples/data/utf8test.txt file and it printed as it should. I noticed that the font used in that test was 'freeserif', so I changed the font in the RADICORE test to 'freeserif' and the sigma character displayed correctly. I even tried the 'freesans' font, and that displayed correctly as well.
It would appear that the 'Times' font will not display this character, so you will need to switch to a font that does.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
[Updated on: Tue, 07 January 2025 05:12] Report message to a moderator
|
|
|