Page 1 of 1

Fitting text in HTML table

Posted: Thu Dec 21, 2006 10:02 pm
by Mike Thompson
Hard at work on the next release of Mike Hebrew!

On the web, many hebrew websites use HTML tables. The text in them usually word wraps.
In the case of Mike Hebrew the lines of text often take up more space than the width of the
column and stick out and maybe overwrite text in the next column.

Does anyone have an idea as to how the browser computes the width of text. It seems to
be getting a result that is too small so that not enough word wrapping is done.

Might the parameters for this calculation come from within the font? If so I need the
width parameter to be larger.

Ideas please.

Posted: Fri Dec 22, 2006 8:25 am
by Bhikkhu Pesala
Try Format, Settings, Unicode Ranges, Average Character Width.

Posted: Fri Dec 22, 2006 2:45 pm
by Mike Thompson
Bhikkhu, Thanks for your suggestion.

I change that setting but after installing the font found it was changed back to the calculated value. There was no change to the appearance of the web page. Did FCP do this?

Posted: Fri Dec 22, 2006 3:14 pm
by Bhikkhu Pesala
There is an option on Tools, Options, Fonts to recalculate the value on saving the file. If your font has a lot of zero width glyphs, I wonder if you need to enter a value manually. I'm only guessing here, but I think the average width is calcalated from A to z glyphs only.

Try setting a guideline at the calculate average width value and scroll through your font.

Posted: Fri Dec 22, 2006 4:53 pm
by Mike Thompson
I have just changed the setting so the width will not be recalculated.
After that, I tried some extreme settings of the average width, both high
and low. The display was not changed.

At the last release of my font, I got around this problem by making some characters narrower and tightening up the space between characters, but that is not a good solution!

Noting your comment about the computation of "average width is calcalated from A to z glyphs only", I wonder --- my font does not have these characters!

Posted: Sun Dec 24, 2006 12:17 am
by Mike Thompson
I cut and pasted A-Z and a-z from Tuffy into my font. The Hebrew is now displayed
correctly even when the browser is set to display "Western" text in another font.

This solves one problem but creates a much worse one as I have six fonts in the Mike Hebrew
family and don't want to design a aesthetically matching latin set for each.

Do people creating Eastern fonts for Hindi etc have to include A-Z for this reason!!!!!