Adding fonts for ITextAdding fonts for ITexthttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1206112782024-03-29T04:50:33Z2024-03-29T04:50:33ZRE: Adding fonts for ITextDaniel Ghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1206232272021-02-17T11:42:13Z2021-02-17T11:42:13Z<p>Hi,</p>
<p> </p>
<p>Finally I got it, I pasted the way for anyone who need it</p>
<pre><code class="language-java">String path = "/META-INF/resources/ttf/TrebuchetMS.ttf";
BaseFont baseFont = BaseFont.createFont(path, BaseFont.IDENTITY_H,true);
Font trebuchetFont = new Font(baseFont);</code></pre>
<p>Regards</p>
<p> </p>Daniel G2021-02-17T11:42:13ZAdding fonts for ITextDaniel Ghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1206112772021-02-12T08:33:05Z2021-02-12T08:33:05Z<p>Hi,</p>
<p>I am trying to add Trebuchet MS font for using it with Itext for
creating pdfs. I've pasted the ttf file in resources/ttf/ but I am not
able to make it work. Anyone can give me any idea of how to do it? </p>
<p>I've tried so many ways but I can't make it work</p>
<p> </p>
<p&