Class sorting in Open Type Designer

Got a request? Post it here. Please do not post bug reports here.
Post Reply
PJMiller
Top Typographer
Top Typographer
Posts: 739
Joined: Tue Jun 16, 2015 8:12 pm
Location: Sheffield, South Yorkshire
Contact:

Class sorting in Open Type Designer

Post by PJMiller » Thu Mar 28, 2019 12:11 pm

It is tedious to arrange the order of classes in Open Type Designer.

It would be nice if there was a button which could sort the class into something useful. A very useful order would be each base glyph followed by the composites which use that glyph. So 'A' would be followed by 'Agrave','Aacute','Acircumflex', etc. until 'B' would be placed after the A list. Then the same for each simple glyph in order each followed by the composites which use that glyph.

This is the order which I usually arrange the anchor classes but it would be nice if there were a way to do it automatically.

Erwin Denissen
Moderator
Moderator
Posts: 8183
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Class sorting in Open Type Designer

Post by Erwin Denissen » Thu Mar 28, 2019 12:19 pm

Do you want to sort the list of classes, or the glyphs in a class?

Sorting glyphs in a class may cause serious issues if used with substitutions.
Erwin Denissen
High-Logic
Proven Font Technology

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

Re: Class sorting in Open Type Designer

Post by Bhikkhu Pesala » Thu Mar 28, 2019 12:39 pm

I use cut and paste in the Code Editor to sort classes in the order that I want. It is much quicker than using the buttons to move a class up or down in the list. There is already a button (FontCreator 11.5) to sort them by name.
Sort Classes.png
Sort Classes.png (5.06 KiB) Viewed 603 times
My FontsReviews: MainTypeFont CreatorHelpFC12 Pro + MT8.0 @ Win10 1809 build 17763.557

PJMiller
Top Typographer
Top Typographer
Posts: 739
Joined: Tue Jun 16, 2015 8:12 pm
Location: Sheffield, South Yorkshire
Contact:

Re: Class sorting in Open Type Designer

Post by PJMiller » Thu Mar 28, 2019 12:52 pm

I want to sort the glyphs in a class. These classes are used for anchors not the ones used for other things.

This is a 'nice to have' rather than an 'essential' and it only has to be done once per class so I will continue with sorting them by hand. But I will look at the code editor to see if there is a section I can copy and paste (thanks Bhikkhu Pesala, I hadn't thought of that) to just sort it once then copy it to the italic, bold and bold-italic fonts.

Erwin Denissen
Moderator
Moderator
Posts: 8183
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Class sorting in Open Type Designer

Post by Erwin Denissen » Thu Mar 28, 2019 1:35 pm

I've added your request to the to-do list.
Erwin Denissen
High-Logic
Proven Font Technology

PJMiller
Top Typographer
Top Typographer
Posts: 739
Joined: Tue Jun 16, 2015 8:12 pm
Location: Sheffield, South Yorkshire
Contact:

Re: Class sorting in Open Type Designer

Post by PJMiller » Sat Mar 30, 2019 5:58 pm

Having sorted the glyphs with each base glyph followed by the composites that use it consistent positioning of anchors is now much easier, and I spotted some anomolies.

It is worth doing, however I realised that if I had sorted the glyphs alphabetically in the main window before making the classes in the first place (so that they were sorted alphabetically in the dialog to select glyphs for a class) then the process would have been a lot quicker and easier because most of the glyphs in the class would have been in the correct order to start with.

Silly me. :lol:

Post Reply