These are common issues when generating fonts in FontForge, and they can often be easily fixed. Let's go through each error and how to resolve them:
1. Missing Points at Extrema
Background:
Points at extrema refer to control points placed at the most extreme points vertically and horizontally on a curve. Having points at extrema helps in rendering the font more consistently across different platforms.
How to Fix:
You can use FontForge's automatic fixing tool to add these points.
Steps:
-
Open the Glyph:
- Double-click on the glyph that is causing the error to open the glyph editing window.
-
Find Extrema:
- In the top menu of the glyph editing window, go to
Element > Add Extrema.
-
Automatic Correction:
- FontForge will automatically add points at the extrema of the contours.
-
Save the Glyph:
- Save the changes by closing the glyph window or using
File > Save.
Repeat for other glyphs if necessary.
2. Non-Integral Coordinates
Background:
FontForge prefers coordinates to be integers for better rendering and to avoid rounding issues. Non-integral coordinates mean that the control points are not positioned on exact pixel edges, which could lead to rendering inconsistencies.
How to Fix:
You can round off these coordinates to the nearest integral values.
Steps:
-
Open the Glyph:
- Double-click on the glyph that is causing the error to open the glyph editing window.
-
Round Coordinates:
- In the top menu of the glyph editing window, go to
Element > Round....
-
Select Precision:
- In the dialog box that appears, you can choose the precision. Usually,
Round to Int is sufficient for most purposes. Click "OK" to apply.
-
Save the Glyph:
- Save the changes by closing the glyph window or using
File > Save.
Repeat for other glyphs if necessary.
Automating Corrections for Multiple Glyphs
If you have a large number of glyphs and want to automate these corrections:
-
Add Extrema to All Glyphs:
- In the main font window, select all the glyphs you want to correct (you can use
Edit > Select... to choose multiple glyphs).
- With the glyphs selected, go to
Element > Add Extrema from the main font window.
-
Round Coordinates for All Glyphs:
- Similarly, with the glyphs selected, go to
Element > Round... from the main font window.
- Choose the appropriate rounding option and click "OK".
Re-Generate the Font
After making these corrections:
- Go to
File > Generate Fonts....
- Select TrueType (
.ttf).
- Save and resolve any remaining validation errors as described above.
By following these steps, you should be able to address the "Missing points at extrema" and "Non-integral coordinates" errors and generate your TTF file successfully. If you encounter any further issues, please let me know!