Search Unity

  1. New Unity Live Help updates. Check them out here!

    Dismiss Notice

TextMesh Pro Problem generating Font asset with special ligatures

Discussion in 'UGUI & TextMesh Pro' started by fsemblert, Dec 11, 2018.

  1. fsemblert

    fsemblert

    Joined:
    Oct 14, 2016
    Posts:
    13
    I have a cursive .otf font file, that has special glyph for some combinations of characters, like b followed by some vowels, or v followed by some vowels ligaduras_especiales.png .

    The problem, is the font asset creator doesn't recognize this ligatures, and when this special combinations happen, the result is not the expected. resultado.png
    How can I add this ligatures to the generated font asset?
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,974
    Ligatures are not currently supported. However support for such OpenType features is something that I am working on for Unity 2019.2.

    SIDE NOTE: Ligatures do not currently show up in the Font Asset Creator because most glyphs that are the result of some type of substitution are not assigned a Unicode value. They simply exist / are referenced by glyph index in the font file.

    Although support for extracting ligature data from font files will not be available until 2019.2 and if all goes well (meaning if I get everything done and working for 2019.2), I might be able to provide basic ligature support late in the 2019.1 cycle as the new FontEngine which will be used in the next TMP release does have the ability to fetch glyphs by index to add them into an atlas texture. So although the version of the FontEngine included in 2019.1 will be missing the ability to extract ligature data, you would still be able to manually define ligatures just like you can manually define kerning pairs. Again, no promises on support for this in 2019.1 but support for the various OpenType features is coming starting with Ligatures, Diacritical Marks and Pair Adjustments (which is Kerning but coming from the GPOS table).
     
    fsemblert likes this.
  3. pratikxman

    pratikxman

    Joined:
    Jan 17, 2016
    Posts:
    2
    Hi

    Any update on this?
    Is unity 2019.2 or 2019.3 beta support Ligatures?
     
  4. doombob

    doombob

    Joined:
    Jan 25, 2014
    Posts:
    20
    I'm curious about the current status of the OpenType features support. Specifically random substitution of glyphs for a more natural look of a handwritten font we've developed for our upcoming title. Is there any word on this? Cheers!
     
  5. Quetzal_Studios

    Quetzal_Studios

    Joined:
    Jan 2, 2017
    Posts:
    5
    It would be great if ligatures are finally supported by TMPro!
     
  6. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,974
    Indeed.

    Although progress has been slower on this than I would have liked, adding full support for OpenType font features remains a high priority. I am certainly getting more and more requests from users on this.
     
unityunity