pravins / lohit

Lohit fonts family project to supporting Indian scripts.
Other
39 stars 11 forks source link

Tamil rendering problem with Lohit-Tamil & Tamil-Classical #78

Open Shreeshrii opened 8 years ago

Shreeshrii commented 8 years ago

Lohit Tamil font, Chrome browser on Windows 10

image

Shreeshrii commented 8 years ago

Displays ok with e-Grantamil on Chrome on windows 10

image

Shreeshrii commented 8 years ago

Different rendering issues with Lohit Tamil Classical

image

Shreeshrii commented 8 years ago

here is the css used

 /* Tamil */
 @font-face {
 font-family: 'LohitTamilClassical';
 src:  url('http://sanskritdocuments.org/all_iscii/fonts/Lohit-Tamil-Classical.ttf') format('truetype'); 
 font-weight: normal;
 font-style: normal;
 }
  @font-face {
 font-family: 'LohitTamil';
 src:  url('http://sanskritdocuments.org/all_iscii/fonts/Lohit-Tamil.ttf') format('truetype'); 
 font-weight: normal;
 font-style: normal;
 }
  @font-face {
font-family: 'Tamil2016';
src:  url('http://sanskritdocuments.org/all_iscii/fonts/e-Grantamil.ttf') format('truetype'); 
font-weight: normal;
font-style: normal;
}
*[lang="ta"] {
/* font-family: 'LohitTamilClassical',serif !important;  */
/* font-family: 'LohitTamil',serif !important;  */
font-family: 'Tamil2016', serif !important; 
 line-height:1.6;
 font-size: 1.3em;
 font-weight:bold;
}
pravins commented 7 years ago

As far as i see only issue in above text is missing some characters from Lohit Tamil fonts. I hope preparing Lohit Tamil vedic will help here. Any other issue? tamil-test

Shreeshrii commented 7 years ago

Thanks for taking a look at this. I am testing under Windows10 using Chrome browser.

When using:

<style>
/* Tamil */
 @font-face {
 font-family: 'LohitTamilClassical';
 src:  url('http://sanskritdocuments.org/all_iscii/fonts/Lohit-Tamil-Classical.ttf') format('truetype'); 
 font-weight: normal;
 font-style: normal;
 }
  @font-face {
 font-family: 'LohitTamil';
 src:  url('http://sanskritdocuments.org/all_iscii/fonts/Lohit-Tamil.ttf') format('truetype'); 
 font-weight: normal;
 font-style: normal;
 }
  @font-face {
font-family: 'Tamil2016';
src:  url('http://sanskritdocuments.org/all_iscii/fonts/e-Grantamil.ttf') format('truetype'); 
font-weight: normal;
font-style: normal;
}
*[lang="ta"] {
 font-family: 'LohitTamil',serif !important; 
 line-height:1.6;
 font-size: 1.2em;
 font-weight:bold;
}
</style>

॥ நாராயணஸூக்தம் ॥ which is the heading is being displayed as shown in https://github.com/pravins/lohit/issues/78#issue-147998214

ie. ॥ நாரா seems to be below baseline and rest of the text யணஸூக்தம் ॥ is at baseline.

In the first line of text தைத்திரீயாரண்யகம் - 4 ப்ரபாட²க: - 10 அனுவாக: 13

ர and ா are being displayed below baseline.

There are other issues too. However I will download latest version of Lohit fonts and check again, since it has been a while since I filed this report.

Shreeshrii commented 7 years ago

Please test with the following text

॥ நாராயணஸூக்தம் ॥

தைத்திரீயாரண்யகம் - 4 ப்ரபாட²க: - 10 அனுவாக: 13

ௐ ஸ⁠ஹ நா⁠வவது। ஸ⁠ஹ நௌ⁠ பு⁴னக்து। ஸ⁠ஹ வீ⁠ர்யம்⁠ கரவாவஹை। தே⁠ஜ⁠ஸ்வினா⁠வதீ⁴⁠தமஸ்து⁠ மா வி⁠த்³விஷா⁠வஹை⁠॥ ௐ ஶாந்தி:⁠ ஶாந்தி:⁠ ஶாந்தி:⁠ ॥

