Typophile

Help with Thai script problem ?

whateverworks

Hello
I’m a regular poster on another board where we study Thai language.
There is a problem for new learners in being able to display the
Thai script in a larger size.
http://www.thailandqa.com/forum/showthread.php?t=15033
Firefox has a work around for this, but for whatever reasons not all posters
are or are willing to use Firefox.
There are many options for adjusting the view both within windows and IE, but
none of these including personalized CSS (tools/internet options/accesibility)
are quite whats needed.
Posters on the forum YES can choose to alter the size of the script posted.
But not all learners are at the same level. And learners cetrainly don’t want to be
restricted to posts made larger for them.
Posts allso often contain both English and Thai and only the Thai needs to be enlarged.

So I’m wondering... Is it possible within designing a font, to pre-determine it’s display size to be considerably larger? I’m wondering if that is even a value that can
be controled by designing a custom font?

Your insights appreciated.
Rick

Is it possible within designing a font, to pre-determine it’s display size to be considerably larger? I’m wondering if that is even a value that can be controled by designing a custom font?

Well... I’m not sure it works exactly that way. In font creation programs, the letters are drawn within a grid that is 1000 x 1000 units, and when you are ready to output the font files you decide which point sizes you want. But you can still make the font any size you want once you have set some text in a graphics or layout program...

Mr. Cordoba, thank you for your reply.

I’m honestly getting a little excited, hopefully I don’t
misconstrue or jump to impossible conclusions.

When you say “1000 x 1000 units” I’m guessing this is the way font smiths measure the number pixells within a standardized space.

And when you are saying “decide which point sizes you want”
I will understand this to be the varying sizes of text that are displayed as I adjust my font size in a cocument or can see when I open TTF files in C:\WINDOWS\Fonts with their poit sizes listed beside them.

And then you finally said “make the font any size you want once you have set some text in a graphics or layout program...” Which I appreciate and understand, but unfortunately is not usefull for my immediate needs.

What I’m hoping might be possible, is that when you “output” the Font files, are there whithin the TTF file actually several copies of varying “Point sizes” ?
Is it somehow possible while outputting the “Point sizes” to rename/reconfigure the values of them ?
What I mean is, is it possible to corrupt the file (of a custom build) so that a 48 point letter is labeled, and read as being an 18 point ?
I still haven’t convinced myself that i’m coherent in my meaning..... I wan’t the Thai text to display larger than the English. If the software is displaying the page at a given point size, could the Thai text come out larger ?

(I’ve had an after thought, would that mean that the space between the lines would be over-run? Could I then Build 2 sets of fonts, and English and a Thai, The English one having exagerated blank space above/bellow the letters to compensate ?)

Again any insight is appreciated.

Ok .....
What about creating a single LARGE point size whitin a custom font ?

What I mean is, is it possible to corrupt the file (of a custom build) so that a 48 point letter is labeled, and read as being an 18 point ?

I’m afraid that is way beyond my poor knowledge!

Thanks Ricardo, I appreciate you taking the time to consider the question.

Sure, no problem. My initial impression was that you would be able to fix this problem with the code for the website, but you already mentioned that CSS and other methods weren’t working.

Maybe I missed something, but it seems to me that you should be able to program one font (for English) to show up in a certain size, and program the Thai font for a larger size than that.

Thank you again for your post.
Now at least I know my babling was understood.
The people running the board say they have run the
gamut trying to resolve the problem from the weboards
software side. They have recently done an upgrade so,
it’s unlikely that change will come again for a while.

I will learn more about fonts for a while, maybe make a
set of my own to appreciate what’s involved (not artisticaly
I can see in “Typograpy 110” there is great deal more than simply understanding, and my artistic side is undevoloped)
If there is nothing there I will study the software of the web board for myself.
Ultimately there is FireFox, but that won’t help others on the board. And though the internet is a small fragment of the media that typography/caligraphy expresses itself, your likely still aware that IE for better or worse commands the lions share of the market.

The TTF does not contain multiple sizes. The “1000 x 1000” is not a number of pixels, but of “em units” which do not have a fixed size. When you produce text at a certain size, it resizes the letters in the font to be the right size.

You *could* make a font where the Roman and Thai appear at different sizes, but you would need permission from the designer/publisher of the font, and all your users would need to download and install the font.

