Werner LEMBERG | 29 Jan 17:30 2015
Picon

Re: [ft] Connecting freetype to lpcexpressso(for ARM LPC1769)


[*Always* reply to the list!]

> FreeType libraries are now readily available to my compiler.  But,
> when i am building my program, it show errors like "undefined
> reference to `FT_New_Face'".

This means that you don't link to the FreeType library.

> If i needed to add any other files to my include folder....?

I have no idea how your IDE works.  Your question sounds very
elementary, so I suggest to look up the IDE manual how linking must be
done.

    Werner
Soorej G.Kamal | 28 Jan 15:45 2015
Picon

[ft] Connecting freetype to lpcexpressso(for ARM LPC1769)

Dear Sir,
I am doing my academic project related on Font file.so i want to read font file(mainly .ttf file) using LPCExpresso.I want extract glyph outline information for displaying corresponding font to a VGA monitor. So please give me some threads to read a .ttf file.
With Regards
Soorej G Kamal
_______________________________________________
Freetype mailing list
Freetype <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype
Miguel Santos | 25 Jan 13:36 2015
Picon

[ft] Include problems

Hi,

I have compiled(win32) the freetype librabry, but when I include FT_FREETYPE_H after ft2build.h it gives me errors at "fterrdef.h".

The errors at the following:

fterrdef.h(35): error C2143: syntax error : missing '}' before '('
fterrdef.h(35): error C2143: syntax error : missing ';' before '<L_TYPE_raw>'
fterrdef.h(35): error C2059: syntax error : '<L_TYPE_raw>'
fterrors.h(164): error C2143: syntax error : missing ';' before '}'
fterrors.h(177): error C2059: syntax error : '}'
fterrors.h(177): error C2143: syntax error : missing ';' before '}'
freetype.h(38): error C2143: syntax error : missing ';' before '{'
freetype.h(38): error C2447: '{' : missing function header (old-style formal list?)

How can I fix this?
_______________________________________________
Freetype mailing list
Freetype <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype
Diederick Huijbers | 19 Jan 15:41 2015
Picon

[ft] Calculating the height of the rectangle when selecting text while using Freetype

Hi,

I'm using Freetype + Harfbuzz to create a text input field for an OpenGL application and 
I'm trying to figure out what metrics I should use to calculate the height of the rectangle
you see when you select text in a text input field.

For clarity, I'm trying to calculate the height of the blue rectangle underneath the text
in this screenshot: 


From the docs I would think it's the ascender and descender I need to use as they 
give me max displacement above and below the baseline. Though, when I use these
I'm getting a height which is not correct.  To debug this I drew the descender and ascender
(from face->ascender and face->descender) in my OpenGL application as you can see
in this image: 

Red: ascender
Blue: baseline
Green: descender


Because the values of the ascender and descender don't seem to be correct
(or at least not what I would expect) I'm wondering what I'm doing wrong and if I
should use other metrics?

Thanks
roxlu


_______________________________________________
Freetype mailing list
Freetype <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype
Adam Dunsmoor | 16 Jan 23:57 2015

[ft] Installation Problems

Hello, I have installed freetype2.5.5, but fontconfig's latest git repository will not find it. I get the following error:

 

./configure: line 14023: syntax error near unexpected toke 'FREETYPE,'

./configure: line 14023: 'PKG_CHECK_MODULES (FREETYPE, freetype2)'

 

Could you advise me in what to do? I could change its configure file to point to freetype, but I don't know which configure file to edit. Thanks.

 

EleMech, Inc.

2275 White Oak Circle

Aurora, IL 60504

Phone: 630.499.7080 X19

Fax: 630-499-7760

 

The information transmitted in this email is intended for the person or entity to which it is addressed, and may contain confidential and/or privileged material. Any review, retransmission or other use of, or taking any action in reliance upon this information by persons or entities other than the intended recipient is strictly prohibited. If you receive this email in error, please contact the sender and delete material from any system.

 

_______________________________________________
Freetype mailing list
Freetype <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype
Daniel Nice | 13 Jan 20:16 2015

[ft] FreeType v2501 under DJGPP with RHIDE

Hi,

I am trying to run the demo FTSTRING.C with FreeType 2501 under DJGPP using RHIDE.

My primary goal is to be able to step through FreeType at source level (using RHIDE) so that I can translate the anti-aliasing rasterizer to another language.

Therefore, I do NOT desire to build the FreeType library in the normal fashion since this would not allow me to step through it.

I figured the easiest way would be a "flat install" suggested in the INSTALL.ANY file.
So, my directory structure is:
\DJGPP\FT2
\DJGPP\FT2\INCLUDE
\DJGPP\FT2\FREETYPE
\DJGPP\FT2\INTERNAL
\DJGPP\FT2\INTERNAL\SERVICES
\DJGPP\FT2\CONFIG

I installed the demo files into \DJGPP\FT2 as well.

I'm not very familiar with the use of DJGPP or RHIDE.  As I said, my goal is to translate this into another language.
I set my include path in RHIDE to \DJGPP\FT2\INCLUDE
I tried opening \DJGPP\FT2\ftstring.c  and running -- this resulted in many unresolved function references.

So, I tried opening each source file mentioned in INSTALL.ANY.
RHIDE now gives many errors, but most of them seem to be on lines like "#include FT_INTERNAL_OBJECTS_H"
"ft2/ftpic.c(21) Error: 10: error: #include expects "FILENAME" or <FILENAME>"

I assume this means that the macro FT_INTERNAL_OBJECTS_H was not defined, but I do not understand why.
Does anyone have a project file for RHIDE/DJGPP and FreeType v2.501 which they could send to me?

Thanks in advance,
-Daniel Nice
_______________________________________________
Freetype mailing list
Freetype <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype
Werner LEMBERG | 8 Jan 09:43 2015
Picon

[ft] Announcing ttfautohint 1.3


ttfautohint 1.3 has been released.

The source tarball, statically-linked binaries for Win32 (TTY and GUI) and
OS X (TTY only) are available from

    http://savannah.nongnu.org/download/freetype/

or

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

Instructions to build the GUI version on OS X can be found at

    http://freetype.org/ttfautohint/osx.html

Enjoy!

   Werner

PS: Downloads from savannah.nongnu.org will redirect to your nearest
    mirror site.  Files on mirrors may be subject to a replication
    delay of up to 24 hours.  In case of problems use
    http://download-mirror.savannah.gnu.org/releases/

----------------------------------------------------------------------

http://freetype.org/ttfautohint

This project provides a library that takes a TrueType font as the input,
remove its bytecode instructions (if any), and return a new font where all
glyphs are bytecode hinted using the information given by FreeType's
autohinting module.  The idea is to provide the excellent quality of the
autohinter on platforms that don't use FreeType.

The library has a single API function, `TTF_autohint'; see
`lib/ttfautohint.h' for a detailed description.  Note that the library
itself won't get installed currently.

A command-line interface to the library is the `ttfautohint' program; after
compilation and installation, say

  ttfautohint --help

