<?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 Text vetorization in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4790645#M12719</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use RealDWG 2014.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want to implement our own viewer using RealDWG. How can I vectorize text objects in AcGiWorldGeometry::text method? I know AutoCAD uses Heidi driver to render texts, are any samples describing how to solve this problem?&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2014 12:30:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-03T12:30:20Z</dc:date>
    <item>
      <title>Text vetorization</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4790645#M12719</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use RealDWG 2014.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want to implement our own viewer using RealDWG. How can I vectorize text objects in AcGiWorldGeometry::text method? I know AutoCAD uses Heidi driver to render texts, are any samples describing how to solve this problem?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 12:30:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4790645#M12719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-03T12:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Text vetorization</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4809635#M12720</link>
      <description>&lt;P&gt;Here is a link to a post that illustrate the use of AcGiTextEngine::tessellate method. I hope it will be helpful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/10/explode-text-entity.html" target="_self"&gt;How to explode a text entity&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 22:53:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4809635#M12720</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2014-02-11T22:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Text vetorization</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4822179#M12721</link>
      <description>&lt;P&gt;Thanks for reply. I have written sample code but function 'AcGiTextEngine::tessellate' doesn't call 'PolylineCallback'. Should I initialize something before using it?&lt;/P&gt;&lt;PRE&gt;// fPCallBack - polyline callback, receives vertices
void fPCallBack(int x, int const *y, AcGePoint3d const *z, void *l)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf("fPCallBack()\n");&lt;BR /&gt;}&lt;BR /&gt;
// fUnicodeCallback - unicode function call back, does nothing in current implementation
void fUnicodeCallback(long x, unsigned short const *y, int z, void *l)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf("fUnicodeCallback()\n");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;
int main(void)
{
	acdbSetHostApplicationServices(&amp;amp;gCreatentHostApp);
	long lcid = 0x00000409;  // English
    acdbValidateSetup(lcid);
	AcDbDatabase *db = new AcDbDatabase(false, true);

	db-&amp;gt;readDwgFile(L"test.dwg");
	AcTransaction *trans = db-&amp;gt;transactionManager()-&amp;gt;startTransaction();
	AcDbBlockTable *blockTable;
	db-&amp;gt;getBlockTable(blockTable, AcDb::kForRead);

	AcGiTextEngine *pTextEngine = AcGiTextEngine::create();
	if (blockTable != NULL)
	{
		AcDbBlockTableIterator *blockTableIt;
		blockTable-&amp;gt;newIterator(blockTableIt);
		while (!blockTableIt-&amp;gt;done())
		{
			AcDbBlockTableRecord *block;
			blockTableIt-&amp;gt;getRecord(block, AcDb::kForRead);
			AcDbBlockTableRecordIterator *blockIt;
			Acad::ErrorStatus e = block-&amp;gt;newIterator(blockIt);
			while (!blockIt-&amp;gt;done())
			{
				AcDbEntity *entity;
				blockIt-&amp;gt;getEntity(entity, AcDb::kForRead);
				if (entity-&amp;gt;isKindOf(AcDbText::desc()))
				{
					AcDbText *pText = static_cast&amp;lt;AcDbText *&amp;gt;(entity);
					wprintf(L"Text: %s\n", pText-&amp;gt;textString());

					AcDbTextStyleTableRecord *pTextStyle;
					acdbOpenObject(pTextStyle, pText-&amp;gt;textStyle(), AcDb::kForRead, false);
					bool bIsTTF = false;
					const ACHAR* pFileName;
					pTextStyle-&amp;gt;fileName(pFileName);
					if(NULL != wcsstr(pFileName, L".TTF") || NULL != wcsstr(pFileName, L".ttf"))
						bIsTTF = true;
					pTextStyle-&amp;gt;close();

					AcGiTextStyle mStyle;
					fromAcDbTextStyle(mStyle, pText-&amp;gt;textStyle());
					if (bIsTTF)
						pTextEngine-&amp;gt;tessellate(mStyle,pText-&amp;gt;textString(),-1,true,NULL,(UnicodeCallback)fUnicodeCallback,(PolylineCallback)fPCallBack);
					else
						pTextEngine-&amp;gt;tessellate(mStyle,pText-&amp;gt;textString(),-1,true,0.0,NULL,(PolylineCallback)fPCallBack);
				}
				blockIt-&amp;gt;step();
			}
			blockTableIt-&amp;gt;step();
		}
	}
	db-&amp;gt;transactionManager()-&amp;gt;endTransaction();

	delete db;

	return 0;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 13:43:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4822179#M12721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-18T13:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Text vetorization</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4906010#M12722</link>
      <description>&lt;P&gt;It gets invoked on my side. Attached is the sample I used to test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 14:48:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4906010#M12722</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2014-03-24T14:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Text vetorization</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4928340#M12723</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks it works now, I didn't call setWorkingDatabase. Now I have another problem. In function AcGiGeometry::text I receive&amp;nbsp;AcGiTextStyle object but for TrueType fonts function AcGiTextStyle::fileName returns NULL. RealDWG doesn't call AcDbHostApplicationServices::findFile for such fonts (with hint kTrueTypeFontFile) to search. I'm attaching sample file.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 10:01:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4928340#M12723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-02T10:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Text vetorization</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4931320#M12724</link>
      <description>&lt;P&gt;as i know this works just for vector fonts. true type fonts can't be vectorized&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 07:24:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4931320#M12724</guid>
      <dc:creator>nick83</dc:creator>
      <dc:date>2014-04-03T07:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Text vetorization</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4931572#M12725</link>
      <description>&lt;P&gt;I implemented vectorization of TrueType fonts on my side but I need only get informations about fonts used in texts. I noticed that it works for AcDbText but doesn't for AcDbMText with the same style.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 10:06:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/text-vetorization/m-p/4931572#M12725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-03T10:06:19Z</dc:date>
    </item>
  </channel>
</rss>

