[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] baseline / horizontal shift of symbols?
From: |
Oliver Bandel |
Subject: |
Re: [ft] baseline / horizontal shift of symbols? |
Date: |
Tue, 19 Feb 2008 19:15:57 +0100 |
User-agent: |
Internet Messaging Program (IMP) 3.2.6 |
Zitat von Oliver Bandel <address@hidden>:
> Hello,
>
> my other problem is fixed now. I have now a scalable font
> snd scaling is no problem.
>
> But now I have a new problem: when I get some glyphs
> from that font, and scale them and put them together,
> how to put them on one baseline?
[...]
It seems to me, it IS a scaling-problem.
When I see it correctly, the
metrics.horiBearingY
can be used to determine, where the symbol begins
at the top.
So this can be used for alignment.
But when I create data for some symbols, I get the following results:
------**********---**********-----**----*****---------***-------
------**********---**********----****----****--------*****------
---------*****--------*****-----*****----****-------*******-----
---------*****--------*****-----******---****------*********----
---------*****--------*****------****----****-----****--*****---
---------*****--------*****-------**-----****----****-----***---
---------*****--------*****--------------****---****-------***--
---------*****--------*****----*******---***---****---------***-
---------*****--------*****----*******----**--------------------
---------******************------*****----**--
---------******************------*****----**--
---------*****--------*****------*****----**--
---------*****--------*****------*****----**--
---------*****--------*****------*****----**--
---------*****--------*****------*****----**--
---------*****--------*****------*****--------
---------*****--------*****------*****--------
---------*****--------*****------*****---***--
---------*****--------*****------*****---****-
---------*****--------*****------*****--*****-
------**********---**********----*****---****-
------**********---**********--*********-****-
------ -*********------
This is one empty field (you can ignore the leading
"------" before the "H" starts).
Then "H", "i", "^" and the whole stuff vith vim
put together to see, what would happen....
As you can see, the small "i" is larger than the big "H".
I used FT_Set_Pixel_Sizes() for setting the size.
I think I had the similar results with FT_Set_Char_Size() (?).
Why is the small "i" larger than the big "H"?
Do I have to do the scaling by myself?
isn't there a value, that shows me, how much smaller
the "i" is, compared to the "H"?
Do I have to make that scaling by myself?
I can't believ that...
Please help.
TIA,
Oliver