different substitutes for first letter of a word, middle of a word, and last letter of a word...

Hello everyone.

I'm working on a font containing purely graphics. It's basically a visual code, which can be read only by copy-pasting it from a pdf.

I could not find anywhere how to create the following simple opentype setup:

- each caracther has a basic view - when it's used as a single letter (for example at ~'a' between two spaces)
- if the same character is in first letter of a word it should use a.alt_01
- if the last character of a word, a.alt_03
- everything else (in-between letters of a word) a.alt_02

Is this possible?

Thanks very much!

Krisztián



Comments

  • Thank you Craig!
  • John Hudson
    John Hudson Posts: 3,186
    Although some fonts and software may attempt to use the {init} {medi} etc. features for word-positional substitutions (and I discussed them in this context in my draft specification for a general OpenType Layout model), the general view at the OTL engine developer meeting in Seattle this April was that these features should properly be viewed as—and reserved for—script-level joining behaviour as defined in the Unicode Standard. This is already the primary purpose of these features, for Arabic, Syriac, etc., in which application of the features is based on character joining type properties that are defined in Unicode. Not only are word-positional character contexts not so cleanly defined anywhere (bear in mind that not all scripts and languages handle word breaks in the same way as, say, English), but duplicating using these features for word-positional as well as character joining type means that there is no way to address word-positioning substitutions for scripts like Arabic that rely on these features for joining behaviour.
  • uh. thanks for the help.
    this project is really just about misusing the otf format for smart graphics. i did this kind of thing with programming (in openframeworks, and in scriptographer) but those environments are for nerds. i want to use otf because everyone knows what a font is, so it's easier to publish it in a way that you don't need to install a lot of things to use it.
  • krisztian kristof
    krisztian kristof Posts: 11
    edited July 2014
    hi

    it must be something really simple causing this error, but i cannot find it with my noob eyes.
    any ideas?
    (the underscores were mistakes, i corrected them)
    (as well, the lookup was originally in the upper window with calt, but after saving and reopening it moved to the bottom)

    thanks,

    krisztian

    image


  • krisztian kristof
    krisztian kristof Posts: 11
    edited July 2014
    this is an animation i made - with the desired effect. unfortunately i get this fatal @ token problem even with proper font source files.


    image
  • Problem solved - my python installation was broken.