Swedish characters in Fontlab

Matsaki's picture

I use Fontlab to import a bitmap font I am going to use. The problem is that the three extra Swedish characters "Å Ä Ö" is missing from the bitmap font and I want to ad them.

I can see where to put them on the unicode template and I do. But when I export the new font the "ÅÄÖ" don't get included???

All the settings looks right with Latin 1 etc. What am I missing =(

Thanks!

.'s picture

It's hard to tell without looking at your file...

Are you in Codepages view when you generate? And have you renamed the font that you are generating? (You may have a conflict of the old and new if you haven't.)

Matsaki's picture

Hi and thanks for the reply!

I upload the file so you can see it.

http://mats.ayianapa.nu/04b.zip

.'s picture

Mats, I have downloaded the file. Maybe you want to disable that download now. (Copyrighted material, etc...)

.'s picture

Mats, when I open the file "04b-08", it is in Names view mode, which might be the issue. Here's what I would do:

_ Switch to Codepages view mode
_ Choose the codepage you need: Mac OS Roman or MS Windows 1252 Western (ANSI)
_ Perform these commands:
_ _ Select All
_ _ Glyph / Glyph Names / Clear Unicode
_ _ Select All
_ _ Glyph / Glyph Names / Generate Unicode
_ _ Select All
_ _ Glyph / Sort Glyphs / By Encoding

Also...
In the Font Info / Encoding and Unicode window make sure that Greek is checked.
Switch the "FOND ID" to a number less than 10000.
Switch the "Microsoft Character Set" to "Western (Latin 1) CP1252 / ANSI"

See if that works.

c

Matsaki's picture

I think I manage to do everything you suggested. But still have the same problem =(

I have uploaded the new file here http://mats.ayianapa.nu/04b_2.zip

Hmm!!

By the way, what is the small blue icon under each character that looks like a locked symbol or something? My new characters don't have this symbol.

.'s picture

I'll have a look. The font naming isn't what I do, but...

That symbol indicates that the outlines are TrueType.

.'s picture

Mats, are you going to be using the font on a Mac or Windows box?

Matsaki's picture

On a Mac, but I vulad prefer if it was a tty font so it will work on Windows to. But most important is Mac =)

.'s picture

TrueType-flavoured OpenType... Got it.

Why don't you send me an email so that we can continue this off-list:
chester (at) vllg.com

Matsaki's picture

I did send you an email, did you get it?

.'s picture

Note to internets: we've taken this off-list.

tyfont's picture

Hello Matsaki... I saw your font and i want to make a note on that. I assume that you wanna add some more characters at that pixel font (04b_2), but your stress is not in the right placement...

When you make pixel fonts, and your font's UPM value is 1000 then your pixel is 125x125 in the Glyph window... so you can go at the options (FL5) and give the settings to the grid:


*notice the value of "snap to distance" - helps you a lot*

so you can then add / draw pixels with the Rectangle tool more easily...

notice the left char of yours with the wrong position of the stress. On the right is the right position...

Cheers ;o)

ps.

So did you guys managed it to work?

Matsaki's picture

Hi tyfont,
Thanks for the tip! Yes finally after much here and there I can now get the Swedish characters included when i generate the font =)

