Fitting text in HTML table

Post general font related questions (e.g. how to install, convert and use fonts) and requests (looking for fonts, designers etc.) here.
Post Reply
Mike Thompson
Top Typographer
Top Typographer
Posts: 408
Joined: Sat Apr 03, 2004 11:10 pm
Location: Massachusetts
Contact:

Fitting text in HTML table

Post by Mike Thompson » Thu Dec 21, 2006 10:02 pm

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.
Mike Thompson
Hebrew Font Design
http://hebrew-font-shuneet.com

Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 7893
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Post by Bhikkhu Pesala » Fri Dec 22, 2006 8:25 am

Try Format, Settings, Unicode Ranges, Average Character Width.
My FontsReviews: MainTypeFont CreatorHelpFC11.5 Pro + MT8.0 @ Win10 1809 build 17763.379

Mike Thompson
Top Typographer
Top Typographer
Posts: 408
Joined: Sat Apr 03, 2004 11:10 pm
Location: Massachusetts
Contact:

Post by Mike Thompson » Fri Dec 22, 2006 2:45 pm

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?
Mike Thompson
Hebrew Font Design
http://hebrew-font-shuneet.com

Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 7893
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Post by Bhikkhu Pesala » Fri Dec 22, 2006 3:14 pm

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.
My FontsReviews: MainTypeFont CreatorHelpFC11.5 Pro + MT8.0 @ Win10 1809 build 17763.379

Mike Thompson
Top Typographer
Top Typographer
Posts: 408
Joined: Sat Apr 03, 2004 11:10 pm
Location: Massachusetts
Contact:

Post by Mike Thompson » Fri Dec 22, 2006 4:53 pm

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!
Mike Thompson
Hebrew Font Design
http://hebrew-font-shuneet.com

Mike Thompson
Top Typographer
Top Typographer
Posts: 408
Joined: Sat Apr 03, 2004 11:10 pm
Location: Massachusetts
Contact:

Post by Mike Thompson » Sun Dec 24, 2006 12:17 am

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!!!!!
Mike Thompson
Hebrew Font Design
http://hebrew-font-shuneet.com

Post Reply