freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Freetype] croped bitmaps and scalable glyph metrics


From: Yuliana Zigangirova
Subject: [Freetype] croped bitmaps and scalable glyph metrics
Date: Fri, 20 Jun 2003 18:09:42 +0200 (MEST)

Greetings to everyone!
I would be very grateful if someone could help me with the following:
I am trying to produce the PCL-style bitmap and TrueType fonts, using
FreeType 2.
My first problem is that I can not get croped bitmaps, while loading and 
rendering glyphs.
I have tried  different flags (like FT_LOAD_RENDER, which is supposed to
crop bitmaps
automatically and FT_LOAD_CROP_BITMAP), but it does not work - bitmaps are
still
the same size and uncropped. Probably I am missing something but what
exactly...
Moreover, as far as I can see - bitmaps always have an even pitch, so
sometimes it gives
one extra whole "white"  byte at the end of each row - which I have to  take
out additionally.
May be it is also possible to change this behaviour?

The second problem: I need to get the metrics information for some
particular 
scalable glyphs in font's units.
But when loading glyph without setting the font size the
"face->glyph->metrics.height"
and "face->glyph->metrics.width" always give a strange number of "64" (for
lowercase letters)
for TrueType and Type 1 fonts. It can not be right, can it? BBox  being
1000+ / 2000+
font units wide and high...

Thank you very much in advance for your help, 
Yuliana Zigangirova

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]