for usage information, or say

  man ttfautohint

to read its manual page.

A GUI to the library is `ttfautohintGUI'; it uses the Qt4 framework.  The
compilation of this application can be disabled with the `--without-qt'
configuration option.

----------------------------------------------------------------------

Version 1.3 (2015-Jan-06)
-------------------------

* Keywords in control instruction files can be more verbose to increase
  readability.  You can now use `left`, `right`, `nodir`, `point`, `touch`,
  `xshift`, and `yshift` for `l`, `r`, `n`, `p`, `t, `x`, and `y`,
  respectively.

* A new control instruction keyword `touch` was added to apply delta
  instructions before the final IUP bytecode commands, also `touching' the
  affected points (to use the TrueType instructions terminology).  Such
  deltas *do* work even with ClearType if applied to the non-ClearType
  direction.

* Support for the Telugu script.

* The amount of information about ttfautohint and its parameters that gets
  added to the `name` table by default has been reduced.  A new option
  `--detailed-info` restores the previous behaviour.

* ttfautohintGUI crashed if not used with a control instruction file.

* ttfautohintGUI now correctly switches to a horizontal two-column layout if
  the standard one-column layout would exceed the screen height.

* A new option `--family-suffix` makes it possible to append a suffix to a
  font's family name in the `name` table.  This can be useful during the
  development process: It helps the operating system to simultaneously
  display several instances of a font that are processed with different
  ttfautohint parameters.

* The new library option `info-post-callback` helps in processing data from
  the `name` table.
Werner LEMBERG | 30 Dec 23:14 2014
Picon

[ft] Announcing FreeType 2.5.5


