Problem with Code Editor in Open Type Designer

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
PJMiller
Top Typographer
Top Typographer
Posts: 977
Joined: Tue Jun 16, 2015 8:12 pm
Location: Sheffield, South Yorkshire
Contact:

Problem with Code Editor in Open Type Designer

Post by PJMiller »

I have created two Classes in Open Type Designer. One called '@Basic_Base' which contains a list of all the base characters which have all the anchors. The other is called '@Cyrillic_Base' which contains a list of Cyrillic characters which have a restricted set of anchors.

Whenever I open the code in the Code Editor it replaces these two classes with one class called '@M2B_B__A' which seems to be a merge between the two classes it replaces. A syntax check complains that there are one or more unreferenced classes (which are the ones it has replaced).
FC_OTD_class_problem.jpg
FC_OTD_class_problem.jpg (1.39 MiB) Viewed 3048 times
What is going on here ?

Can I not place more than one class into the Mark to Base open type feature ?
Erwin Denissen
Moderator
Moderator
Posts: 11108
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Problem with Code Editor in Open Type Designer

Post by Erwin Denissen »

Positioning code doesn't use all classes as shown in the OpenType Designer. Only classes that are actually used within the OpenType feature code will be compiled into the font.
Erwin Denissen
High-Logic
Proven Font Technology
PJMiller
Top Typographer
Top Typographer
Posts: 977
Joined: Tue Jun 16, 2015 8:12 pm
Location: Sheffield, South Yorkshire
Contact:

Re: Problem with Code Editor in Open Type Designer

Post by PJMiller »

I created two classes with names I could understand.
When exported to a font the diacritic marks are correctly positioned in Libre Office and Page Plus.

If I open Code Editor it discards my named classes and creates a new class with a name which to me is less understandable without asking. Then brings up a warning about unused classes.
If exported to a font the diacritic marks are correctly positioned in Libre Office, I have not tested them in Page Plus but there is no reason to suppose they will not work there as well.

The point is that opening Code Editor re-writes my code in ways I did not expect.
Erwin Denissen
Moderator
Moderator
Posts: 11108
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Problem with Code Editor in Open Type Designer

Post by Erwin Denissen »

That is exactly what I tried to confirm. Source and Binary are not 100% exchangeable. Right now there is not much we can do about it, as it is by design.

If you open a font with OpenType features and recompile it, you'll notice FontCreator is actually very smart at finding and eliminating irrelevant parts of OpenType layout features that are never used within a font.
Erwin Denissen
High-Logic
Proven Font Technology
PJMiller
Top Typographer
Top Typographer
Posts: 977
Joined: Tue Jun 16, 2015 8:12 pm
Location: Sheffield, South Yorkshire
Contact:

Re: Problem with Code Editor in Open Type Designer

Post by PJMiller »

So it combines the classes, I can live with that. Sorry to cause a fuss.

No problem. I didn't understand what it was doing and why.
Erwin Denissen
Moderator
Moderator
Posts: 11108
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Problem with Code Editor in Open Type Designer

Post by Erwin Denissen »

I'm not saying it combines them; I'm just saying it tries to be smart :D
Erwin Denissen
High-Logic
Proven Font Technology
Post Reply