<?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 Re: VGLite draw text example in i.MX Graphics</title>
    <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1647052#M428</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/112870"&gt;@maglash64&lt;/a&gt;&amp;nbsp;You need to give 4-point location for src and 4-point location for dst.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vg_lite_point4_t src={{x0, y0}, {x1, y1}, {x2, y2}, {x3, y3}};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can reference to the code of VGLiteBlit&amp;nbsp;under boards\evkmimxrt1170\vglite_appnote_samples. Below's the download link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note-software/AN13075SW.zip" target="_blank"&gt;https://www.nxp.com/docs/en/application-note-software/AN13075SW.zip&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 09:59:13 GMT</pubDate>
    <dc:creator>howardliu</dc:creator>
    <dc:date>2023-05-09T09:59:13Z</dc:date>
    <item>
      <title>VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1635105#M416</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i try to use the VGlite in an FreeRTOS application. I can display and prozess raster pictures without problems. But now i want to use the "vg_lite_draw_text" function to write a text. I do not find any documentation how to use it.&lt;/P&gt;&lt;P&gt;When i understand the code in a right Way i had to first register the font with "vg_lite_register_font". What i am missin here is how the structure of the "void *data" in vg_lite_font_params has to look like.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;typedef struct vg_lite_font_params
{
    char name[MAX_FONT_NAME_LEN]; /*! font-family name */
    eFontType_t    font_type;     /*! Raster/Vector font */
    eFontWeight_t   font_weight;  /*! Font weight enum value */
    eFontStretch_t  font_stretch; /*! Font stretch enum value */
    eFontStyle_t    font_style;   /*! Font style enum value */
    int font_height;              /*! Font height in pixels */
    int data_len;                 /*! Font data buffer length */
    void *data; /*! the address where the actual font data is stored; it is the
                 * responsibility of the user/application to load it there */
} vg_lite_font_params_t;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any documentation about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 06:23:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1635105#M416</guid>
      <dc:creator>Flo1989</dc:creator>
      <dc:date>2023-04-18T06:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1636074#M417</link>
      <description>&lt;P&gt;Pls refer to the link as below:&lt;/P&gt;
&lt;P&gt;"&lt;A href="https://community.nxp.com/t5/i-MX-RT1170-CAS-Training/GPU2D-Overview-and-VGLite-Library-PDF-and-Examples/ta-p/1179799" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT1170-CAS-Training/GPU2D-Overview-and-VGLite-Library-PDF-and-Examples/ta-p/1179799&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 08:59:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1636074#M417</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-04-19T08:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1636092#M418</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;sry but i have no access to that link.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Flo1989_0-1681895985169.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/219802i5C52E98064AFAA79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Flo1989_0-1681895985169.png" alt="Flo1989_0-1681895985169.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 09:20:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1636092#M418</guid>
      <dc:creator>Flo1989</dc:creator>
      <dc:date>2023-04-19T09:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1637044#M419</link>
      <description>&lt;P&gt;this couldn't be shared on the public community, I will mail to you later&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 06:21:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1637044#M419</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-04-24T06:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1638587#M421</link>
      <description>&lt;P&gt;Hi, I am also facing a similar problem, did you find the solution? What is the format of font to be placed in memory?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 04:46:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1638587#M421</guid>
      <dc:creator>maglash64</dc:creator>
      <dc:date>2023-04-24T04:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1646217#M423</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192473"&gt;@Flo1989&lt;/a&gt;&amp;nbsp;Hi Florian,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use&amp;nbsp;&lt;SPAN&gt;VGLite draw text API, you must have a SVG file containing an embedded font. Please reference to the SVGTiny 1.2 for the embedded font in a SVG.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There is a&amp;nbsp;&lt;I&gt;vectorFontConverter &lt;/I&gt;tool that extracts font data from SVG files&amp;nbsp; and saves it in an intermediate data format known as&lt;STRONG&gt;VFT&lt;/STRONG&gt;-&lt;STRONG&gt;V&lt;/STRONG&gt;ector&lt;STRONG&gt;F&lt;/STRONG&gt;on&lt;STRONG&gt;t&lt;/STRONG&gt;. Then it can be registered with the VGLite driver to enable applications to draw text. This tool will be released as one tool of VGLite toolkit soon.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 02:17:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1646217#M423</guid>
      <dc:creator>howard_liu</dc:creator>
      <dc:date>2023-07-10T02:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1646225#M424</link>
      <description>&lt;P&gt;Thank you for this reply, was looking for the same for some time,&lt;/P&gt;&lt;P&gt;Can you also shed some light on why the vg_lite_prerspective() transform function was removed from the API? using it makes the GPU stop rendering.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 07:37:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1646225#M424</guid>
      <dc:creator>maglash64</dc:creator>
      <dc:date>2023-05-08T07:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1646243#M425</link>
      <description>&lt;P&gt;Now vg_lite_get_transform_matrix() is used to create a perspective matrix. It's easier than&amp;nbsp;&lt;SPAN&gt;vg_lite_prerspective().&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 08:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1646243#M425</guid>
      <dc:creator>howard_liu</dc:creator>
      <dc:date>2023-05-08T08:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1646803#M427</link>
      <description>&lt;P&gt;Hi, can you give an example on how to use vg_lite_get_transform_matrix() API function?&lt;/P&gt;&lt;P&gt;I used it the following way but it did nothing.&lt;/P&gt;&lt;P&gt;the image is stored in the vg_lite_buffer_t image_buffer and has size 256x256 and format&amp;nbsp;VG_LITE_RGBX8888,&lt;/P&gt;&lt;P&gt;target buffer rt is the main frame buffer.&lt;/P&gt;&lt;P&gt;vg_lite_point4_t src={0,0,256,256};&lt;BR /&gt;vg_lite_point4_t dst = {0,0,256,300};&lt;/P&gt;&lt;P&gt;vg_lite_identity(&amp;amp;matrix);&lt;/P&gt;&lt;P&gt;vg_lite_get_transform_matrix(src, dst, &amp;amp;matrix);&lt;/P&gt;&lt;P&gt;vg_lite_blit(&amp;amp;rt, &amp;amp;image_buffer, &amp;amp;matrix, VG_LITE_BLEND_MULTIPLY, 0, VG_LITE_FILTER_BI_LINEAR);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 06:35:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1646803#M427</guid>
      <dc:creator>maglash64</dc:creator>
      <dc:date>2023-05-09T06:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1647052#M428</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/112870"&gt;@maglash64&lt;/a&gt;&amp;nbsp;You need to give 4-point location for src and 4-point location for dst.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vg_lite_point4_t src={{x0, y0}, {x1, y1}, {x2, y2}, {x3, y3}};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can reference to the code of VGLiteBlit&amp;nbsp;under boards\evkmimxrt1170\vglite_appnote_samples. Below's the download link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note-software/AN13075SW.zip" target="_blank"&gt;https://www.nxp.com/docs/en/application-note-software/AN13075SW.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 09:59:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1647052#M428</guid>
      <dc:creator>howardliu</dc:creator>
      <dc:date>2023-05-09T09:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1684361#M447</link>
      <description>&lt;P&gt;I attached an example to show how to use&amp;nbsp;VGLite draw text API for your reference (Only passing IAR tool). The vectorFontConverter tool can be found from NXP.&lt;/P&gt;&lt;P&gt;Usage: vft_create&amp;nbsp; input_svg&amp;nbsp; &amp;nbsp;output_vft&lt;/P&gt;&lt;P&gt;After creating a VFT file, you can use the xxd tool (Linux tool, available in the msys on windows) to create a header file:&lt;/P&gt;&lt;P&gt;xxd -i output_vft &amp;gt; output.h&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 03:29:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1684361#M447</guid>
      <dc:creator>howardliu</dc:creator>
      <dc:date>2023-07-10T03:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1711571#M450</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;trying to access the link too, as we are interested in the&amp;nbsp;offline tool to convert SVG to elementary structures - specifically for vector fonts. Also, a "VGLite Toolkit" is mentioned in&amp;nbsp;AN13778, but I cannot find any resource. Could you help? Thanks in advance.&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 16:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1711571#M450</guid>
      <dc:creator>svoulaz_ik</dc:creator>
      <dc:date>2023-08-25T16:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1888906#M578</link>
      <description>&lt;P&gt;Where this vft_create tool can be found ? I cannot find it anywhere...&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 19:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1888906#M578</guid>
      <dc:creator>radoslawp</dc:creator>
      <dc:date>2024-06-17T19:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1889189#M579</link>
      <description>&lt;P&gt;You can search "vglite toolkit" on nxp.com.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/sps/download/preDownload.jsp" target="_blank"&gt;VGLite Toolkit (nxp.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 06:30:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1889189#M579</guid>
      <dc:creator>howard_liu</dc:creator>
      <dc:date>2024-06-18T06:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: VGLite draw text example</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1891448#M580</link>
      <description>&lt;P&gt;Well apparently there is no vft_create tool in this package, there is svgConverter and eboConverter but no vft_create although there is a manual for that but binary itself is not present. How can I get it than ? Was this package wrongly created that it lacks it ?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 13:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/VGLite-draw-text-example/m-p/1891448#M580</guid>
      <dc:creator>radoslawp</dc:creator>
      <dc:date>2024-06-20T13:28:08Z</dc:date>
    </item>
  </channel>
</rss>