Thank you “mr”.
I did a wikipedia search on “em Units” I think I have the jist of the idea.

It is not my intention to illegitimately use or otherwise copy the work of any designer/publisher. I do have friends who are artists. Though they are musicians I appreciate how much hard work and time artists put into their work only to have them stolen without credit or apreciation shown for their work.

Permision (at a price if affordable) would be fine. If not I would have to explore how difficult it would be to make my own (which would involve buying software).

The idea that “all your users would need to download and install the font.” is ’Exactly’ what I’m after, that would leave it open to the individual to choose whether it improved the readability for themselves.

If you have some time, can you give me a bit of an idea of how I could proceed ? How much would it cost to have someone make such a font for me ? Would I need to produce a font set for both English and Thai ? Whom could I approach ?

I’d really like to know how I could move forward with this, so any offerings are appreciated.
Thank you
Rick

The TTF does not contain multiple sizes. The “1000 x 1000” is not a number of pixels, but of “em units” which do not have a fixed size. When you produce text at a certain size, it resizes the letters in the font to be the right size.

Thanks for pointing out these issues, Max. I’ve been crazy busy these days and didn’t have time to elaborate on my earlier comments.

“You *could* make a font where the Roman and Thai appear at different sizes, but you would need permission from the designer/publisher of the font, and all your users would need to download and install the font.”

Still hoping hoping hoping, someone will give me a hint on how I could pursue such a font ?

I can see one more problem:
If you increase the size of some glyphs (letters), then you will have to increase the size of the em, which increases the line-spacing. So lines without any Thai letters will look very widely separated.

Otherwise, it should be pretty simple.

Once you have permission from the owner of the font (the designer or publisher) —- alternatively use an open-source font, get a font-editing program. I would suggest FontForge (http://fontforge.sf.net) if you’re using Linux or Mac (some people here don’t like it, but this is an easy enough job, and I’m a FontForge fan anyway). Using FontForge on windows is a bit more difficult.

If you choose FontForge:

Start FontForge. Open the font you want to edit. Select the glyphs you want to resize. Choose Element->Transformations->Transform... Set the origin to “Glyph Origin”. In the drop-down box, change “Move” to “Scale Uniformly”, and adjust the number to, say, 200%. Click OK.

Choose Element->Font Info->General. Adjust the “Em Size” by the same factor as you scaled the glyphs (if you chose 200%, double the em size, etc.). Click OK.

Choose Generate->Generate Fonts, change things as you see fit, and click Save.

I hope that helps.

Thanks so much for taking the time to make that post mr’ .
I have looked at the software and I don’t think installation should be a problem. I have custom built PC for video edit and theres lots of room on the drives for that software. As well your post seems to make the task sound simple enough the way you provided a walk-through for me.

I have 2 more questions if anyone has the time?

Someone recently messaged me saying
“As all those Fonts are available for free Download I assume that it is allowed to use them, but I am not sure so.”
Is that assumption a fair one ? Does this free distribution simply limit me to using it as is or am I allso permited to alter the font as I intend to ?

Second question; The spcecial requirements for displaying Thai text, is this problem software side only ? Or does it complicate the way in which the fonts are made
http://www.fedu.uec.ac.jp/ZzzThai/thailang/index.html#problems
i.e. is there more to creating a Thai font than I am understanding at this point ? Or are Glyphs just glyphs no matter the character set ?

Thanks again
Rick

Being allowed to use the font (and even distribute it) does NOT necessarily mean you are allowed to edit it. When you got the font, you should have got a licence with it (if you didn’t, it’s probably pirated in the first place).

But there are open source Thai fonts. These allow you to use, distribute and modify freely (they may or may not require you to pass on these rights on to the people you give/sell the font to). The Thai Linux Working Group and NECTEC has made several fonts (apparently of good quality) under the GPL (open source; you have to distribute modifications under the same licence). You can get them at
http://www.ctan.org/tex-archive/fonts/thai/thaifonts-scalable/nectec/ and http://www.ctan.org/tex-archive/fonts/thai/thaifonts-scalable/tlwg/ (these sites offer “.sfd” files, which can only be opened in FontForge).

Yes, the difficulties of Thai fonts affect type designers too, albeit in a different way. However, you should not be affected, as the font you choose should already have this done (if it is of decent quality).

Captured from web.archive.org on 27 Aug 2008. view this capture