FL feature corruption?
Yesterday I was trying to figure out fixing a Postscript font where I work that was not working. Font Doctor said the data tables of the bitmap files were "questionable and said it fixed these. The font still did not work. So I decided I would rebuild it. Since our proprietary PS fonts use various character slots for alternates and ligatures I decided to move there into there own slots and write feature code for the substitutions.
While I was typing the code I noticed my text was acting a bit weird. Like when I would insert the cursor in between letters, the text would shift over as if I had hit the tab key. This was annoying, but did not seem to affect the outcome. I added 6 features plus the aalt feature (which I moved to the top) so I could get the glyph palette to be easy to use. The font seems to work fine. What really threw me for a loop is when I opened up the FontLab file again, FL took all my other features away from the left side column and placed them below the aalt feature which is the only one on the left side now. BTW …in the OT preview all the features show up fine.
Is this an indication that FontLab is corrupt or is there something I did that caused this?






11.Mar.2010 8.40am
That is weird.
I'm not sure if it's related, but recently I was writing features for a font and put in lots of comments at the top of the lower pane, followed by some class definitions. Everything was fine until I closed and re-opened the font: The stuff I'd put in the lower pane vanished, along with my feature definitions in the upper area. I discovered I could work around it by putting the comments inside a dummy class.
It seems that what you type in the OT panel is saved but not always read back in correctly, maybe because it is not formatted the way FontLab expects or something.
11.Mar.2010 8.46am
I can’t remember the details, but I had similar problems and assumed it was my fault. When I work with OT code I now handle it the same way I handle classes. Once everything is set up and working I immediately generate a feature file that I can use to restore the working setup.
11.Mar.2010 9.23am
Thanks Mark and James.
I wrote my feature code in text edit (mac) and pasted it into the OT feature panel. The text edit file was on plain text mode so that shouldn't have been a problem. Since typing in general seemed buggy, I think something was out of synch. I might try a 2nd time after I've done a restart and see if FL behaves the same. I seem to have a penchant at work for making software go bad.
11.Mar.2010 10.22am
The typing thing is a matter of choosing a better default font for FL5 to show your code in. Try a couple of different monospace coding fonts until you find one that spaces the way FL5 thinks it should.
The other thing seems like you left out a semicolon somewhere.
11.Mar.2010 1.20pm
Chris, I checked and all semicolons are there. The font would have failed to compile if a semicolon was missing, so I don't think that was it. I'm hoping it was just my computer acting weird and not anything permanently altered with FL.
11.Mar.2010 1.36pm
Chris, looks like you were on to something.
I did 3 changes. First I changed the font. That made everything line up much better in the OT panel. Next I noticed in the aalt feature under "feature salt" the semicolon was there, but 1 space away. I deleted that space. Then at the end of the aalt feature I noticed that there was no space after the right brace so I put a space there. Then I saved and closed the font. When I opened it again everything was listed on the left as it should have been.
Thank you so much!