![Smile :)](./images/smilies/ms-smile.png)
Ok, let's wait for the Big Boss and see what he has to say...
Are you being condescending? I'll have you know that without me, rude would be stuck without buggy text-rendering! So there!alxs wrote:Oh, I thought you were both equal "partners" here
Yes. No. Maybe.alxs wrote:Oh, so this was your major contribution to the project!
My snide comment detector is flaring.alxs wrote:Users like me, who will spend countless hours trying to find your precious, hidden treasure-bugs will certainly appreciate your effort! Ah, little surprises... Keep it up!
Not sure.. I think it was something about not being sued by Microsoft for distributing their precious fonts for free.alxs wrote:BTW, I guess you didn't use Windows fonts, right? Because of portability?
Kerning pairs? Fixed-widht? Please elaborate.alxs wrote:I also didn't notice where you specify kerning pairs for fonts. The fonts don't look like fixed-width ones, but where are all the values?
So what about the quotation mark (")?Sardtok wrote:You have a bitmap, where one colour is specified as the colour separating two characters, so there's a line of that colour.
This is how ImageFont works, by specifying a color (which isn't transparent and isn't anywhere in the actual font) that separates each character. You could fool the system by having a character that looks like this:Sardtok wrote:I believe the font works like this, please correct me if I'm wrong though:
You have a bitmap, where one colour is specified as the colour separating two characters, so there's a line of that colour.
There are no specified kerning pairs though, nor does it have whatever it's called again when two characters turn into one:
Like et, fi, ti and so on.
Even if " is (in essence) two separate symbols, in the bitmap image they are separated from each other by transparent pixels and separated from other characters by a "spacer color" which designates them as a single character, as so:alxs wrote: So what about the quotation mark (")?
Will it count as 2 characters? Plus there can be other characters, consisting of two and more parts...
Otherwise - quite clever solution as a rough approximation...
Users browsing this forum: No registered users and 7 guests