Fonts & Character SetsFont Error while executing thru PHP Script

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
witzawitz
Posts: 2
Joined: Wed Jun 08, 2011 4:14 pm

Font Error while executing thru PHP Script

Post by witzawitz »

I don't really know if it's the best place to ask but I've tried everything to solve this problem.

I've installed MacTeX (full version) on my mac os (10.6.7).
I do need to generate pdf thru php script. The problem is that while everything works fine in shell but when using shell_exec (or passthru, exec) the font error occurs.

PHP code

Code: Select all

putenv("PATH=".getenv('PATH').":/opt/local/bin:/usr/local/texlive/2010/bin/x86_64-darwin:/usr/texbin");
exec("texi2pdf -c -o work.pdf work.tex");
work.log
The log file.
(6.06 KiB) Downloaded 263 times
So I guess the problem is described in the line

Code: Select all

/Volumes/data/Projects/test/work.tex:13: Font T2A/cmr/m/n/10=larm1000 at 10.0pt
not loadable: Metric (TFM) file not found.
I've found out on different forums that the problem may be with Cyrillic fonts and I need to configure properly my *.tex. But in the shell everything works fine so it could not be misconfigured.

I've set enough access permissions to font files and it didn't help either.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

witzawitz
Posts: 2
Joined: Wed Jun 08, 2011 4:14 pm

Font Error while executing thru PHP Script

Post by witzawitz »

Problem is solved.
Solution is to set properly access to folder

/Users/<username>/Library/texlive
Post Reply