Porting FT2

View: New views
10 Messages — Rating Filter:   Alert me  

Porting FT2

by Kumar.K :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

            I am kumar working in Jasmin Infotech PVT.LTD. Chennai India. I want to port FT 2 to my application. We are working in analog devices Blackfin processor, and using its IDE -VDK .  I want to use only true type font for my project. Can you tell where should I start? Actually I am struggling …


 

 

Best Regards,

Kumar.K

 


_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: Porting FT2

by Werner LEMBERG :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> I want to port FT 2 to my application.  We are working in analog
> devices Blackfin processor, and using its IDE -VDK.  I want to use
> only true type font for my project.  Can you tell where should I
> start? Actually I am struggling .

Please read the files INSTALL.ANY and CUSTOMIZE (in the `docs'
subdirectory) and look up the mailing list archives of both freetype
and freetype-devel since this is a rather popular question.


    Werner


_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

RE: Porting FT2

by Kumar.K :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
        I want the latest version and its documentation, demo and its
related files I found these following links,

http://savannah.inetbridge.net/freetype/

http://sourceforge.net/projects/freetype/files/


In the above page link there are lot of zip files and other format files.
Can you give me the correct links?




Best regards,
Kumar.K

-----Original Message-----
From: Werner LEMBERG [mailto:wl@...]
Sent: Thursday, November 12, 2009 12:57 AM
To: kumar.k@...
Cc: freetype-devel@...
Subject: Re: [ft-devel] Porting FT2


> I want to port FT 2 to my application.  We are working in analog
> devices Blackfin processor, and using its IDE -VDK.  I want to use
> only true type font for my project.  Can you tell where should I
> start? Actually I am struggling .

Please read the files INSTALL.ANY and CUSTOMIZE (in the `docs'
subdirectory) and look up the mailing list archives of both freetype
and freetype-devel since this is a rather popular question.


    Werner




_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: Porting FT2

by mpsuzuki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

The naming conventions of the files are:

When the version of freetype2 is L.M.N (in this case, L=2, M=3, N=11)

freetype-L.M.N.tar.gz tar+gzip archived source (for Unix, Mac OS X)
freetype-L.M.N.tar.gz.sig checksum for tar+gzip source
freetype-L.M.N.tar.bz2 tar+bzip2 archived (for Unix, Mac OS X)
freetype-L.M.N.tar.bz2.sig checksum for tar+bzip2 source
ftLMN.zip zip archived source (for Win32)
ftLMN.zip.sig checksum for zip archived source

ft2demos-L.M.N.tar.gz tar+gzip archived demo program source
ft2demos-L.M.N.tar.gz.sig checksum for tar+gzip archived demo
ft2demos-L.M.N.tar.bz2 tar+bzip2 archived demo program source
ft2demos-L.M.N.tar.bz2.sig checksum for tar+bzip2 archived demo
ftdmoLMN.zip zip archived demo program source
ftdmoLMN.zip.sig checksum for zip archived demo program source

freetype-doc-L.M.N.tar.gz tar+gzip archived document
freetype-doc-L.M.N.tar.gz.sig checksum for tar+gzip archived document
freetype-doc-L.M.N.tar.bz2 tar+bzip2 archived document
freetype-doc-L.M.N.tar.bzip2.sig checksum for tar+bzip2 archived document
ftdocLMN.zip zip archived document
ftdocLMN.zip.sig checksum for zip archived document

I don't know the detail development environment, and
your favorite archiver, so I cannot tell you exact files.

If your development environment prefers the sources
terminated with Win32-like CR/LF, zip files might be better.

Regards,
mpsuzuki

On Thu, 12 Nov 2009 14:41:32 +0530
"Kumar.K" <kumar.k@...> wrote:

>Hi,
> I want the latest version and its documentation, demo and its
>related files I found these following links,
>
>http://savannah.inetbridge.net/freetype/
>
>http://sourceforge.net/projects/freetype/files/









On Thu, 12 Nov 2009 14:41:32 +0530
"Kumar.K" <kumar.k@...> wrote:

>Hi,
> I want the latest version and its documentation, demo and its
>related files I found these following links,
>
>http://savannah.inetbridge.net/freetype/
>
>http://sourceforge.net/projects/freetype/files/
>
>
>In the above page link there are lot of zip files and other format files.
>Can you give me the correct links?
>
>
>
>
>Best regards,
>Kumar.K
>
>-----Original Message-----
>From: Werner LEMBERG [mailto:wl@...]
>Sent: Thursday, November 12, 2009 12:57 AM
>To: kumar.k@...
>Cc: freetype-devel@...
>Subject: Re: [ft-devel] Porting FT2
>
>
>> I want to port FT 2 to my application.  We are working in analog
>> devices Blackfin processor, and using its IDE -VDK.  I want to use
>> only true type font for my project.  Can you tell where should I
>> start? Actually I am struggling .
>
>Please read the files INSTALL.ANY and CUSTOMIZE (in the `docs'
>subdirectory) and look up the mailing list archives of both freetype
>and freetype-devel since this is a rather popular question.
>
>
>    Werner
>
>
>
>
>_______________________________________________
>Freetype-devel mailing list
>Freetype-devel@...
>http://lists.nongnu.org/mailman/listinfo/freetype-devel


_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: Porting FT2

by Werner LEMBERG :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> I want the latest version and its documentation, demo and its
> related files I found these following links,
>
> http://savannah.inetbridge.net/freetype/
>
> http://sourceforge.net/projects/freetype/files/
>
> In the above page link there are lot of zip files and other format
> files.  Can you give me the correct links?

The canonical site is http://www.freetype.org; the latest release is
2.3.11.  If you are on Windows you should use the zip files.


    Werner


_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

RE: Porting FT2

by Kumar.K :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
        As it said in INSTAL.ANY I have included the following c source
files for compilation

        src/base/ftsystem.c
      src/base/ftinit.c
      src/base/ftdebug.c

      src/base/ftbase.c

      src/base/ftbbox.c       -- recommended, see <freetype/ftbbox.h>
      src/base/ftglyph.c      -- recommended, see <freetype/ftglyph.h>
        src/base/ftbitmap.c     -- optional, see <freetype/ftbitmap.h>
        src/truetype/truetype.c -- TrueType font driver
        src/raster/raster.c     -- monochrome rasterizer
      src/smooth/smooth.c     -- anti-aliasing rasterizer
        sfnt.c' and `psnames.c'

Also as it said in, "II. Modules list" of CUSTOMIZE, I have commented
manually every thing except

        "FT_USE_MODULE( FT_Driver_ClassRec, tt_driver_class )"

Now I am having two problems :

First one is:

        I am getting following linker error:

        [Error li1021]  The following symbols referenced in processor 'p0'
could not be resolved:
        'ft_grays_raster [_ft_grays_raster]' referenced from
'Debug\ftsmooth.doj'
        'main [_main]' referenced from 'crtsf532y.doj'

The Second one is:

        I want one main function, with in that function what are all should
I call? So I can give my file path name for getting pixel data?


Best regards,
Kumar.K




-----Original Message-----
From: Werner LEMBERG [mailto:wl@...]
Sent: Thursday, November 12, 2009 3:41 PM
To: kumar.k@...
Cc: freetype-devel@...
Subject: Re: [ft-devel] Porting FT2


> I want the latest version and its documentation, demo and its
> related files I found these following links,
>
> http://savannah.inetbridge.net/freetype/
>
> http://sourceforge.net/projects/freetype/files/
>
> In the above page link there are lot of zip files and other format
> files.  Can you give me the correct links?

The canonical site is http://www.freetype.org; the latest release is
2.3.11.  If you are on Windows you should use the zip files.


    Werner




_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: Porting FT2

by Antoine Leca-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Kumar.K wrote:
> I want one main function, with in that function what are all should
> I call? So I can give my file path name for getting pixel data?

Freetype is a library, there is no main() function.

Look at ft2demos-L.M.N.tar.bz2 (resp. ftdmoLMN.zip) for examples of
small programs which use the library, and which indeed have main()
functions.


By the way, Werner, the baroque name for the .zip file is constrained by
the '8.3' rule required for ISO9660 (version 1) and MS-DOS (w/o VFAT)
file systems; and with N now in excess of 10, the rule is breached. Of
course in 2009 everybody which got such a file and have to shoehorse its
name (for example to send it to some embedded systems kit) can easily
rename it, yet I believe it would be more correct to stick to the rule
even for the accessory archives, perhaps naming the last release as
        ft23b.zip
        ftdmo23b.zip
        ftdoc23b.zip
(with b being the 11th letter in the 0123456789abcdefghij alphabecedary)
  or alternatively
        ft2311.zip
        ftdm2311.zip
        ftdo2311.zip


Antoine


_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

RE: Porting FT2

by Kumar.K :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all,
       
Now I have planned to work with VC++ first then I will extend it to my own
platform (VDSP environment/Blackfin processor), for that I am having the
following basic doubts, please clarify...

My aim is I want to use TTF font for my project GUI display.

1. I have compiled the "freetype-2.3.11" in VC++ it gives the out put file
as *.dlb. But I want it as *.exe

2. I couldn't find any proper main function to start from there.

3. Is there any main function for test purpose? With the input file path and
character code and output as pixel data?

4. There are lots of APIs in the documentation. I am not getting idea, what
are all the APIs needed for simple true type font display.

Kindly advice.


Best regards,
Kumar.K


-----Original Message-----
From: mpsuzuki@... [mailto:mpsuzuki@...]
Sent: Thursday, November 12, 2009 3:29 PM
To: Kumar.K
Cc: wl@...; freetype-devel@...
Subject: Re: [ft-devel] Porting FT2

Hi,

The naming conventions of the files are:

When the version of freetype2 is L.M.N (in this case, L=2, M=3, N=11)

freetype-L.M.N.tar.gz tar+gzip archived source (for Unix, Mac OS
X)
freetype-L.M.N.tar.gz.sig checksum for tar+gzip source
freetype-L.M.N.tar.bz2 tar+bzip2 archived (for Unix, Mac OS X)
freetype-L.M.N.tar.bz2.sig checksum for tar+bzip2 source
ftLMN.zip zip archived source (for Win32)
ftLMN.zip.sig checksum for zip archived source

ft2demos-L.M.N.tar.gz tar+gzip archived demo program source
ft2demos-L.M.N.tar.gz.sig checksum for tar+gzip archived demo
ft2demos-L.M.N.tar.bz2 tar+bzip2 archived demo program source
ft2demos-L.M.N.tar.bz2.sig checksum for tar+bzip2 archived demo
ftdmoLMN.zip zip archived demo program source
ftdmoLMN.zip.sig checksum for zip archived demo program
source

freetype-doc-L.M.N.tar.gz tar+gzip archived document
freetype-doc-L.M.N.tar.gz.sig checksum for tar+gzip archived document
freetype-doc-L.M.N.tar.bz2 tar+bzip2 archived document
freetype-doc-L.M.N.tar.bzip2.sig checksum for tar+bzip2 archived
document
ftdocLMN.zip zip archived document
ftdocLMN.zip.sig checksum for zip archived document

I don't know the detail development environment, and
your favorite archiver, so I cannot tell you exact files.

If your development environment prefers the sources
terminated with Win32-like CR/LF, zip files might be better.

Regards,
mpsuzuki

On Thu, 12 Nov 2009 14:41:32 +0530
"Kumar.K" <kumar.k@...> wrote:

>Hi,
> I want the latest version and its documentation, demo and its
>related files I found these following links,
>
>http://savannah.inetbridge.net/freetype/
>
>http://sourceforge.net/projects/freetype/files/









On Thu, 12 Nov 2009 14:41:32 +0530
"Kumar.K" <kumar.k@...> wrote:

>Hi,
> I want the latest version and its documentation, demo and its
>related files I found these following links,
>
>http://savannah.inetbridge.net/freetype/
>
>http://sourceforge.net/projects/freetype/files/
>
>
>In the above page link there are lot of zip files and other format files.
>Can you give me the correct links?
>
>
>
>
>Best regards,
>Kumar.K
>
>-----Original Message-----
>From: Werner LEMBERG [mailto:wl@...]
>Sent: Thursday, November 12, 2009 12:57 AM
>To: kumar.k@...
>Cc: freetype-devel@...
>Subject: Re: [ft-devel] Porting FT2
>
>
>> I want to port FT 2 to my application.  We are working in analog
>> devices Blackfin processor, and using its IDE -VDK.  I want to use
>> only true type font for my project.  Can you tell where should I
>> start? Actually I am struggling .
>
>Please read the files INSTALL.ANY and CUSTOMIZE (in the `docs'
>subdirectory) and look up the mailing list archives of both freetype
>and freetype-devel since this is a rather popular question.
>
>
>    Werner
>
>
>
>
>_______________________________________________
>Freetype-devel mailing list
>Freetype-devel@...
>http://lists.nongnu.org/mailman/listinfo/freetype-devel




_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: Porting FT2

by Werner LEMBERG :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> Also as it said in, "II. Modules list" of CUSTOMIZE, I have commented
> manually every thing except
>
> "FT_USE_MODULE( FT_Driver_ClassRec, tt_driver_class )"

This doesn't suffice.  You need a graphics renderer too, either the
b/w rasterizer or the aliasing one.


> I want one main function, with in that function what are all
> should I call?  So I can give my file path name for getting pixel
> data?

There isn't a single function.  You have to initialize FreeType, load
a font, select a glyph, and finally finalize FreeType.  Please check
the `ftview' demo program, for example.


    Werner


_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: Porting FT2

by Werner LEMBERG :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> 1. I have compiled the "freetype-2.3.11" in VC++ it gives the out
> put file as *.dlb. But I want it as *.exe

???  FreeType is a *library*, not an executable!

> 2. I couldn't find any proper main function to start from there.

Of course not.  See my other reply.

> 3. Is there any main function for test purpose?  With the input file
> path and character code and output as pixel data?

In the ft2demos bundle you can find a bunch of test programs.  The
tutorial from www.freetype.org also provides some demo programs.

> 4. There are lots of APIs in the documentation. I am not getting
> idea, what are all the APIs needed for simple true type font
> display.

Uff.  You are joking, aren't you?  You are coming from India and you
want `simple' TTF display?  For complex scripts like Devanagari you
need a complete shaping engine, for example the ICU, Qt, or Pango
libraries.

What about reading the tutorial first?  This shows examples of simple
usage for non-complex scripts.


    Werner


_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel