Does that help you in any way?
If you are interested in more detailed information, just get in touch.
Cheers,
Frank
> --
> You received this message because you are subscribed to the Google Groups "RoboFab" group.
> To post to this group, send email to rob...@googlegroups.com
> To unsubscribe from this group, send email to robofab-u...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/robofab?hl=en
>
> Messages from newly joined members are subject to moderation.
> Download RoboFab and documentation at http://robofab.com
> I just tried to open an .ufo in FontLab and the checkboxes for right
> and left kerning class are missing. How do you deal with this? Is
> there any "standard" class name suffix to determine if the class is a
> left or right class?
I've explained this to you before (August 11, 2009 to be precise), but I'll summarize...
The class kerning models used by FontLab and the UFO are incompatible. FontLab uses a key glyphs and the class kerning values are implied from the glyph kerning values. The UFO allows kerning of the actual classes. A 1:1 translation between the two is not possible.
As for the prefixes you are suggesting, we have a proposal in UFO 3 that does something similar:
http://unifiedfontobject.org/roadmap.html#kerning
This will solve some difficulties, but the model incompatibility with FontLab is not one of them.
Tal
I will do add some code, similar the code from Eigi to my copy of the objectsFL.py implementation (this would probably go to the readUFO and writeUFO method).
My question is if anyone is interested in this and if it should end up in the main repository?
I would define a unique prefix or suffix that is added to the class name on export according to the checkboxes in FLS. On import, the classname is checked for the identifier, the checkboxes are set and the suffix is removed from the class name.
Two possible formats:
prefix with @FLS_L /@FLS_R
Suffix with _l or _Left and _r or _Right
The distinction from the MM class names is necessary because of the well know incompatibility to not get confused.
I think this can be added without changing the specification as the FontLab class style is a hack anyway.
Georg
How would the case of a group being both left and right be handled?
Ben
Georg
> I know about the incompatible class kerning models. I just want to find a useable workaround, to be able to export a font from FontLab, do something with it (converting the kerning back and forth or whatever I like) and read it back in and be in a similar state than before.
>
> I will do add some code, similar the code from Eigi to my copy of the objectsFL.py implementation (this would probably go to the readUFO and writeUFO method).
It's not necessary to hack the core RoboFab code to do what you want for your workflow. In fact, that is a dangerous way to do it because the next RoboFab installation will wipe out your changes. The way to do it is to make your own export/import script. I made some changes to the UFO export/import functionality in the last release to make these kinds of things easier. I even did this in my own UFO importer/exporter:
http://code.typesupply.com/browser/applicationScripts/FontLab/UFO/UFOCentral.py
You can override the default kerning and group import and do whatever you want.
Tal