T
T
tmtimuchin2021-07-20 17:43:33
Fonts
tmtimuchin, 2021-07-20 17:43:33

How to use OpenType Fonts in Word?

There is a font I made in FontLab 7, each glyph of which has alternative glyphs. I implemented this by looking at the Circe font, as follows: for each character, I created another separate glyph and named it the same as the original with the addition of .alt01 (a → a.alt01). Also in unicode (030 → 030.alt01). Then in feauteres I wrote in aalt:

feature aalt {
# Access All Alternates

  sub one from [one.alt01];
  sub two from [two.alt01];
  sub three from [three.alt01];
  sub four from [four.alt01];
  sub five from [five.alt01];
  sub six from [six.alt01];
  sub seven from [seven.alt01];
  sub eight from [eight.alt01];
  sub nine from [nine.alt01];
  sub zero from [zero.alt01];

} aalt;


As a result, for example, alternative characters are perfectly displayed in Adobe Photoshop, but this does not work in MS Word (I look in Font → Advanced → OpenType Fonts → Stylistic Sets). With the Circe font, with exactly the same implementation of this function, the opposite is true: Photoshop does not distinguish between alternative glyphs, but in Word everything works fine.

Please tell me what could be the problem. I need to use my font in Word. Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tmtimuchin, 2021-07-21
@tmtimuchin

I found the solution myself: it was necessary to create 2 classes - default and alternative glyphs (I called ss01 and ss012). Then in features I wrote the following code:

feature ss01 {
# Stylistic Set 01–20

script latn; # Latin

  lookup ss01_latn {
    sub @ss01 by @ss012;
  } ss01_latn;

} ss01;

Do the same for each subsequent stylistic set (ss). Accordingly, each stylistic set corresponds to ss01, ss02, ss03, etc. It is for them that Word finds the necessary characters. I hope this is useful to someone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question