FontLab Forum
2012-05-22, 21:47:30 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the FontLab forum, read how to use it! Update: Archives from old MSN forums are now available on our forum.
 
   Home   Help Search Calendar Downloads Tags Login Register  
Del.icio.us Digg FURL FaceBook Stumble Upon Reddit SlashDot

Pages: [1]
  Print  
Author Topic: Opentype Question  (Read 3092 times)
Neil
Guest
« on: 2009-09-14, 06:13:24 »

Hi,
I hope this is in the correct place and that someone can point me in the right direction.
I have designed a font that uses contextual alternate glyphs.
Eg sub space f' by f_init;
However, in InDesign, when an f begins a new line even though the space ends the previous line, the alternate glyph is not used.
What unseen character begins a new line in InDesign?... so that I can add it to the scripting?
Also what is nbspace and .null...do they have something to do with the problem I am having with the contextual alternatives?

Many thanks
Neil
Logged
Neil
Guest
« Reply #1 on: 2009-09-14, 09:02:54 »

Just to clarify,
its not limited to f beginning a line, its true for all letters , i just used f for the purposes of continuing the example.
neil
Logged
Alex Petrov (FontLab)
Tech Support, Fontlab Ltd.
Global Moderator
Hero Member
*****

Karma: +6/-1
Russian Federation Russian Federation

Posts: 470



WWW
« Reply #2 on: 2009-09-14, 10:02:12 »

'.null' is never used in texts, 'nbspace' is the synonim to space but it cannot occur at the end of line. Paragraph usually ends with Unicode 0x000A and 0x000D.
Perhaps you need to use 'init' and 'fina' features?
« Last Edit: 2009-09-14, 14:25:24 by Alex Petrov (FontLab) » Logged
Neil
Guest
« Reply #3 on: 2009-09-14, 11:01:03 »

Hi Alex,
thanks for the reply.
init and fina would have been my first choice but as far as i know InDesign does not have capability for these.
It is a strange problem. Here is an example continuing with the f.

To be fulfilled.

In the above example the first f would change according to my rule, but if 'fulfilled' is split off and begins the next line, even though it is still in the same sentance and the sapce is still there the f does not change.
Quite odd.
I have attached an example of my font.
Logged
Eigi
Beta: FontLab Studio Mac
Hero Member
***

Karma: +7/-0
Germany Germany

Posts: 57



WWW
« Reply #4 on: 2009-09-14, 14:22:44 »

Hello,

try something like this:

Code:
ignore sub @letter f';
sub f by f_init;

Where @letter is a class with all glyphs which may occur in words (everything except punctuation, numbers...)

Regards
Eigi
« Last Edit: 2009-09-14, 14:25:02 by Eigi » Logged
Neil
Guest
« Reply #5 on: 2009-09-14, 15:00:26 »

Hi
I was struggling to see how this would work, but its just clicked!!
I am a beginner.
Thanks, I'll give it a try.

Neil
Logged
Tags:
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!