Thanks, your help is really appreciated.<br><br>I have some more questions... how can i find direction of the text? Is HB able to determine the text direction by itself?<br><br>I have a text that is a mixture of Arabic and English words i.e. a mixture of RTL and LTR text. How can I use harfbazz to process that?<br>
<br>Best Regards,<br>Sami<br><br><div class="gmail_quote">On Thu, Jul 5, 2012 at 12:08 AM, Adam Twardoch (List) <span dir="ltr"><<a href="mailto:list.adam@twardoch.com" target="_blank">list.adam@twardoch.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 12-07-04 11:15, Shriramana Sharma wrote:<br>
> On Wed, Jul 4, 2012 at 2:40 PM, Samiullah Khawaja<br>
> <<a href="mailto:sami.khawaja@gmail.com">sami.khawaja@gmail.com</a>> wrote:<br>
>> Is there a list of languages supported by harfbuzz? Or it supports all the<br>
>> languages that are supported by the font in use?<br>
> HB doesn't support "languages". It supports "scripts".<br>
</div>It also supports "languages" -- the OpenType component supports both the<br>
script tags and the language tags:<br>
<a href="http://www.microsoft.com/typography/otspec/scripttags.htm" target="_blank">http://www.microsoft.com/typography/otspec/scripttags.htm</a><br>
<a href="http://www.microsoft.com/typography/otspec/languagetags.htm" target="_blank">http://www.microsoft.com/typography/otspec/languagetags.htm</a><br>
<br>
For script and language tags, HarfBuzz uses the ISO tags and then<br>
converts them into OpenType tags internally:<br>
<a href="http://cgit.freedesktop.org/harfbuzz/tree/src/hb-common.h" target="_blank">http://cgit.freedesktop.org/harfbuzz/tree/src/hb-common.h</a><br>
<a href="http://cgit.freedesktop.org/harfbuzz/tree/src/hb-common.cc" target="_blank">http://cgit.freedesktop.org/harfbuzz/tree/src/hb-common.cc</a><br>
<a href="http://cgit.freedesktop.org/harfbuzz/tree/src/hb-ot-tag.h" target="_blank">http://cgit.freedesktop.org/harfbuzz/tree/src/hb-ot-tag.h</a><br>
<a href="http://cgit.freedesktop.org/harfbuzz/tree/src/hb-ot-tag.cc" target="_blank">http://cgit.freedesktop.org/harfbuzz/tree/src/hb-ot-tag.cc</a><br>
<br>
In OpenType, each character is categorized into a script, and then it is<br>
being processed using the "default-language" routine for a script. But<br>
it's also possible to specify a specific language to go along with the<br>
script (for example "arab/URD" means Arabic script, Urdu language), and<br>
the font can provide alternative processing for such language which is<br>
different from the default behavior for a given script.<br>
<br>
Regards,<br>
Adam<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
<br>
May success attend your efforts,<br>
-- Adam Twardoch<br>
(Remove "list." from e-mail address to contact me directly.)<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
HarfBuzz mailing list<br>
<a href="mailto:HarfBuzz@lists.freedesktop.org">HarfBuzz@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/harfbuzz" target="_blank">http://lists.freedesktop.org/mailman/listinfo/harfbuzz</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Samiullah Khawaja<br>Software Engineer<br>email: <a href="mailto:sami.khawaja@gmail.com">sami.khawaja@gmail.com</a><br>voice: +(92) 0321-4184324<br>