I am seeing rendering errors in the above in Notepad++ on windows10 too when using Lohit Tamil. These baseline errors are not there in Lohit Tamil Classical.

The webpage http://sanskritdocuments.org/css/test-sukta.html?lang=ta uses e-Grantamil and renders ok.

pravins commented 7 years ago

Can you try https://pravins.fedorapeople.org/test-tamil.html in Windows 10? Simply created html from Libreoffice by applying Lohit Tamil font. It is working well for me both in Firefox and Chrome in Fedora 25.

Shreeshrii commented 7 years ago

Checked with both Chrome and Edge on windows10 - shows the problem.

win10-edge win10-chrome

Shreeshrii commented 7 years ago

Lohit Tamil font version under windows is 2.91.1

pravins commented 7 years ago

There has been not any significant changes in font in recent version. Since you mentioned Tamil Classical works well, i need to check with Classical, if anything missing.

Shreeshrii commented 7 years ago

In fact, I prefer using Tamil Classical (based on Tamil users feedback) but that also has no support for superscripts 2, 3, 4.

If you are making modifications for Vedic, please also get feedback from Shriramana Sharma.

pravins commented 7 years ago

In that case, i will add superscript in Lohit Tamil Classical.

Shreeshrii commented 7 years ago

Thanks! That will be great. Please let me have a test version so that I can get user feedback and find out if there are any other issues.

Shreeshrii commented 6 years ago

Any update on this?

nsesha92 commented 6 years ago

Hi Pravin,

I do get the same error on Tamil 2.91.1 version. I am using Win 8, MS Office 2010 and Crome.

  1. Problem with ra, na, and vowel sign A. But appears properly on the web-crome.
  2. Problem of Anchor-0 Candra placement in kSha
  3. Shrii is missing.
  4. No errors with 2.5.3.
  5. Circle-errors are due to Font not having Vedic symbols. You rightly said, preparing Lohit Tamil vedic will help here. This need is felt by many.

As you recall, I had submitted a Lohit Tamil Vedic font request (based on Lohit Tamil 2.91.0) in Feb 2017, for which Sri Shriramana Sharma provided feedback:

  1. Provide attestation as to where PRENKHA U+1CD2 and CANDRA U+1CF4 are used.
  2. Submit a request to Unicode to allot any characters that is to be used with the Tamil script a ScriptExtension ("SE") of Taml (perhaps for the above 2 only ?).
  3. Arial glyphs should not be copied to Lohit font, use an OFL-compatible source font for borrowed glyphs.
  4. Make sure the newly added glyphs are stylistically acceptable to be in line with Lohit Tamil style.

https://bugzilla.redhat.com/show_bug.cgi?id=1427550

Due to my limitations -> not a S/w person, do not know Sanskrit, know ONLY Panchasuktam (in Tamil) from the vast Vedic Scriptures <- I could not take it forward. I can only do MS Word commands - Ctrl-C, Ctrl-V effectively.

I have restarted my project and looking for a FontForge expert to implement the changes suggested by Sri Shriramana Sharma. As I can see, Shreeshrii is a s/w person, if he is willing to contribute, please contact me - nsesha92@yahoo.co.in.

I don't know what the changes/enhancements are between 2.5.3, 2.91.0 and 2.91.1, but for the time being, you can suppress the 2.91.1 version.

Thanks. Seshadri

lohit-tamil-2-5-3-ok lohit-tamil-2-91-1 error

nsesha92 commented 5 years ago

Hi Parveen,

Looks like this issue is still not resolved ?

cyrilthank commented 4 years ago

Hi Sorry for 'hijacking' this discussion

but can you please share if Lohith-Tamil font prints the tamil letter for thu which is required for irunthathu (ie tamil word for was )

cyrilthank commented 4 years ago

requesting since i am getting the attached and not clear on what i am doing wrong

image