But now I face a new problem. The kerning (space between letters) is getting a bit messed up =( (at least in Photoshop)

Is there a way to set the kerning automatically?

Ps. How do I get this forum to notify me by email when there is a reply on my thread?? Ds.

Matsaki's picture

By the way. I just tested the grid function and even if it's a bitmap font I imported it don't follow the grid?

As I see some of the lines are only ½ pixel.

This is the settings and how it looks now:

.'s picture

Yes. There were some settings in the Preferences and Font window display which I changed, and which allowed me to generate properly-working fonts.

I have posted the settings here for the curious:
http://vllg.com/files/generatingtt/

I welcome feedback from Adam, Yuri, Cyril, Alex, and anyone else who can guide us all in the best practices of type generation. (I've had good success with my settings...)

tyfont's picture

But now I face a new problem. The kerning (space between letters) is getting a bit messed up =( (at least in Photoshop)
=========================================================

Try and set these options at the Character panel:

Photoshop CS / CS2

Use the font only at 8px (if it is designed at this size*) or multiples of 8 (16,24,etc) with the Anti-aliasing set to "None", and the "Kerning" feature set to "Metrics".

=================
By the way. I just tested the grid function and even if it’s a bitmap font I imported it don’t follow the grid?
=================

*Well if your font is designed to work at 8px size then the grid at 125 will work fine, if you have the UPM size at 1000.

Read the valuable posts of Mark Simonson here:

http://typophile.com/node/706

Matsaki's picture

This is exactly how my settings is in Photoshop. Can it be because I did something wrong when importing the fonts in Fontlab? And just to be sure, is there a way to correct or change the kerning automatically in Fontlab 4.6?

I have changed the prefs exactly as your instructions. I have uploaded a screen shot on my site here: http://mats.ayianapa.nu/dump.jpg

tyfont's picture


=================
This is exactly how my settings is in Photoshop. Can it be because I did something wrong when importing the fonts in Fontlab?
=================

Try and generate the font again and at the settings of the first caption of chester's pics:

http://vllg.com/files/generatingtt/Generating_TT_001.png

UNcheck the "Export Opentype layout tables"


=================
I have changed the prefs exactly as your instructions.
=================

What is the UPM size at your font's info / Metrics and dimensions ? It must be 1000... if not do it so.

:o)

Matsaki's picture

Fonts UPM is set to 1000 now. Before it was 1200. It's also a checkbox with "Scale all Glyps according to UPM range"? Shall I check that?

Also the pics of settings that Chester was so nice to give me. Did not help me all the way as he have the newer Fontlab 5.x and I have 4.6. There are far more settings in the newer version.

I'll give it a new try then =)

tyfont's picture


==============
It’s also a checkbox with “Scale all Glyps according to UPM range”? Shall I check that?
==============

No DON'T check it...

Matsaki's picture

Wow, either I must be so stupid or I am drunk? (or both)

I did the changes and now the font works perfect (as a 7 pixel font)?????????

Anyway, I took a screenshot of all the prefs boxes I have and their settings and uploaded them here:

http://mats.ayianapa.nu/fonts/settings.html

I also Upladed the font and the .vfb file.

Matsaki's picture

Here it is what it looks like with 1000 UPM size (was 1200).

UMP 1000 amd 7 px font size:

UMP 1000 amd 8 px font size:

tyfont's picture

=========EDIT===========

Just change the grid space to 150 and it will work ok at 1200 UPM and 8px at PS

(1200/150=8)

Also always use 100% view at PS to see the pixel fonts right.

Matsaki's picture

Now I also belive in ghosts!

=

tyfont>> did you download the .vfb file and looked at it?

tyfont's picture

Yes i downloaded it...

the normal version is ok

it is at 1200 UPM BUT change the Grid step at 150x150 so as to work at 8px size at Photoshop

(1200/150=8)

the bold version is problematic. it needs redesign.

Do it from scratch again or just leave the UPM size at 1000 as it is and change the grid step at 125 so as to work at 8px at Photoshop

(1000/125=8)

you must then move the corners of the outlines at the grid corners. (snap to distance will help you)

Matsaki's picture

Darn!
So it was the font the whole time then =( Well I have some hours work in front of me now then.

Thanks for the help!!!

Matsaki's picture

Hmm,
I did it all over again. I imoprted the bitmap bold font. Put the UPM to 1200 and grid step to 150-150. Now the font looks great as far as bitmap in Fontlab. (dont have to be redesigned) But the outcome is that the font only works as 7 pixels and not 8???

tyfont's picture

:)))

Ok i guess the original font is " 04b 09" i opened it and i saw that the UPM size is 900 (its developer just wanted that size - don't ask why)... so put your grid step at 150... and the font will work ok at 6px size at PS...

900/150=6

;o)

Matsaki's picture

Yes that's the font. But the other one 04b 08 is 8px, and I want to use these 2 fonts as regular and bold, with the same size? The only problem was that it did not have the Swedish characters ÅÄÖ as I started this thread with =(

Can you see if the 04b 08 have the same UPM (900)?

tyfont's picture

Ok... just download the fonts from the developer's site where these two fonts have the same UPM size (1200) and set the grid to 150. ;o)

I downloaded the font the first time from another site where maybe the font was altered, and had 900UPM size...

Matsaki's picture

Looking in the yellow pages for a madhouse!!!

I downloaded the 04b_09 from the original author. Imported to Fontlab and used UP 200 and grid 150. Now it works fine as a 8px font. but the kerning still gets messed up =((

This is "the never ending story"!!

tyfont's picture

====
http://mats.ayianapa.nu/fonts/settings.html

I also Upladed the font and the .vfb file.
=======

well there's something in your Photoshop Matsaki that mess up the kerning...

i used your bold ttf font from the zip you provided and it works fine to me at 7px.

Matsaki's picture

Yes, I also get the 7px "version" to look ok. But I mean the "original" 8px font from the developer's site. As I want the font in 8px and not 7px. Same as the 04b_08.

tyfont's picture

Hey, don't be confused Matsaki... either 8px or 7px at Photoshop's type panel, the font is still 5 pixels height!! That doesn't change!!

Count the pixels to see it for yourself...

:o)

Matsaki's picture

Ahh great news =)

I suspect that I maybe have a kerning problem anyway. I closely checked normal and bold. I used the 7px font that you downloaded that os working "better" and also took a closer look at the normal font. As you can see the kerning is better, but not perfect as I can see that you get it from your last screens hot.

I also noticed that the kerning problem mostly occurs at the first and the last letter?

tyfont's picture

Matsaki did you notice my last screenshot that i attached and the settings at Photoshop's typepanel???

Did you see the setting at the A--V field that was 0 and not 100 that you use?????

That's the tracking that Photoshop uses... i thought you knew some things about Photoshop's type settings...

...

Read also some instructions (my second post) for proper use of pixel fonts (the size of the font that you will use in Photoshop typepanel depends in the size that the developer says the font works)

Matsaki's picture

tyfont,
I am truly sorry! Shame on me!!! I don't know why I missed that? Maybe because I do this work at nights =(

I will play arround with the font now and get it right. Just that after the last security update for Mac I can't install the bold font???

But now I SHOULD know enough to make it work, and make my life easier=) Thousand thanks for your help and patiance!

/Mats

Syndicate content Syndicate content