<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>[A5] OpenGL Font errors</title>
		<link>http://www.allegro.cc/forums/view/609417</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 29 Jan 2012 08:05:24 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>While switching my program to OpenGL graphics some time ago, I noticed a bug in the ttf font drawing.  Certain glyphs disappear or otherwise fail to load correctly, but only in my program.<br />I compiled the example_font.c (edited to use OpenGL) and made it use the different fonts my program uses, and the example runs perfectly.  My program, however, has certain characters (DHaikn) disappear, but only using certain font/size combinations.<br />Some fonts run fine, some fonts only have problems at specific sizes.</p><p>Attached to this post is Debug.zip which contains screenshots of the fonts in action, as well as allegro.log files for both the example and MLPOnline, the program I&#39;m working on.  It also contains the fonts themselves in case you want to test it on your system.<br />Descriptions.txt explains which font and size is used in each image.</p><p>Also of note, setting the fonts to be loaded as memory bitmaps fixes this problem completely, but creates other problems as I&#39;d need to do some special checking to prevent flicker and artifacts on the screen when it switches between allegro draws and opengl draws.</p><p>In my experience, NVidia graphics cards do not have this problem.  ATI cards do.<br />Also, the stencil checker needs to be disabled, otherwise up to half the glyphs will be missing and will be randomly not included.</p><p>If you need the source code for the edited example_font.cc then I can provide it upon request, but I obviously can&#39;t provide the code for MLPOnline.</p><p>Thanks for any help in advance.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SaltyJustice)</author>
		<pubDate>Sun, 29 Jan 2012 07:36:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Seems a lot like my issue with D3D:<br /><a href="http://www.allegro.cc/forums/thread/609404">http://www.allegro.cc/forums/thread/609404</a></p><p>I wonder if it is related.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Sun, 29 Jan 2012 08:02:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I saw you were having a similar problem with D3D and resizing, but figured this would require its own thread since it&#39;s OpenGL.  If the problems are related then we can close the thread later.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SaltyJustice)</author>
		<pubDate>Sun, 29 Jan 2012 08:05:24 +0000</pubDate>
	</item>
</rss>
