Jump to content
Join our community of friends of typography!

Fontlab - Changing diacritics' case

Recommended Posts

scannerlicker
This topic was imported from the Typophile platform

Well, this is probably a easy one:

When working in FreeFont mode, how can I assign automatically a lower-case acute mark to a lower-case glyph and a upper-case mark to a upper-case glyph?

Fontlab insists on giving lower-case marks to all characters.

Thank you in advance.

Link to comment
guifa

Question from non-user: If you have acutecomb and acutecomb.cap, for instance, in your case substitution, does it not automatically replace it when needed? FontForge does it for me...

«El futuro es una línea tan fina que apenas nos damos cuenta de pintarla nosotros mismos». (La Luz Oscura, por Javier Guerrero)

Link to comment
J.Montalbano

If you name your uppercase accents with a .case suffix FontLab will use most of them. You can customize all of this by editing the alias.dat file. You can go as far as using small cap accents named with a .smcp suffix and most of them will work as well. Watch out for those caron.case and caron.smcp uses. You really have to edit alias.dat for those to work.

Link to comment
scannerlicker

OK, thank you guys!

terminaldesign, can you provide me an explanation on how to do this?

Cheers!

Link to comment
J.Montalbano

It is a text edit procedure. Here are the first few lines of the alias.dat file:

%%FONTLAB ALIASES
% Build 2005-09-05 for FontLab Studio 5.0 or higher
AE A_E
AEacute AE+~acute.case
AEacute AE+acutecomb
AEacute AE+acute
AEacute.small AE.small+~acute.small
Aacute A+~acute.case
Aacute A+acutecomb
Aacute A+acute
Aacute.small A.small+~acute.small
Abreve A+~breve.case
Abreve A+uni0306
Abreve A+breve
Abreve.small A.small+~breve.small
Acircumflex A+~circumflex.case
Acircumflex A+uni0302
Acircumflex A+circumflex
Acircumflex.small A.small+~circumflex.small
Adieresis A+~dieresis.case
Adieresis A+uni0308
Adieresis A+dieresis
Adieresis.small A.small+~dieresis.small
Agrave A+~grave.case
Agrave A+gravecomb
Agrave A+grave

As you can see there are several formulas for constructing the composite glyph. If the components are available for the first formula, it will be used. If not the the second formula will be tried, and finally the third.

You can edit these, so if you don't use .case, but use .cap instead, do a find and replace and change it.

Just make sure you have a backup of the original in case you screw it up.

Link to comment
  • 2 weeks later...
J.Montalbano

The tilde before the component is an instruction not to reposition the component. One assumes that the .case or .small accents are designed at the appropriate height to correctly position over the glyphs. If you left the tilde out FontLab would raise the position of the accent assuming it was originally positioned for the lowercase.

Link to comment
  • 2 years later...
  • 2 years later...
Martin Silvertant

Can someone explain what the alias.dat file does exactly? I mean, is it safe to replace the file once you're almost done with your font or should this be done at the beginning of the design process?

Just make sure you have a backup of the original in case you screw it up.

What can potentially go wrong?

Link to comment
Frode Bo Helland

alias.dat has no effect on the font file. You can modify it to change the automated building of composite glyphs, like for example doubleclicking the æ adds composites of a & e.

Link to comment
Martin Silvertant

I had a look at the file and I'm puzzled as to what I actually need to change for cap diacritics, or is it just a matter of being consistent with the suffixes? Is there a preference between .case and .cap?

Link to comment
Martin Silvertant

I'm trying to make the L-caron but can't get it to work. First off, since the caron in L-caron looks like a comma, I created a glyph called 'caroncomma'. I doubt this is how it's supposed to be done, so what's the correct way?

I used caroncomma to generate l-caron and it works as I would expect. For L-caron I created a second caroncomma and tried the names caroncomma.cap, caroncomma.case and caroncommacap but in all cases the caron is placed too high in L-caron. So what do I change in alias.dat to fix this? Also, won't I run into problems when opening the font on a computer which has the unmodified alias.dat?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Our partners

Get to your apps and creative work. Explore curated inspiration, livestream learning, tutorials, and creative challenges.
The largest selection of professional fonts for any project. Over 130,000 available fonts, and counting.
Discover the fonts from the Germany foundry FDI Type. A brand of Schriftkontor Ralf Herrmann.
Discover the Best Deals for Freelance Designers.
Canape—a cosy type family from FDI Type …
×
×
  • Create New...

Important Information

We are placing functional cookies on your device to help make this website better.