Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TextMesh Pro Arabic Fonts Help

Discussion in 'UGUI & TextMesh Pro' started by GrassWhooper, Jan 21, 2018.

  1. GrassWhooper

    GrassWhooper

    Joined:
    Mar 25, 2016
    Posts:
    108
    hey everyone,
    so far as i know ```600-6FF, 750-77F```is the UniCode hex range of arabic
    and i am facing an issue, no matter what kind of font i download and use in the Asset Font Creator, the generated atlas is always missing these characters.

    so, can anyone help me, and recommend a bunch of fonts that actually contain this set? so i can write in arabic in TextMeshPro.
    (if anyone knows of fonts that contain both arabic and english, it would be really great too).
    sorry if this is in the wrong place by the way.
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    As long as the font file includes support for Arabic, defining these ranges in the Font Asset Creator should just work.

    Can you link a few of the font files you are tried?
     
    GrassWhooper likes this.
  3. GrassWhooper

    GrassWhooper

    Joined:
    Mar 25, 2016
    Posts:
    108
    thanks for your response, apparently it is exactly as you said. simply the fonts that i was attempting to use, were not supporting arabic (despite being in the category of arabic fonts but oh well, i guess i needed to simply, try more fonts).
    so apparently This One worked for me and managed to generate a Texture. so thanks for pushing me to search better and to try out different fonts.

    another issue managed to pop up
    upload_2018-1-23_7-41-15.png
    basically, some Characters are always missing, and you can see the range that i specified (600-6FF)
    (and clearly that log, shows and tells me that, there are missing characters, such as 600,601,602 etc.. etc...) can you point me out on how to include them if its possible? thanks :)
     
  4. cruisereric

    cruisereric

    Joined:
    Dec 14, 2017
    Posts:
    4
    @GrassWhooper
    hey man, did you find a solution or the correct range?
     
  5. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    The range that was indicated above is correct. The unicode range for any language can be found here.

    Missing characters are always the result of not being present in a font file or in some cases not having space in the font atlas texture to fit them.

    On Windows or OSX, the included font viewers use glyph substitution where missing glyphs are shown but actually come from a different font which is very misleading. I suggest getting an external tool like Font Creator from High Logic, FontForge or BMfont, etc that will allow you to see the true content of the font file.
     
    Last edited: Mar 25, 2018
    Mauri likes this.
  6. cruisereric

    cruisereric

    Joined:
    Dec 14, 2017
    Posts:
    4
    thanks Stephan
    iIll give it a try
     
  7. GamdineProductions

    GamdineProductions

    Joined:
    Aug 18, 2016
    Posts:
    12
    Hey There,

    Any update on this?
     
  8. ovrdb

    ovrdb

    Joined:
    Jun 1, 2015
    Posts:
    5
    I had the same issue displaying Farsi with Google Fonts Amiri. That font definitely defines all characters. I noticed something strange: The missing characters are from the Arabic Presentation Froms A/B Ranges (FB50–FDFF and FE70–FEFF). These ranges cannot be added in the "Update Atlas Texture" dialog. They disappear after saving.
    I gave up on using Unicode Ranges and switched to dynamic. Still had some missing characters, but increasing the atlas size to 2048x2048 fixed it.
     
  9. PalmGroveSoftware

    PalmGroveSoftware

    Joined:
    Mar 24, 2014
    Posts:
    17
    hey folks
    just been messing around with same issue
    added tip if it is any help also on using arabic fix from asset store to connect letters, turns out the full range on unicode page is needed for all the glyphs, so pretty much : 0600-06FF,0750-077F,08A0-08FF,FB50-FDFF,FE70-FEFF
    tested with amiri font that can be found on google fonts and a 2k X 2k atlas size indeed
     
    marwanzaky, Starbox and GrassWhooper like this.
  10. GrassWhooper

    GrassWhooper

    Joined:
    Mar 25, 2016
    Posts:
    108
    a bit late, but thanks a lot, that solved it for the arabic

    a small update, for both english and arabic this range worked for me (using amiri).

    48-57,1548,1563,1567,1570-1594,1600-1641,1648,1662,1670,1688,1705,1711,1740,1776-1785,64343-64345,64379-64381,64395-64401,64403-64405,64509-64511,64606-64611,65154-65164,65166-65170,65172-65176,65178-65180,65182-65184,65186-65188,65190-65192,65194-65204,65206-65208,65210-65212,65214-65216,65218-65220,65222-65224,65226-65228,65230-65232,65234-65236,65238-65240,65242-65244,65246-65248,65250-65252,65254-65256,65258-65260,65262-65264,65266-65276,32-126,160-255,8192-8207,8210-8226,8230,8234-8240,8242-8244,8249-8250,8252,8254,8260,8286,8298-8303,8364,8482,9633,0600-06FF,0750-077F,08A0-08FF,FB50-FDFF,FE70-FEFF