Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tamil Language Interface #5481

Closed
DorpsGek opened this issue Feb 21, 2013 · 11 comments
Closed

Tamil Language Interface #5481

DorpsGek opened this issue Feb 21, 2013 · 11 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

aswn opened the ticket and wrote:

The Tamil fonts are not displaying properly. Ive tried to change the fonts but i get the same unreadable format.

preferred font for tamil:Latha

Attachments

Reported version: 1.3.0-RC1
Operating system: Linux


This issue was imported from FlySpray: https://bugs.openttd.org/task/5481
@DorpsGek
Copy link
Member Author

Rubidium wrote:

What is exactly wrong with the way the fonts are displayed? It looks roughly the same as it looks in my text editor.
Does increasing the font size help?


This comment was imported from FlySpray: https://bugs.openttd.org/task/5481#comment12022

@DorpsGek
Copy link
Member Author

aswn wrote:

Increasing the font size doesnt help.

ive attached the tamil wiki homepage screenshot. to show how the fonts should exactly be.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/5481#comment12024

@DorpsGek
Copy link
Member Author

frosch wrote:

This is how the tamil interface looks for me. Does it look any better? Is there a big difference in readability between 8bpp and 32bpp_aa?

Does the readability improve on your system if you start OpenTTD with the command line option "-b 32bpp-anim"?

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/5481#comment12039

@DorpsGek
Copy link
Member Author

aswn wrote:

the readability is better in 32bpp_aa..

But still the problem exits. may be its the encoding

ive attached the screenshot showing changes

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/5481#comment12041

@DorpsGek
Copy link
Member Author

DorpsGek commented Apr 4, 2013

Rubidium wrote:

Finally I figured out what you're trying to explain; there seems to be some 'magic' drawing rules for Tamil and some other languages that go beyond reordering glyphs and/or changing glyphs. For these languages they seem to be drawing glyphs over eachother.

This will require a significant rework of the text drawing routines.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5481#comment12145

@DorpsGek
Copy link
Member Author

DorpsGek commented Apr 6, 2013

aswn wrote:

I can help.. please tell me what to do!

Im a ubuntu user with little programming skills..


This comment was imported from FlySpray: https://bugs.openttd.org/task/5481#comment12147

@DorpsGek
Copy link
Member Author

Rubidium wrote:

The idea is to use ICU's ParagraphLayout and/or LayoutEngine for helping with rendering the text. The first step seems to be to figure out how the API works.

We want to use ICU's APIs instead of the few other options because ICU is a library we already use for text sorting and bi-di support. Using an extra library makes things only more complex to set up.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5481#comment12150

@DorpsGek
Copy link
Member Author

Rubidium wrote:

Are the characters in the attached screenshot rendered correctly?

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/5481#comment12305

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r25471


This comment was imported from FlySpray: https://bugs.openttd.org/task/5481

@DorpsGek
Copy link
Member Author

DorpsGek commented Jul 2, 2013

aswn wrote:

the characters are rendered correctly..

but the characters are overlapping a little bit.. increasing word and character spaces would fix it!


This comment was imported from FlySpray: https://bugs.openttd.org/task/5481#comment12369

@DorpsGek
Copy link
Member Author

DorpsGek commented Jul 2, 2013

Rubidium wrote:

Changing the spacing isn't something that we can do. We use an external library which gives us the glyphs (parts of characters) that need to be drawn and their location. At that moment we do not know where to place the extra spacing; it isn't as simple as just adding more and more pixels after each glyph.

The spacing can be changed by the font that is used, so maybe the font I used in the example isn't particularly useful for the language.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5481#comment12371

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant