[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] few basic qestions.
From: |
David Turner |
Subject: |
Re: [Freetype] few basic qestions. |
Date: |
Fri, 22 Feb 2002 09:30:28 +0100 |
Hello,
address@hidden a écrit :
>
> hi
>
> I am new bee to freetype.
> My ultimate aim is to port freetype2 on a box on which I am working
> presently. Freetype 2 will be embedded in this box. This box has its own
> display. And the target OS is vxWorks.
>
> Now my questions are as follows.
>
> 1)freetype2 is a independent font renderer or it needs some software such as
> X11.
>
It's independent..
> 2)If it is a independent font renderer, then can you please explain, how do
> I tell freetype2 about my display or framebuffer.
>
You don't, because FreeType doesn't do the display. All it does is generate
monochrome or anti-aliased glyph bitmaps, return glyph metrics and other
kind of information..
It's up to you to determine how to display these. Note also that:
- FreeType doesn't manage font installation, it's up to you to
give the right parameters to either FT_New_Face, FT_Open_Face,
FT_Attach_File, FT_Attach_Stream..
- FreeType provides a caching sub-system that is useful to cache
glyph images (bitmaps, outlines, or both, even charmaps). This is
important for good performance since you don't want to call
FT_Load_Glyph each time you need to draw a glyph
(loading and generating a glyph image is a complex and slow process)
> 3) How do I port freetype2 library on vxWorks ( more generally for an
> embedded environment). I am asking this because, in the feature list of
> freetype2 it is mentioned that this project aims at embedded environment
> also but at the same time I did not find any documentation telling how do I
> accomplish this.
>
You don't need to. You can still try to customize it for your specific needs
by changing the contents of the files in include/freetype/config, more
specifically the files "ftoption.h" and "ftmodule.h" but read the
documentation and comments before doing so..
If I remember correctly, FreeType has already been compiled on VxWorks
without problems..
Regards,
- David Turner