fontforge / fontforge

Free (libre) font editor for Windows, Mac OS X and GNU+Linux
http://fontforge.github.io/
Other
6.47k stars 700 forks source link

Metrics Window: Add option to toggle hinting #786

Open davelab6 opened 11 years ago

davelab6 commented 11 years ago

A user writes me,

metrics window seems awfully buggy, sometimes one makes changes that show the measurement but have no effect, or they have an effect but the measurement doesn't change!

  • [x] add a toggle option to the View menu, under the Anti Alias toggle option, 'Use Hinting', that toggles the use of hitning in the rendering of the metrics window, so users can toggle between the freetype modes of no hinting applied and hinting applied. The use of hinting in the metrics window is turned up by default by the 'AutoHint: 1' prefs being set, because to render the Metrics window FF is generating a binary font for freetype to use. I guess that for this new 'Use hinting', what FF should do is make a copy of the sf object, clear the PS hints in it, and generate that alongside the hinted version, and then allow switching between the two.
  • [ ] Change the default value for this to 'off'
vernnobile commented 11 years ago

isn't that due to grid fitting? You will see that especially the smaller the text size used in the metrics window. I allways assumed this was because the glyphs in FForges metrics window are not being drawn by quartz etc, so they will not behave 100% like the text rendered by quartz.

On 21 Sep 2013, at 20:02, Dave Crossland notifications@github.com wrote:

A user writes me,

metrics window seems awfully buggy, sometimes one makes changes that show the measurement but have no effect, or they have an effect but the measurement doesn't change!

I reproduced this on mac - http://youtu.be/lUGdTa0griU

Font file is at http://understandingfonts.com/2013/09/Untitled1.sfd

— Reply to this email directly or view it on GitHub.

davelab6 commented 11 years ago

Yeah its fixed by clearing the hints.

vernnobile commented 11 years ago

Yes. The real issue here is maybe that hints are much too easily auto applied, with the inexperienced not knowing about it. Another solution could be to add an option to the rendering of the metrics window, so users can toggle between the freetype modes of no hinting applied and hinting applied. Fontlab has that option. Also serves as a render preview to see differences in the fonts apperance between osx, win, etc On 22 Sep 2013 05:58, "Dave Crossland" notifications@github.com wrote:

Yeah its fixed by clearing the hints.

— Reply to this email directly or view it on GitHubhttps://github.com/fontforge/fontforge/issues/786#issuecomment-24881557 .

davelab6 commented 11 years ago

Perhaps freetype can be told to ignore the hinting

monkeyiq commented 11 years ago

@davelab6 PR 820 uses an existing don't hint flag, please let me know if this works ok as I'm having trouble seeing differences here :|

adrientetar commented 10 years ago

Is this done? I'm not sure I can find the option in the menu...