Jump to content
You must now use your email address to sign in [click for more info] ×

A simple Python script for entering certain open-type Unicode-based Tamil font data in Affinity programs!


cmathiaz

Recommended Posts

Entering Tamil or Indic Unicode font text in Affinity apps has been a problem for a very long time. This simple Python script allows you to enter certain Unicode-based open-type .ttf Tamil font text data. It uses the fact that you can enter some of the open-type glyphs using the Glyph Browser in Affinity! Note: not all open-type or pure Unicode fonts will work with this program! Certain types of Unicode-based open-type Tamil fonts like Vijaya, Akshra, all TAU-encoded fonts and many more work fine. If the Tamil .ttf font file contains all the character glyphs, and they are also indexed in the GSUB table, this program will work. At present, this is program is hard-coded only for Tamil. It may work for other open-type Indic fonts, if you modify certain sections and give the correct Unicode data like the range, pre-appending, post-appending char lists etc. Note that the converted data is not a font file, but a string of glyphs that can be displayed correctly inside Affinity. You will have to fully reformat the text after the copy-paste. Also, you can’t change the font family of the pasted glyph text. It has to be converted again and pasted for the new font. But you can change the font size of the glyph, and do some minor editing using the Glyph Browser, etc. For more details, see the comments in the program.

See the first sample screenshot that shows the Tamil text using the open-type vijaya.ttf font. See the second screenshot that shows the conversion of Unicode Tamil data to a string of glyph data. This glyph string data can be pasted inside Affinity apps and toggled to Unicode. This works only for certain .ttf fonts mentioned above.

Check this simple Python TKopentypeTamil1 script on my cmathiaz Github page. Good luck. 

https://github.com/Cmathiaz?tab=repositories

aff screenshot.png

aff screenshot 2.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.