<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ProcessDiagram doesn't display unicode character properly in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/processdiagram-doesn-t-display-unicode-character-properly/m-p/81139#M54218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In our project we need to show a process diagram and some activity's display name is non-alphabet like Chinese character. And they are not rendered properly till version 5.8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose the reason for that is a hardcoded font set in ProcessDiagramCanvas and Arial font only supports ascii characters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Creates an empty canvas with given width and height.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; public ProcessDiagramCanvas(int width, int height) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.canvasWidth = width;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.canvasHeight = height;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.processDiagram = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.g = processDiagram.createGraphics();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.setPaint(Color.black);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Font font = new Font("Arial", Font.BOLD, 11);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.setFont(font);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.fontMetrics = g.getFontMetrics();&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to ask for such features:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Font can be set through engine configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Or at least add a constructor to ProcessDiagram to support font injection, and make changes to ProcessDiagramGenerator to support that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Feb 2012 10:12:26 GMT</pubDate>
    <dc:creator>sherlockq</dc:creator>
    <dc:date>2012-02-29T10:12:26Z</dc:date>
    <item>
      <title>ProcessDiagram doesn't display unicode character properly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processdiagram-doesn-t-display-unicode-character-properly/m-p/81139#M54218</link>
      <description>In our project we need to show a process diagram and some activity's display name is non-alphabet like Chinese character. And they are not rendered properly till version 5.8.I suppose the reason for that is a hardcoded font set in ProcessDiagramCanvas and Arial font only supports ascii characters.&amp;nbsp;</description>
      <pubDate>Wed, 29 Feb 2012 10:12:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processdiagram-doesn-t-display-unicode-character-properly/m-p/81139#M54218</guid>
      <dc:creator>sherlockq</dc:creator>
      <dc:date>2012-02-29T10:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessDiagram doesn't display unicode character properly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processdiagram-doesn-t-display-unicode-character-properly/m-p/81140#M54219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems to me as if you should fill a JIRA issue for this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 16:29:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processdiagram-doesn-t-display-unicode-character-properly/m-p/81140#M54219</guid>
      <dc:creator>sebastian_s</dc:creator>
      <dc:date>2012-02-29T16:29:18Z</dc:date>
    </item>
  </channel>
</rss>

