Re: [ft] Monochrome Bitmap Trouble

2005-10-24 Thread Werner LEMBERG

I am still puzzling with bitmap. Please tell me is it possible to
 get a fixed size characters or can we specify the fixed inter
 character space rather using kerning.

I don't understand the question.  If the font is a mono-spaced font,
you'll get mono-spaced output.  Note that many CJK fonts don't have
this flag set because those fonts are bicameral, containing
mono-spaced single-width and mono-spaced double-width glyphs at the
same time.

Please give a more detailed example of what you want to do.

 Also I am not able to get Japanese character from MsMincho font. How
 we can use FT_Select_Charmap(face,FT_ENCODING_SJIS).

You have to check whether MsMincho contains an SJIS charmap at all.
There are high chances that only a Unicode charmap is available.  In
that case you have to translate your SJIS input to Unicode (e.g., by
using iconv or something like that).


Werner


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


Re: RE: Re: [ft] Monochrome Bitmap Trouble

2005-10-24 Thread Chia-I Wu
Hi,

On Mon, Oct 24, 2005 at 07:08:32AM +, Paresh Deshmukh wrote:
 Hello,
I am still puzzling with bitmap. Please tell me is it possible to get a 
 fixed
 size characters or can we specify the fixed inter character space rather using
You can always use fixed inter-character space if you want to, in your
application.  This is not related to freetype.
 kerning. Also I am not able to get Japanese character from MsMincho font. How 
 we
 can use FT_Select_Charmap(face,FT_ENCODING_SJIS).
MSMINCHO.TTC seems not have a cmap of encoding FT_ENCODING_SJIS.

-- 
Regards,
olv


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


[ft] Error when trying to use Freetype library

