[HarfBuzz] Fwd: hindi problem

Jani Brezavšček jani.brezavscek at outfit7.com
Wed Dec 6 21:18:27 UTC 2017


Thank you Varun, I've seen it and then used harfbuzz-example for my test
purposes also because fontstash-es kept on crashing (glfw example) or
showed just squares instead of font (ios example). I've just checked
fontstash-es first because I already worked with fontstash. The
harfbuzz-example is working great!

By the way, are all the "corrections" written somewhere like in some
documentation or does it all depend on the font?

Also if I can't figure out the correction of the russian text in the
harfbuzz-example. Is there anything different at all?

Thank you,
Best regards,
Jani




<http://www.outfit7.com/>

JANI BREZAVŠČEK

SENIOR SOFTWARE ENGINEER

www.outfit7.com

Ekipa2 d.o.o. | Ameriška ulica 8
1000 Ljubljana, SI
<http://outfit7.com/>


On Wed, Dec 6, 2017 at 8:31 PM, Varun Talwar <tallytalwar at gmail.com> wrote:

> @Jani
>
> Re. fontstash-es: You can also directly use https://github.com/tangrams/
> harfbuzz-example for your test purposes.
>
> Varun Talwar
> Senior Graphics Engineer, Mapzen
> Master's of Sciences (Computer Graphics and Game Technology)
> University of Pennsylvania
> Mailto: tallytalwar at gmail.com
>
> On Wed, Dec 6, 2017 at 10:24 AM, Varun Talwar <tallytalwar at gmail.com>
> wrote:
>
>> @Jani
>>
>> Just a side note on fontstash-es
>> <https://github.com/tangrams/fontstash-es>, we have not updated it for a
>> while now. However we have been using https://github.com/hjanetzek/alfons
>> project as a replacement for fontstash-es, in our map renderer (
>> https://github.com/tangrams/tangram-es).
>>
>> Varun Talwar
>> Senior Graphics Engineer, Mapzen
>> Master's of Sciences (Computer Graphics and Game Technology)
>> University of Pennsylvania
>> Mailto: tallytalwar at gmail.com
>>
>> On Wed, Dec 6, 2017 at 4:02 AM, Jani Brezavšček <
>> jani.brezavscek at outfit7.com> wrote:
>>
>>> Thank you very much! I never would have expected that this was ok.
>>>
>>> Best regards,
>>> Jani Brezavšček
>>>
>>>
>>>
>>>
>>>
>>>
>>> <http://www.outfit7.com/>
>>>
>>> JANI BREZAVŠČEK
>>>
>>> SENIOR SOFTWARE ENGINEER
>>>
>>> www.outfit7.com
>>>
>>> Ekipa2 d.o.o. | Ameriška ulica 8
>>> <https://maps.google.com/?q=Ameri%C5%A1ka+ulica+8&entry=gmail&source=g>
>>> 1000 Ljubljana, SI
>>> <http://outfit7.com/>
>>>
>>>
>>> On Wed, Dec 6, 2017 at 11:20 AM, Jonathan Kew <jfkthame at gmail.com>
>>> wrote:
>>>
>>>> On 06/12/2017 09:34, Jani Brezavšček wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I'm writing because I can't find a solution to my problem.. I would
>>>>> like to display the following hindi text as it is written bellow or e.g. in
>>>>> google search bar
>>>>>
>>>>> शक्ति (I put it in google translate and it looks like it means "power"
>>>>> in hindi)
>>>>>
>>>>> with the line above the characters (starting at second one) going
>>>>> above from the second character to the last one. But what I get after using
>>>>> harfbuzz is not the same... the last two characters get merged into one and
>>>>> it does not look like what I pasted
>>>>>
>>>>> I've checked it with Sanskrit2003.ttf and NotoSansDevanagari-Medium.ttf
>>>>> they both produce the same abomination
>>>>>
>>>>> Can anyone please help me understand if this is a bug in harfbuzz or
>>>>> if I am doing something wrong?
>>>>>
>>>>>
>>>> I guess you're confused by the rendering of the combination "क्त" (ka,
>>>> virama, ta). This pair of consonants ("kt") can be written either with a
>>>> half-ka followed by ta, or as a single conjunct glyph. Which is used is a
>>>> stylistic choice the font designer will have made.
>>>>
>>>> Most fonts I've seen go for the single-glyph "kt" conjunct, although
>>>> the Mangal and Nirmala UI fonts from Windows choose the longer "half-ka +
>>>> ta" rendering, so if that's what you're comparing to, you may be surprised
>>>> by the conjunct in other fonts.
>>>>
>>>> See http://press-files.anu.edu.au/downloads/press/p276561/html/s
>>>> ection67.html (scroll down to section 7, "Some forms are completely
>>>> different...", and note the two examples of the "kt" combination).
>>>>
>>>> In short: how it looks depends on the font you choose.
>>>>
>>>> JK
>>>>
>>>>
>>>
>>> _______________________________________________
>>> HarfBuzz mailing list
>>> HarfBuzz at lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/harfbuzz
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20171206/b918e78d/attachment.html>


More information about the HarfBuzz mailing list