<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Textfield with variable size</title>
		<link>http://www.allegro.cc/forums/view/617746</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 18 Feb 2019 23:16:52 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have a problem. I am designing my own menu classes and so on.<br />I have now a string in a textfield. And i want to draw this text in a filled rectangle. How do I get the size of the rectangle exactly around the text.<br />For example is the &quot;M&quot; bigger than the &quot;I&quot;, so there isnt a perfect formula.<br />Is it possible to recognize colors in the display, to recognize the text, or maybe to display the text shaped to the height and width of the rectangle? Of course I would prefer the first method, because then I could use my own fontsize, like I want it.<br />Pleeease help me <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" />(<br />Greetings from Germany
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (nico_c++)</author>
		<pubDate>Mon, 18 Feb 2019 15:31:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Does <span class="source-code"><a href="http://www.allegro.cc/manual/al_get_text_width"><span class="a">al_get_text_width</span></a></span> do what you want?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Hull)</author>
		<pubDate>Mon, 18 Feb 2019 18:16:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Try <a href="https://liballeg.org/a5docs/trunk/font.html#al_get_text_dimensions">al_get_text_dimensions</a>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Mon, 18 Feb 2019 20:09:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><a href="https://github.com/jmasterx/Agui/blob/master/src/Agui/Widgets/TextField/TextField.cpp#L783">https://github.com/jmasterx/Agui/blob/master/src/Agui/Widgets/TextField/TextField.cpp#L783</a></p><p><a href="https://github.com/jmasterx/Agui/blob/master/src/Agui/Backends/Allegro5/Allegro5Font.cpp#L127">https://github.com/jmasterx/Agui/blob/master/src/Agui/Backends/Allegro5/Allegro5Font.cpp#L127</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Mon, 18 Feb 2019 21:53:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yeaah thank you so much!!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (nico_c++)</author>
		<pubDate>Mon, 18 Feb 2019 23:16:52 +0000</pubDate>
	</item>
</rss>
