<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — CHINESE LANGUAGE ISSUE - ONLY HAPPEN ON INVOICE]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6092</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6092&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in CHINESE LANGUAGE ISSUE - ONLY HAPPEN ON INVOICE.]]></description>
		<lastBuildDate>Sat, 23 Jan 2016 03:49:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: CHINESE LANGUAGE ISSUE - ONLY HAPPEN ON INVOICE]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25077#p25077</link>
			<description><![CDATA[<p>I wanted to increase the font size and I entered </p><p>$rep-&gt;Font(+2)</p><p>And once I removed this, the invoice printed properly.</p>]]></description>
			<author><![CDATA[null@example.com (mark0300)]]></author>
			<pubDate>Sat, 23 Jan 2016 03:49:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25077#p25077</guid>
		</item>
		<item>
			<title><![CDATA[Re: CHINESE LANGUAGE ISSUE - ONLY HAPPEN ON INVOICE]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25071#p25071</link>
			<description><![CDATA[<p>Kindly state the offending line you removed.</p><p>Increasing font size is done with:<br /></p><div class="codebox"><pre><code>$rep-&gt;fontSize += 2;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 22 Jan 2016 16:01:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25071#p25071</guid>
		</item>
		<item>
			<title><![CDATA[Re: CHINESE LANGUAGE ISSUE - ONLY HAPPEN ON INVOICE]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25056#p25056</link>
			<description><![CDATA[<p>Hi APMuthu,</p><p>Thanks.&nbsp; I have found the problem.&nbsp; &nbsp;A font type was added in rep107.php some time back and it caused the issue with the Chinese fonts.&nbsp; I have removed this line and the Invoice with non-home currency can be printed now.&nbsp; Sorry for causing the alarm....</p><p>By the way, may I know how do I increase the font size or make the font italic in rep107.php?&nbsp; Will this rep-&gt;Font(+2) work?&nbsp; Or what should the correct line to add?</p><p>Thanks.</p><p>/Mark</p>]]></description>
			<author><![CDATA[null@example.com (mark0300)]]></author>
			<pubDate>Fri, 22 Jan 2016 03:15:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25056#p25056</guid>
		</item>
		<item>
			<title><![CDATA[Re: CHINESE LANGUAGE ISSUE - ONLY HAPPEN ON INVOICE]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25049#p25049</link>
			<description><![CDATA[<p>Since the home currency alone works, check if you make the second currency the home currency and see if that works. We can then isolate the issue of the second currency alone being different in the font set used.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 21 Jan 2016 16:30:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25049#p25049</guid>
		</item>
		<item>
			<title><![CDATA[CHINESE LANGUAGE ISSUE - ONLY HAPPEN ON INVOICE]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25045#p25045</link>
			<description><![CDATA[<p>Hi,</p><p>I have made changes to the respective files and mysql structure to UTF8 so as to cater for Chinese characters entry and output as required by our users.&nbsp; And I have successfully made it work.&nbsp; But I discovered an issue when printing Invoice.&nbsp; And this issue only happened on printing Invoice but not on other documents such as SO, PO, DO <span style="color: blue"><strong>when the home currency and the Invoice currency are different.</strong></span></p><p>Here were what I did to make the system works with Chinese characters:</p><p>-&nbsp; &nbsp;Downloaded the font files: chinese_simplified_cid0, unzipped and place them in reporting/fonts directory<br />-&nbsp; &nbsp;Updated the reporting/includes/class.pdf.inc<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case &quot;ar_EG&quot; : &nbsp; &nbsp; $fontname = &quot;ae_tholoth&quot;; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case &quot;zh_CN&quot; : &nbsp; &nbsp; $fontname = &quot;gbsn00lp&quot;; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case &quot;zh_TW&quot; : &nbsp; &nbsp; $fontname = &quot;chinese_traditional_cid0&quot;; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default :&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fontname =<span style="color: blue"> &quot;chinese_simplified_cid0&quot;</span>;&nbsp; &nbsp; break;<br />-&nbsp; &nbsp;Updated the encoding in lang\installed_languages.inc with UTF8<br />&nbsp; &nbsp; &nbsp; &nbsp; $installed_languages = array (<br />&nbsp; &nbsp; &nbsp; &nbsp; 0 =&gt; <br />&nbsp; &nbsp; &nbsp; &nbsp; array (<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;code&#039; =&gt; &#039;C&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;name&#039; =&gt; &#039;English&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;encoding&#039; =&gt; <span style="color: blue"> &#039;utf-8&#039;,</span><br />-&nbsp; &nbsp;Changed the character set to UTF8.</p><p>With this, the system with English Interface allows of Chinese Characters input and print.&nbsp; We did not encounter any problem when printing PO, SO, Delivery Note with the Chinese Items, Customer names, addresses...etc.&nbsp; However, we have a problem with Invoice when the home and invoice currencies are different and I will get an error &quot;TCPDF error: Unsupported font type:&quot; when printing the Invoice.&nbsp; &nbsp;When I change the currency to match with the invoice currency, then it has no problem of printing.</p><p>Would someone advise how to solve the problem.&nbsp; </p><p>Thank you.</p><p>/Mark</p>]]></description>
			<author><![CDATA[null@example.com (mark0300)]]></author>
			<pubDate>Thu, 21 Jan 2016 07:13:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25045#p25045</guid>
		</item>
	</channel>
</rss>