FreeType 2.5.5 has been released.

It is available from

    http://savannah.nongnu.org/download/freetype/

or

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

The latter site also holds older versions of the FreeType library.

See below for  the relevant snippet  from the  CHANGES file; all users
should upgrade.

Enjoy!

   Werner

PS: Downloads from  savannah.nongnu.org  will redirect to your nearest
    mirror site.   Files on  mirrors may  be subject to  a replication
    delay   of   up   to   24   hours.   In   case   of  problems  use
    http://download-mirror.savannah.gnu.org/releases/

----------------------------------------------------------------------

http://www.freetype.org

FreeType 2  is a software  font engine that  is designed to  be small,
efficient,  highly   customizable,  and  portable   while  capable  of
producing high-quality output (glyph images) of most vector and bitmap
font formats.

Note that  FreeType 2 is  a font service  and doesn't provide  APIs to
perform higher-level features, like text layout or graphics processing
(e.g.,  colored  text  rendering,  `hollowing',  etc.).   However,  it
greatly simplifies these tasks by providing a simple, easy to use, and
uniform interface to access the content of font files.

FreeType  2  is  released  under  two open-source  licenses:  our  own
BSD-like FreeType  License and the  GPL.  It can  thus be used  by any
kind of projects, be they proprietary or not.

----------------------------------------------------------------------

CHANGES BETWEEN 2.5.4 and 2.5.5

  I. IMPORTANT BUG FIXES

    - Handling of  uncompressed PCF files works again (bug  introduced
      in version 2.5.4).
Dan Stromberg | 24 Dec 02:59 2014
Picon

[ft] Building freetype with emscripten for use in a browser?

I'm hoping to build the latest freetype with the latest emscripten to
obtain a javascript version of freetype.

I can build freetype pretty easily if I use cmake+make, but apparently
building with cmake doesn't provide a freetype-config script, and I
probably need a freetype-config to build SDL_ttf.  I really just want
freetype so I can use SDL_ttf.

freetype's build system seems to want --host and --build, but they
seem to need to be GNU config.guess system types.  I don't think
emscripten works that way, despite trying a system description
recommended on an emscripten mailing list.

The emscripten doc suggests using emconfigure ./configure to pass the
relevant environment variables to configure to make a cross compile
for javascript work. But freetype's doc seems to say you should not
try to pass custom env vars to freetype's build system.

Is this irreconcilable?

Thanks.
Dave Coventry | 22 Dec 10:35 2014
Picon

[ft] Included header files location

I'm trying to use the Freetype headers.

I've run the freetype-config script with the --cflags option to
retrieve the appropriate compilation flags.

$ freetype-config --cflags
-I/usr/include/freetype2

My cpp file invokes the headers:

#include <freetype2/ft2build.h>

but the 'make' fails:

$ make
g++     main.cpp  -lglut -lGLEW -lGL -o main
In file included from text.h:8:0,
                 from main.cpp:8:
/usr/include/freetype2/ft2build.h:37:29: fatal error:
config/ftheader.h: No such file or directory
 #include <config/ftheader.h>
                             ^
compilation terminated.
make: *** [main] Error 1

Clearly it's not looking in /usr/include/freetype2/ for the 'config' directory.

I've tried softlinking the 'config' directory so that the compiler can
find it in the /usr/include directory, but a) this is porobably not
best practice and b) I get another error.

$ ln -s /usr/include/freetype2/config/ /usr/include/config
$ make
g++     main.cpp  -lglut -lGLEW -lGL -o main
In file included from main.cpp:8:0:
text.h:9:23: fatal error: freetype.h: No such file or directory
 #include FT_FREETYPE_H
                       ^
compilation terminated.
make: *** [main] Error 1

Is there anything else I could try?

Cheers,

Dave

PS, my Makefile is as follows:

INCLUDE=-I/usr/include/freetype2  -I/usr/include/freetype2/confg
CC=g++
LDLIBS=-lglut -lGLEW -lGL
all: main
clean:
rm -f *.o main
.PHONY: all clean
Werner LEMBERG | 13 Dec 06:59 2014
Picon

[ft] tutorial updated


I've just finished an update of the FreeType tutorial.  Enjoy!

  http://freetype.org/freetype2/docs/tutorial/index.html

In case you find errors, badly discussed concepts, etc., or would like
to have certain topics covered, please write to the list.

    Werner

Gmane