2005-10-24 Thread Fredrik Karlbom
Hello,
I'm not sure that this is the proper place to ask but I do it anyway as 
I desparately need some help. I'm trying to compile and test Freetype 
on a embedded system, an ARM-processor running ThreadX but my problem 
is on the compile-stage. My dev-box is running a cygwin-based shell and 
after some problems I succeded (with the help of this great story 
http://www.gamedev.net/community/forums/topic.asp?topic_id=277879 ) 
compiling freetype2 by first making a file named 'lib' in the freetype-
dir containing:


#!/bin/sh
builds/unix/libtool --mode=finish $@


After making that one I call 'sh configure' and compile with 'make'. 
This gives me a nice libfreetype in my objs/.libs/ directory.

After that I follow this tutorial 
http://freetype.sourceforge.net/freetype2/docs/tutorial/step1.html and 
include the following in my code:


#include ft2build.h
#include FT_FREETYPE_H

...

FT_Library  library;
FT_Error error;

...

error = FT_Init_FreeType( library );
if ( error )
{
  ...
}


I also change the neccisary changes in the makefile and the resulting 
call to gcc is (I sorted out some other includes to other libs that I 
have succeded to include before adding freetype):


/usr/bin/arm-elf-gcc -o 
image.elf ./objs/appconf_api.o ./objs/root.o-mbig-endian -
nostartfiles \
 -
T ../../../../src/bsp/platforms/CPM4_R01/image.ld ../../../../lib/arm9/3
2b/gnu/bsp/CPM4_R01/reset.o ../../../../lib/arm9/32b/gnu/bsp/CPM4_R01/me
mcpy.o ../../../../lib/32b/gnu/crt0.o \
 -Wl,--start-group ../../../freetype/objs/.libs/libfreetype.a -
L ../../../../lib/32b/gnu -lc -lgcc -lm -lstdc++  -Wl,--end-group \
 -Wl,-Map,image.map


This returns the following error:


./objs/root.o(.text+0x14c): In function `applicationStart':
/src/apps/testfont/32b/../root.c:199: undefined reference to 
`FT_Init_FreeType' make: *** [image.elf] Error 1


It looks like I havn't succeeded to include freetype properly, but the 
path is right. It might also be some error with the #include 
FT_FREETYPE_H not resulting in including the right files. I would 
appreciate some help if anyone has any suggestions.

 
 


 
 



___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


[ft] Error when trying to link Freetype library

2005-10-24 Thread Fredrik Karlbom
Hello,
I'm not sure that this is the proper place to ask but I do it anyway as 
I desparately need some help. I'm trying to compile and test Freetype 
on a embedded system, an ARM-processor running ThreadX but my problem 
is on the compile-stage. My dev-box is running a cygwin-based shell and 
after some problems I succeded (with the help of this great story 
http://www.gamedev.net/community/forums/topic.asp?topic_id=277879 ) 
compiling freetype2 by first making a file named 'lib' in the freetype-
dir containing:
 
 
#!/bin/sh
builds/unix/libtool --mode=finish $@
 
 
After making that one I call 'sh configure' and compile with 'make'. 
This gives me a nice libfreetype in my objs/.libs/ directory.
 
After that I follow this tutorial 
http://freetype.sourceforge.net/freetype2/docs/tutorial/step1.html and 
include the following in my code:
 
 
#include ft2build.h
#include FT_FREETYPE_H
 
...
 
FT_Library  library;
FT_Error error;
 
...
 
error = FT_Init_FreeType( library );
if ( error )
{
  ...
}
 
 
I also change the necessary changes in the makefile and the resulting 
call to gcc is (I cut out some other includes to other libs that I have 
succeded to include before adding freetype):
 
/usr/bin/arm-elf-gcc -o 
image.elf ./objs/appconf_api.o ./objs/root.o-mbig-endian -
nostartfiles \
 -
T ../../../../src/bsp/platforms/CPM4_R01/image.ld ../../../../lib/arm9/3
2b/gnu/bsp/CPM4_R01/reset.o ../../../../lib/arm9/32b/gnu/bsp/CPM4_R01/me
mcpy.o ../../../../lib/32b/gnu/crt0.o \
 -Wl,--start-group ../../../freetype/objs/.libs/libfreetype.a -
L ../../../../lib/32b/gnu -lc -lgcc -lm -lstdc++  -Wl,--end-group \
 -Wl,-Map,image.map
 
 
This returns the following error:
 
 
./objs/root.o(.text+0x14c): In function `applicationStart':
/src/apps/testfont/32b/../root.c:199: undefined reference to 
`FT_Init_FreeType' make: *** [image.elf] Error 1
 
 
It looks like I havn't succeeded to include freetype properly, but the 
path should be correct. It might also be some error with the #include 
FT_FREETYPE_H not resulting in including the right files. I would 
appreciate some help if anyone has any suggestions.


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


[ft] Error when trying to link Freetype library

2005-10-24 Thread Fredrik Carlbom
Hello,
I'm not sure that this is the proper place to ask but I do it anyway
as I desparately need some help. I'm trying to compile and test
Freetype on a embedded system, an ARM-processor running ThreadX but my
problem is on the compile-stage. My dev-box is running a cygwin-based
shell and after some problems I succeded (with the help of this great
story http://www.gamedev.net/community/forums/topic.asp?topic_id=277879
) compiling freetype2 by first making a file named 'lib' in the
freetype-dir containing:


#!/bin/sh
builds/unix/libtool --mode=finish $@


After making that one I call 'sh configure' and compile with 'make'.
This gives me a nice libfreetype in my objs/.libs/ directory.

After that I follow this tutorial
http://freetype.sourceforge.net/freetype2/docs/tutorial/step1.html and
include the following in my code:


#include ft2build.h
#include FT_FREETYPE_H

...

FT_Library  library;
FT_Error error;

...

error = FT_Init_FreeType( library );
if ( error )
{
  ...
}


I also change the necessary changes in the makefile and the resulting
call to gcc is (I cut out some other includes to other libs that I
have succeded to include before adding freetype):

/usr/bin/arm-elf-gcc -o image.elf ./objs/appconf_api.o ./objs/root.o  
 -mbig-endian -nostartfiles \
-T ../../../../src/bsp/platforms/CPM4_R01/image.ld
../../../../lib/arm9/32b/gnu/bsp/CPM4_R01/reset.o
../../../../lib/arm9/32b/gnu/bsp/CPM4_R01/memcpy.o
../../../../lib/32b/gnu/crt0.o \
-Wl,--start-group ../../../freetype/objs/.libs/libfreetype.a -L
../../../../lib/32b/gnu -lc -lgcc -lm -lstdc++  -Wl,--end-group \
 -Wl,-Map,image.map


This returns the following error:


./objs/root.o(.text+0x14c): In function `applicationStart':
/src/apps/testfont/32b/../root.c:199: undefined reference to
`FT_Init_FreeType' make: *** [image.elf] Error 1


It looks like I havn't succeeded to include freetype properly, but the
path should be correct. It might also be some error with the #include
FT_FREETYPE_H not resulting in including the right files. I would
appreciate some help if anyone has any suggestions.


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


[ft] Error when trying to use Freetype library

2005-10-24 Thread Fredrik Karlbom
Hello,
I'm not sure that this is the proper place to ask but I do it anyway as 
I desparately need some help. I'm trying to compile and test Freetype 
on a embedded system, an ARM-processor running ThreadX but my problem 
is on the compile-stage. My dev-box is running a cygwin-based shell and 
after some problems I succeded (with the help of this great story 
http://www.gamedev.net/community/forums/topic.asp?topic_id=277879 ) 
compiling freetype2 by first making a file named 'lib' in the freetype-
dir containing:


#!/bin/sh
builds/unix/libtool --mode=finish $@


After making that one I call 'sh configure' and compile with 'make'. 
This gives me a nice libfreetype in my objs/.libs/ directory.

After that I follow this tutorial 
http://freetype.sourceforge.net/freetype2/docs/tutorial/step1.html and 
include the following in my code:


#include ft2build.h
#include FT_FREETYPE_H

...

FT_Library  library;
FT_Error error;

...

error = FT_Init_FreeType( library );
if ( error )
{
  ...
}


I also change the neccisary changes in the makefile and the resulting 
call to gcc is (I sorted out some other includes to other libs that I 
have succeded to include before adding freetype):


/usr/bin/arm-elf-gcc -o  
image.elf ./objs/appconf_api.o ./objs/root.o-mbig-e
ndian -nostartfiles \
 -
T ../../../../src/bsp/platforms/CPM4_R01/image.ld ../../../../lib/arm9/3
2b/gnu/bsp/CPM4_R01/reset.o ../../../../lib/arm9/32b/gnu/bsp/CPM4_R01/me
mcpy.o ../../../../lib/32b/gnu/crt0.o \
 -Wl,--start-group ../../../freetype/objs/.libs/libfreetype.a -
L ../../../../lib/32b/gnu -lc -lgcc -lm -lstdc++  -Wl,--end-group \
 -Wl,-Map,image.map


This returns the following error:


./objs/root.o(.text+0x14c): In function `applicationStart':
/src/apps/testfont/32b/../root.c:199: undefined reference to 
`FT_Init_FreeType' make: *** [image.elf] Error 1


It looks like I havn't succeeded to include freetype properly, but the 
path is right. It might also be some error with the #include 
FT_FREETYPE_H not resulting in including the right files. I would 
appreciate some help if anyone has any suggestions.


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


Re: [ft] Still no luck not including modules

2005-10-24 Thread Werner LEMBERG

  The make program reads the `rules.mk' and `mudule.mk' files using
  wildcards.  This means that you have to rename or remove all `.mk'
  files in the various subdirectories you don't want to compile.
 
 And it looks like the Jamfiles are the same way?

Jamfiles are only used if you build FreeType with Jam.  `make' ignores
them.


Werner


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


Re: [ft] Still no luck not including modules

2005-10-24 Thread Hisashi T Fujinaka

On Mon, 24 Oct 2005, Werner LEMBERG wrote:




The make program reads the `rules.mk' and `mudule.mk' files using
wildcards.  This means that you have to rename or remove all `.mk'
files in the various subdirectories you don't want to compile.


And it looks like the Jamfiles are the same way?


Jamfiles are only used if you build FreeType with Jam.  `make' ignores
them.


I was aware of that. I was just wondering if there were differences in
the level of support given to make vs. Jam.

--
Hisashi T Fujinaka - [EMAIL PROTECTED]
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


Re: [ft] Still no luck not including modules

2005-10-24 Thread Werner LEMBERG
  Jamfiles are only used if you build FreeType with Jam.  `make'
  ignores them.
 
 I was aware of that. I was just wondering if there were differences
 in the level of support given to make vs. Jam.

On Unix, for shared libraries with libtool, you need GNU make.


Werner


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


Re: [ft] Error when trying to use Freetype library

2005-10-24 Thread mpsuzuki
Hi,

Just I want to report that cross-compilation within
Unix world works, at least.

I've tried to cross-compilation of FreeType2 (latest
version checked-out from CVS) on Linux/x86, for Linux/ARM.

$ env CC=arm-cats-linuxelf-gcc \
./configure --host=i386-pc-linux-gnu
$ make

is enough. I've grepped cpp outputs and they didn't
include any header files for Linux/x86.

# arm-cats-linuxelf is my toolkit targetted to
#   http://www.simtec.co.uk/products/EB110ATX/

However, configure (generated by autoconf-2.59) complains as:

configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.

I think, current autoconf expects new configuration style

$ ./configure \
--build=i386-pc-linux-gnu \
--host=arm-cats-linux-elf

But it doesn't work well with current builds/unix/unix-cc.in.
Before writing patch about this issue, I have to study about
proper cross-compilation setting by autoconf.

And, yet I've not tried on cross-compilation between Linux
and Cygwin etc.

Regards,
mpsuzuki



On Mon, 24 Oct 2005 23:29:00 +0200
Fredrik Carlbom [EMAIL PROTECTED] wrote:

On 10/24/05, Werner LEMBERG [EMAIL PROTECTED] wrote:
Have you tried the CVS version of libtool, together with CVS version
of autoconf?  Cygwin DLL support is still under development and/or
broken partially, I think.

Similarly, I'm not sure whether cross-compilation of FreeType works at
all.  Any reports (and bugfixes if necessary) are highly welcome.


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype