<?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 How to extend emWin library font? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-extend-emWin-library-font/m-p/515129#M1034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by harper on Sat Oct 26 08:43:29 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The emWin library comes with small text fonts. These could be magnified to 32 pixels but this would give a worse appearance as the digital fonts can give. The digital fonts include only the characters '0' ..' 9' '+' '-' '.'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the digial font &lt;/SPAN&gt;&lt;STRONG&gt;GUI_FontD32 &lt;/STRONG&gt;&lt;SPAN&gt;doesn't provide all but one character I think it would be worth to extend this font. I just need one additonal character '/'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to create the appropriate &lt;/SPAN&gt;&lt;STRONG&gt;GUI_FONT_PROP_EXT&lt;/STRONG&gt;&lt;SPAN&gt; structure that holds the information for the additional character. I realized that the &lt;/SPAN&gt;&lt;STRONG&gt;GUI_FONT &lt;/STRONG&gt;&lt;SPAN&gt;member &lt;/SPAN&gt;&lt;STRONG&gt;pPropExt &lt;/STRONG&gt;&lt;SPAN&gt;must point to a sorted linked list of &lt;/SPAN&gt;&lt;STRONG&gt;GUI_FONT_PROP_EXT &lt;/STRONG&gt;&lt;SPAN&gt;elements. I've built a sorted list and got my new character included. The problem is that I get a scrambled pattern. Even the dump of the existing character bitmaps appears as unrelated to the pixels drawn to screen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the way to add a character to a library font (where no C file is available)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:14:59 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:14:59Z</dc:date>
    <item>
      <title>How to extend emWin library font?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-extend-emWin-library-font/m-p/515129#M1034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by harper on Sat Oct 26 08:43:29 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The emWin library comes with small text fonts. These could be magnified to 32 pixels but this would give a worse appearance as the digital fonts can give. The digital fonts include only the characters '0' ..' 9' '+' '-' '.'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the digial font &lt;/SPAN&gt;&lt;STRONG&gt;GUI_FontD32 &lt;/STRONG&gt;&lt;SPAN&gt;doesn't provide all but one character I think it would be worth to extend this font. I just need one additonal character '/'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to create the appropriate &lt;/SPAN&gt;&lt;STRONG&gt;GUI_FONT_PROP_EXT&lt;/STRONG&gt;&lt;SPAN&gt; structure that holds the information for the additional character. I realized that the &lt;/SPAN&gt;&lt;STRONG&gt;GUI_FONT &lt;/STRONG&gt;&lt;SPAN&gt;member &lt;/SPAN&gt;&lt;STRONG&gt;pPropExt &lt;/STRONG&gt;&lt;SPAN&gt;must point to a sorted linked list of &lt;/SPAN&gt;&lt;STRONG&gt;GUI_FONT_PROP_EXT &lt;/STRONG&gt;&lt;SPAN&gt;elements. I've built a sorted list and got my new character included. The problem is that I get a scrambled pattern. Even the dump of the existing character bitmaps appears as unrelated to the pixels drawn to screen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the way to add a character to a library font (where no C file is available)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-extend-emWin-library-font/m-p/515129#M1034</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:14:59Z</dc:date>
    </item>
  </channel>
</rss>

