FontLab Forum
2012-02-08, 19:37:31 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the FontLab forum, read how to use it! Update: Archives from old MSN forums are now available on our forum.
 
   Home   Help Search Calendar Downloads Tags Login Register  
Del.icio.us Digg FURL FaceBook Stumble Upon Reddit SlashDot

Pages: [1]
  Print  
Author Topic: TrueType hinting problems  (Read 3524 times)
Luc[as]
Beta: FontLab Studio Win
Hero Member
***

Karma: +3/-0
Netherlands Netherlands

Posts: 132



WWW
« on: 2010-04-12, 08:02:40 »

It seems impossible to hint the widths of glyphs at certain PPMs (14, 18, 20, 22, 23, 25, 26, 28, 30, 31, 34 etc)
When you set a delta on the RSB @14 PPM, nothing happens to the width, until you additionally set a delta on the RSB @15 or @17 PPM, then the delta @14 suddenly has the desired effect.
And when you remove the deltas at other sizes, the delta @14 stops working again.
A problem that might be related is that when widths are on pixel center, FontLab rounds them often wrong compared to the MS TrueType rasteriser.
Both problems described happen on WinXP-Win7, with any rasteriser setting.
(so when FontLab is fixed, we have to check all TT hinted fonts :-)
Logged
Luc[as]
Beta: FontLab Studio Win
Hero Member
***

Karma: +3/-0
Netherlands Netherlands

Posts: 132



WWW
« Reply #1 on: 2010-04-12, 12:47:17 »

I found a workaround for the first problem: add ppms for which you need width adjustments to Device metrics table [hdmx]. :-)
Logically it doesn't make sense, in my opinion [hdmx] must be calculated at font generation time, after all hinting is done, and automatically include all PPMs for which non linear scaling has been used.
The FontLab default [hdmx] PPMs are from "recommendations for Windows fonts" from several decades ago. Today I have a lot of situations where this list does not make sense, e.g. when hinting for web or for bitmap fonts...

http://www.microsoft.com/typography/otspec/hdmx.htm
http://www.microsoft.com/typography/otspec/recom.htm#hdmx

Luc(as)
« Last Edit: 2010-04-12, 12:49:50 by Luc[as] » Logged
Luc[as]
Beta: FontLab Studio Win
Hero Member
***

Karma: +3/-0
Netherlands Netherlands

Posts: 132



WWW
« Reply #2 on: 2010-04-12, 13:17:25 »

Some anomalies occuring with the 2nd problem, wrong rounding of widths on pixel centers.

At 12 ppm, an advance width in FL rounds to the left (but should be right).

Anomaly 1: Identical width of composite glyph (e.g. agrave) rounds correctly.
Anomaly 2: Adding a delta (+8) to the RSB moves the width 2 pixels instead of 1.
Anomaly 3: Adding a delta to the RSB at any other size e.g. 10 ppm makes the glyph at 12 ppm suddenly round correctly. Scary :-)

Hope this helps to find bug.
Logged
Tags:
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!