Font: how to create a new font?

Das Forum befindet sich im reduzierten Betrieb. Die Addon- und Supportforen bleiben weiterhin verfügbar.
Bitte beachte, dass OMSI nicht mehr weiterentwickelt wird. Ein Teil der Entwickler widmet sich inzwischen der Entwicklung eines neuen Simulators. Weitere Informationen zum LOTUS-Simulator findest Du hier.
Ein communitybetriebenes Nachfolge-Forum wird hier verlinkt, sobald es gegründet und bereit ist.
  • I was wondering if there's someone that can kindly explain how to create a new font; I've tried translating the description of every single argument but I'm really sure that I'm missing something.
    Here you can find an example of what I've managed to make so far:


    Thanks in advance.

  • And what do you need help with exactly? What part?

    Seasonic SSR-650TD; Intel Core i5-6600K 3,5GHz; Gainward GTX 1060 6GB Phoenix GS; 2x Kingston HyperX Fury 8GB; 2x Seagate Barracuda 2TB; 2x 24" AOC I2481FXH; Windows 8.1

  • The creation of the .oft file.
    I've treid to take a look at the other font files but nothing.

  • This is an Expert's answer from another thread:


    Translation:

    Zitat

    The creation of a .oft file is relatively easy:



    The .oft file is now written, following this pattern. You can find out the measurements (height in pixels, coordinates etc.) using an image editing software. In order to explain, here is a commented excerpt of a .oft file:

    “Half of seeming clever is keeping your mouth shut at the right times.” ― Patrick Rothfuss, The Wise Man's Fear

  • Still this is not clear: i just keep measuring other fonts and all the measurements reported in the .oft file are different compared to the ones did on the file.


    The height:


    like this?



    The gap:

    like this?


    or this?


    Then why would I need to write the top right x coordinate + the gap if I've already stated it in the [newfont] section? This thing does not make sense to me...

  • You need more space above A for some special characters like Á or Ä etc. The way I create gap is that it's fixed size in the beggining of .otf file and then make characters ~9 pixels from each other (narrow spacing in Word, but I'm not 100% sure) and the size is "1+ character (white) + 1" to make sure there won't be black borders around. You can choose either fixed gap (in .oft for all characters) or flexible gap (letter spacing in the image).


    Seasonic SSR-650TD; Intel Core i5-6600K 3,5GHz; Gainward GTX 1060 6GB Phoenix GS; 2x Kingston HyperX Fury 8GB; 2x Seagate Barracuda 2TB; 2x 24" AOC I2481FXH; Windows 8.1

    3 Mal editiert, zuletzt von Etrusan ()

  • Actually I'm not using any strange accented characters, that's why I'm using that height measure.


    So, given this image:



    Here's what my oft file contains:



    Then, replaced the old line number font in the churaKrüger script, entered a capital A from the OMSI dialog box and here's what it produced:

  • Actually I'm not using any strange accented characters, that's why I'm using that height measure.
    2 (that's something that I can't understand, but I'm assuming it is the gap between the border and the first character of a line)


    No. That's fixed gap between letters, no matter the spacing in image. Also, you may not use accent letters, but it's better to prepare the font for it for the future. Redoing the font for it is pure waste of time. That's why I always leave extra space, thinking ahead.

    Seasonic SSR-650TD; Intel Core i5-6600K 3,5GHz; Gainward GTX 1060 6GB Phoenix GS; 2x Kingston HyperX Fury 8GB; 2x Seagate Barracuda 2TB; 2x 24" AOC I2481FXH; Windows 8.1

  • You just take the letter +2 pixel and that's it. Then you test in OMSI and find the right number for fixed gap. It takes a bit of time tho.

    Seasonic SSR-650TD; Intel Core i5-6600K 3,5GHz; Gainward GTX 1060 6GB Phoenix GS; 2x Kingston HyperX Fury 8GB; 2x Seagate Barracuda 2TB; 2x 24" AOC I2481FXH; Windows 8.1

  • Which font for the line number are you editing as I am trying to do the same, I am so
    glad you asked this, I've been meaning to ask in detail for sometime!


    But which font of the churaKruger is the number?


    Thanks!

  • Look, I just gave up. There's no way to get this to work: the informations are just too vague. Sorry-

  • I'll try this and see if I can help you. It's too cryptic and mathematical the way its described. Which is why I gave up making a bus, the explanation is too vague.


    Don't give up though, i'll try today and see If i can make sense of it.... I hope LOTUS has a more indepth guide.

  • Same thing here: while a script may seem complicate, at the end it isn't, it's just logic. I thought that given a 1024x824 image containing a font the easiest way to port it for a bus display (churaKrüger) was to scale it and divide every value in the oft by 4 (because the image containing the font is now 256x206)... easy, but this won't work.

  • Sorry to hijack the thread but I tried this:



    < Original Font Chrono 16x8

    < My attempt - Haven't changed the .oft file yet to try in OMSI. But this font has a lot of shading to make it appear curved.