Using anchors for alternate characters

Primary tabs

17 posts / 0 new
Last post
typophile's picture
Offline
Joined: 11 Jan 2008 - 1:09pm
Using anchors for alternate characters
0

I’m using anchors in Fontlab to generate accented characters.
It works fine with the basic characters, but how do I get this to work with alternates?
I got y.ss01, for example. How should the accented character be named?
y.ss01acute, y.ss01_acute don’t work.
Is it possible at all? Thanks for your help :)

Nick Curtis's picture
Offline
Joined: 21 Apr 2005 - 8:16am
0

yacute :: yacute.ss01 = simple and easy

.Linus's picture
.Linus (not verified)
0

Thanks! I’m sure you’re right, sounds logic. But I still get an empty glyph cell when I generate yacute.ss01. Strange…

Adam Twardoch's picture
Offline
Joined: 3 Dec 2002 - 7:36pm
0

Linus,

the alias.dat file that ships with FontLab Studio does not include all possible alternate glyph + accent combinations. You can add your own composition recipes to alias.dat or you can use the following syntax in FontLab Studio's Generate Glyphs dialog:

y.ss01+acute=yacute.ss01

Before the equation sign is the recipe, and after the equation sign the desired glyph name.

More information about the recipe syntax is given in the Generate Glyphs dialog and in the manual.

Mark Simonson's picture
Offline
Joined: 3 Dec 2001 - 11:00am
0

I save glyph recipes in text files, including ones that use my usual naming system. When I need to make some accented characters, I find the ones (or the set) I want, and then copy and paste into the Generate Glyphs window in FontLab.

.Linus's picture
.Linus (not verified)
0

thanks! this is extremely helpful.

Is there some kind of limit to the size/lenght of the alias.dat file?

Adam Twardoch's picture
Offline
Joined: 3 Dec 2002 - 7:36pm
0

Linus,

not that I know of. Happy extending! :)

Note that in alias.dat, the sequence of items is a bit different: it's
<finalglyphname><whitespace><recipe>
while in the Generate Glyphs dialog it's
<recipe>=<finalglyphname>

That's the only difference.

A.

.Linus's picture
.Linus (not verified)
0

Thanks again Adam, works perfectly!
L.

.Linus's picture
.Linus (not verified)
0

Okay, my alias.dat is now ultra-huge but every combination works. :)

By the way, I stumbled upon these two lines:
germandbls.smcp=s.smcp_s.smcp
germandbls=f_s

Shouldn’t it be:
germandbls.smcp s.smcp+s.smcp
germandbls f+s ?

(As for myself, I would expect germandbls.smcp to look like a small capital sharp S anyway)

Craig Eliason's picture
Offline
Joined: 19 Mar 2004 - 1:44pm
0

From the manual
_ (underscore) appends following glyph to the right.
+ (plus) appends following glyph as component of the composite glyph.

Adam Twardoch's picture
Offline
Joined: 3 Dec 2002 - 7:36pm
0

Yes, the principal difference is that with +, all components will be placed on the advance width of the first component, and with _, the advance width of the final glyph will be the sum of the widths of all components.

"W_I" will produce a glyph where I is next to W on a width which is a sum of the widths of W and I. "W+I" will produce a glyph on the width of W with I centered on W. "W+<I" will produce a glyph on the width of W with I left-aligned with W, and "W+>I" will produce a glyph on the width of W with I right-aligned with W.

.Linus's picture
.Linus (not verified)
0

I’m not sure if you understood me,

germandbls.smcp=s.smcp_s.smcp

germandbls=f_s

is in the original, unchanged alias.dat file, and I think it doesn’t do anything since it’s the wrong syntax.

Adam Twardoch's picture
Offline
Joined: 3 Dec 2002 - 7:36pm
0

Oh, I see, so there's an equal sign instead of space? That's indeed a bug, thanks!

.Linus's picture
.Linus (not verified)
0

You’re welcome!

Cathy Laws's picture
Offline
Joined: 15 Apr 2013 - 1:01pm
0

How can one create custom fonts ?

Thomas W Phinney's picture
Joined: 3 Sep 2002 - 11:00am
0

Cathy: Best to start a new thread if you have a new, unrelated question.

Also, you might want to be more specific: do you want to create a new font from scratch, or make modifications to an existing font? Either way you will need software tools, but more importantly training/education not only in how to use the software, but in type design.

Dipyaman Sarkar's picture
Offline
Joined: 3 Jul 2013 - 12:53am
0

I want to put the image wrapping inside the table cell. Can it be possible to do that? Somebody says it is only done with the help of anchored objects. So, when I apply this one the text wrapping pallet is greyed out. Please suggest me step by step....