[ft] First pretest of FreeType 2.1.10

2005-05-12 Thread Werner LEMBERG
Folks, I've uploaded a first pretest version of 2.1.10! This is mainly to test whether the library compiles on various platforms, and to check whether the library itself works correctly. There are still some rough edges with documentation files... You can download it from

Re: [ft] FT_Open_Face with negative face_index

2005-05-18 Thread Werner LEMBERG
The FreeType2 docs mention that, if the face_index parameter of FT_Open_Face is negative, '* face', which I'm assuming refers to the function's 'aface' parameter, Correct. This is a typo which I've just fixed in the CVS. will not be filled in. See:

Re: [ft] Pango-WARNING **: Cannot open font file

2005-05-24 Thread Werner LEMBERG
I built GTK+ 2.6.7 along with freetype 2.1.9 and Pango 1.8.1 on Debian Woody. But when I try to start gtk-demo, I get this error: (gtk-demo:26016): Pango-WARNING **: Cannot open font file for font Nimbus Sans L, 10 Segmentation fault It seems this has something to do with freetype, why

Re: [ft] Pango-WARNING **: Cannot open font file

2005-05-24 Thread Werner LEMBERG
Here the full output: (gtk-demo:9760): Pango-WARNING **: Cannot open font file for font Nimbus Sans L, 10 Program received signal SIGSEGV, Segmentation fault. 0x8c3bf706 in ?? () #0 0x8c3bf706 in ?? () #1 0x009d8d86 in _XftSetFace (f=0x9976a8, xsize=0, ysize=0, matrix=0x8115ad0)

Re: [ft] First pretest of FreeType 2.1.10

2005-06-01 Thread Werner LEMBERG
So the good news is that with the 2.1.9-style sigma, FT 2.1.10pre is much better than FT 2.1.9 for FT_Glyph_Stroke(), and no worse than FT 2.1.9 for FT_Glyph_StrokeBorder(). David wrote me that his sigma change tried to fix a peculiar case -- he no longer has the original data, unfortunately.

[ft] 2.1.10 ready

2005-06-09 Thread Werner LEMBERG
Folks, I've tagged 2.1.10 in the CVS, but I don't have quick internet access until Sunday evening for uploading, so there are no packages yet. Please stay patient! There is other good news: FreeType's new home is freetype.freedesktop.org and right now we are in the process of mapping

[ft] Announcing FreeType 2.1.10

2005-06-15 Thread Werner LEMBERG
FreeType 2.1.10 has been released. It is available from http://savannah.nongnu.org/download/freetype/ or http://sourceforge.net/project/showfiles.php?group_id=3157 The latter site also holds older versions of the FreeType library. See below for the relevant snippet from the CHANGES

Re: [ft] Rendering of Taiwan fonts

2005-07-03 Thread Werner LEMBERG
I am trying to use FreeType 2.1.10 to render Arabic, Taiwan fonts to bitmap. Unfortunatelly I do not know if it is possible to render text not per letter basis (render each letter separately that works fine) but as a whole (the result should be different than in the first case). Please, is

Re: [ft] FT_New_Memory_Face

2005-07-16 Thread Werner LEMBERG
I have a question regarding FT_New_Memory_Face(). I have converted my arial.ttf file to an array of unsigned bytes, and I have compiled and linked this array into my application. I then pass a pointer to the array to FT_New_Memory_Face(), however it returns a non-zero status. [...] Please

Re: [ft] Assertion fails when calling FT_Open_Face, caused by custom stream

2005-08-29 Thread Werner LEMBERG
It seems that Freetype zeroes out all structures it allocates, and silently assumes that the user of the library zeroes out all structures after allocation as well. This would be OK if it is documented, but it isn't. Now it is. Thanks for pointing this out. So, is my assumption correct,

Re: [ft] FreeType2 configuration

2005-09-02 Thread Werner LEMBERG
One more question: Do you know the approximate binary size of the library (for static compilation/linking) for my case of usage? (I'd like to know this just for comparison of my result) I've no idea, sorry. Werner ___ Freetype mailing list

Re: [ft] Intalling a font

2005-09-20 Thread Werner LEMBERG
Here's the situation. I am working on a webpage for my mother that uses a unique font. She has a True Type font built for it. I have the file. I'm leasing a server that has Free Type 2 installed on it. I'm guessing it's been intialized but I'm not sure. I seem to be bulloxing up the

Re: [ft] bottom-row first pixel order?

2005-09-20 Thread Werner LEMBERG
I tried getting freetype to render rows bottom to top using a transform of yy=-1. This worked for some scalable fonts/sizes, but it often results in just a few rows of filled pixels. Is freetype supposed to be able to handle a negative transform? Is there another preferrable way to flip

Re: [ft] Bottom row of pixels getting clipped

2005-09-20 Thread Werner LEMBERG
When displaying the MS-Windows symbol.ttf font, the last row is getting clipped for most font sizes smaller than 32 pixels. This can be seen with ftsrting, which only shows the missing char box. Hmm, I'm not sure what you mean. How do you call ftstring? Can you send a small image which

Re: [ft] Outline tags

2005-09-23 Thread Werner LEMBERG
Sorry for the late reply. Into the documentation (glyphs/index2.html), on the Outlines curves decomposition, I read on FT_Curve_Tag_On: Used when the point is on the curve, but if I load a char, for example an I with an Arial font (I'm sure that there is 4 segments and 8 points on the

Re: [ft] cache

2005-10-04 Thread Werner LEMBERG
Freetype has a big branch of cache functions, that described in part of manual, named Cache Sub-System. I doubt, if I don't say FTC_Manager_New, FTC_SBitCache_New etc., if I dont't work with freetype through FTC_Manager_LookupSize, FTC_SBitCache_Lookup etc., is nothing cashe using

Re: [ft] Simple CL Tool

2005-10-06 Thread Werner LEMBERG
Why not using the `ftstring' demo program, then capturing the image? Probably becuase it's way easier to just load a PNG file (or a BMP or a TIF or whatever) into an image viewer than it is to monkey around with a capturing images, etc. Well, it should be rather straightforward to add PNM

Re: [ft] Oversized O

2005-10-10 Thread Werner LEMBERG
When using Microsoft's Core Fonts with TFT RGB subpixel-rendering, I often get oversized Os - their height is bigger than the other characters in the same line. Here are some examples: ... http://www.hanno.de/kram/big-o.png FWIW, I'm seeing oversized O's as well with Verdana

Re: [ft] Oversized O

2005-10-10 Thread Werner LEMBERG
- first of all, the behaviour *only* happens when using the bytecode interpreter. this implies that: [...] - what's you're seeing is the result of the instructions located within the font file, this problem is also very similar to many oddities exposed by TrueType hinted

Re: [ft] How to determine font ascent

2005-10-12 Thread Werner LEMBERG
In order to correctly display glyphs I need to know somehow the baseline and the top baseline (don't know the correct term, the term ascent seems used for many things that aren't what I mean) of the font. For example, if you don't understand what I mean, fontforge displays these two

Re: [ft] How to determine font ascent

2005-10-12 Thread Werner LEMBERG
But the question is how we can accurately determine the baseline to baseline distance. In our environment we are not supporting computers but devices with small display. We would also like to allow users to load their own font files as well. Hence we can't afford silly space left in-between

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

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

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

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

2005-10-25 Thread Werner LEMBERG
Just I want to report that cross-compilation within Unix world works, at least. [...] Thanks a lot for testing! 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. We are

Re: [ft] How do I omit modules on compile?

2005-11-03 Thread Werner LEMBERG
On freetype-2.1.10, using RHEL4u2, I'm trying to limit the modules being included. According to docs/CUSTOMIZE, I can copy two header files (ftoption.h and ftmodule.h), edit ftmodule.h, and then change the include path. So my main question is, how are you supposed to modify the include

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

2005-11-04 Thread Werner LEMBERG
I could build FreeType2 CVS that is checked out 2005/10/25 as previous post. But, cross building of revisions after 2005/10/28 might fail. apinames is not enabled for cross building (I think it's my next task after MacOS issue. Thanks in advance for taking care of this particular problem!

Re: [ft] pfm file loading bug

2005-11-08 Thread Werner LEMBERG
There is a bug in FT 2.1.10 when it loads PFM file for type 1. In the function T1_Read_PFM, t1afm.c, it does not check for zero value in dfPairKernTable field of Extension table. Apparently, zero means no kerning table. It is zero in a number of fonts (e.g. Slogan Normal), but the function

Re: [ft] Poor font rendering with or without hinting

2005-11-10 Thread Werner LEMBERG
I am using Freetype 2.1.10 on Linux (have used previous versions as well with the same results) and I find that the fonts are rendered just terribly. [...] I don't use KDE so I can't help directly. Maybe you get better results if you install the current CVS version of FreeType which has

Re: [ft] Font Style

2005-11-10 Thread Werner LEMBERG
As per my study of freetype there is no information is available for style other than FT_FaceRec (style flag), which only tell, whether ttf support any style or not. You might try to directly get the `OS/2' table data, using FT_Load_Sfnt_Table. To get bold style for char I am trying

Re: [ft] otf autohint/nohint problem

2005-11-10 Thread Werner LEMBERG
I'm having problems with the appearance of an otf font. It appears very differently (principally in size) depending on if FT_LOAD_NO_AUTOHINT or FT_LOAD_FORCE_AUTOHINT. There is about a glaring (33%?) height difference. I've never heard of such a problem. I am using 2.1.10 on Windows.

Re: [ft] otf autohint/nohint problem

2005-11-11 Thread Werner LEMBERG
No, I haven't. The code used comes from http://freetype.sourceforge.net/freetype2/docs/reference/ft2-glyph_management.html#FT_Glyph_To_Bitmap which I assume is a reasonable example to use. OK. I'm not sure of the difference between the two codes. It appears to me that example1.c uses

Re: [ft] Bytecode enabled rendering

2005-11-16 Thread Werner LEMBERG
I am experiencing problems with aliasing-disabled rendering, and if you look at Kaya's screenshot (my system, and any other will probably do, shows just the same behaviour) http://kayalabs.com/images/tahoma.png you will see the difference in rendering Tahoma's 8 and v -- in freetype's

Re: [ft] Bytecode enabled rendering

2005-11-16 Thread Werner LEMBERG
I see your point. But what really makes this situation strange and unnatural is that Windows makes undocumented and unpredictable things which produce well-documented and predictable results, am I not right? You might look up the old emails. I've posted some images from a debugging session

Re: [ft] otf autohint/nohint problem

2005-11-20 Thread Werner LEMBERG
1. My understanding of hints is that they are needed when the font is small to help the appearance. Is there some threshold above which they can be ignored? Could this lead to performance improvements (because the hints can be trivially skipped or the module can avoid loading)? This is the

Re: [ft] otf autohint/nohint problem

2005-11-22 Thread Werner LEMBERG
I think that use of a font that needs a module that has been removed should result in an error code. Normally, it does. The exception is the hinter which isn't needed. Are you saying that pshinter is not needed to render the font? Yes. I think it is for the trade gothic font

Re: [ft] otf autohint/nohint problem

2005-11-22 Thread Werner LEMBERG
Suppose you ran a program like ftview to render the whole font to a bitmap with each hint option, at a large point size like 64. Would they be the same? This would have caught the bug/regression you fixed. Or maybe I should rephrase the question. This could be a test tool the calculates

Re: [ft] glyph name bug

2005-12-08 Thread Werner LEMBERG
freetype tells me (via FT_Get_Glyph_Name()), that glyph 47 is L, yet actually the L is in glyph 46, and character 47 is empty. It seems that all char names are shifted one position to the right. The font's `post' table is of version 1, which means glyphs have the standard Macintosh

Re: [ft] Creating an [OT]TF font from BDF font

2005-12-08 Thread Werner LEMBERG
Juliusz wrote fonttosfnt [...] [...] the plan was to use it to eliminate BDF/PCF fonts from the X distribution and ship only TTF files. That's been stalled for a couple of years as we need to preserve all of the mystic BDF properties, and be able to regenerate BDF fonts as needed (BDF being

Re: [ft] 'FT_GlyphSlot_Embolden' issues

2005-12-12 Thread Werner LEMBERG
i have compiled freetype2 on My LFS sustem. When i try to compile gtkboard, i get this error. -- /usr//lib/libcairo.so: undefined reference to `FT_GlyphSlot_Embolden' --- after which the compile exits with error. Which FT version? FT_GlyphSlot_Embolden has been introduced in 2.1.3

Re: [ft] 'FT_GlyphSlot_Embolden' issues

2005-12-12 Thread Werner LEMBERG
Thanks for the tip Werner.. i checked out the rules.mk file and the line for ftsynth.c was missing. i recompiled freetype (the version i'd been having is 2.1.10) and installed it. gtkboard compilatin has succeeded and i have installed that also. But one more query.. what about other

Re: [ft] Artwiz font: creating new encoding problems.

2006-01-08 Thread Werner LEMBERG
Some of you know Artwiz fonts. These are small, non-scalable fonts looking like a machine print. The sources can be found here : http://artwizaleczapka.sourceforge.net/. I like them a lot, but they had no polish special characters, so I've downloaded sources and I've created a polish .bdf

Re: [ft] Compilation problem with visual studio 2003

2006-01-08 Thread Werner LEMBERG
src\base\ftutil.c(404): error C2491: 'ft_highpow2' : definition of dllimport function not allowed Fixed in CVS, thanks for the report. You have to replace `FT_BASE' with `FT_BASE_DEF'. Werner ___ Freetype mailing list Freetype@nongnu.org

Re: [ft] Howto compile Freetype on cygwin shared

2006-01-10 Thread Werner LEMBERG
I am new to this list and not sure about of everything I do is correct. I have a simple question: I want to compile freetype on cygwin in a way, I get shared objects. Which FreeType version? We use libtool, and recent versions should work for cygwin too, AFAIK. But since I am using an old

Re: [ft] Howto compile Freetype on cygwin shared

2006-01-12 Thread Werner LEMBERG
I didnt't find binaries there for cygwin, so I tried to compile them myself and there I fail: I can just build the static libraries but not the shared ones. I use configure - make. Hmm, this should actually work. Please send the file `builds/unix/config.log' (compressed) to the list for

Re: [ft] Compilation problem with freetype

2006-01-14 Thread Werner LEMBERG
I'm trying to compile freetype 2.1.10 with visual studio 2003 and using the supplied solution file. [...] This is already fixed in the current CVS, I believe. Please test. Werner ___ Freetype mailing list Freetype@nongnu.org

Re: [Fwd: Re: [ft] Howto compile Freetype on cygwin sh...]

2006-01-18 Thread Werner LEMBERG
Just thought to tell you, that I do not appreciate comments like that I'm also not glad about such automatic answers but it is common practice today. Werner ___ Freetype mailing list Freetype@nongnu.org

Re: [ft] Creating an [OT]TF font from BDF font

2006-01-18 Thread Werner LEMBERG
I also recall discussions which discovered that the .otb extension was otherwise unused in most of the world. It doesn't matter at all to me; I ask FreeType to try and open the font, completely ignoring the extension has proven a valuable property, although it does sometimes challenge the

Re: [ft] FT_GlyphSlot_Embolden() undefined under Windows

2006-02-04 Thread Werner LEMBERG
I need to embolden a glyph before rendering it to bitmap, so I employed FT_GlyphSlot_Embolden(). All works fine under Linux, however when trying to compile code on Windows, Visual C++ reported undefined external symbol _FT_GlyphSlot_Embolden. I compiled FreeType from the CVS and

Re: [ft] PNG text display error

2006-02-14 Thread Werner LEMBERG
I'm having trouble with the server configuration, the following image http://www.sagets.net/vtt/booba/IMG/cache-texte/66156744085a577a85886bd6c49549a2.png should display the word BIENVENUE, some letter are ok, but it's not readable Never seen such a problem before. Maybe a buggy font?

Re: [ft] Rendering Windows .fon files

2006-03-20 Thread Werner LEMBERG
I am successfully rendering .ttf fonts but when I try a .fon font I get junk--just looks like random pixels being set or scrambled versions of the characters maybe. You haven't told us the most important information: Which FreeType version? const int dpi = 96; const int point = 10;

Re: [ft] ft2 compile problem with GNU make

2006-03-29 Thread Werner LEMBERG
I know the reson ,because Win XP SP2 doesn't have type.exe or copy.exe, so make report can't createprocess. Interesting. Those commands are built-ins from cmd.exe, right? How can I identify Win XP? Is there an environment variable `OS'? What value does it have? just replace type to

Re: [ft] Type 1 PFM read problem.

2006-03-31 Thread Werner LEMBERG
Perhaps we should allow both `0x' and `0x0100' as the starting bytes and wait until users complain. I got a report privately that MS Windows accepts values in the range 0x-0x03FF for the first two bytes (found out by try-and-error). Werner

Re: [ft] ft2.2 win32 intel c++ patch

2006-04-03 Thread Werner LEMBERG
and first in makefile, icl use /Fe to get execute-files and /Fo to get object files. Applied, thanks. Werner ___ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype

Re: [ft] Building freetype-2.1.10 on Cygwin

2006-04-20 Thread Werner LEMBERG
I got the CVS tips with 'cvs export -f -D 2006-04-18'. First, I had to chmod configure, then the following output appeared. Is there something I am doing incorrectly? [...] cd builds/unix; ./configure /bin/sh: ./configure: No such file or directory make: *** [setup] Error 127 What

Re: [ft] Spacing/Kerning wrong on an OpenType (otf) font

2006-04-25 Thread Werner LEMBERG
I'm trying to render an OpenType font we have purchased, Helvetica Neue LT Pro 77 Bold Condensed, and the spacing isn't coming out right. If you look at the spacing between the T and o in Tour it almost looks like Freetype is not performing any kerning. I was hoping somebody could point me

Re: [ft] Problems mit symbol font Wingdings 3

2006-04-26 Thread Werner LEMBERG
My problem is: When the arrow is rendered for the first time in the program, a wrong glyph is displayed. All following renerings are ok. Do you have an idea how this can happening? No. Sample code, please -- a minimal example if possible, together with all input parameters. Werner

Re: [ft] In freetype how can one set font size in pt, but keep resolution independent?

2006-05-17 Thread Werner LEMBERG
Got a question regarding how does one set font in pt's in freetype, but keep resolution independent. This doesn't work. I read through a bunch of the freetype API documentation, the tutorials, the glyph conventions, but still am unsure how to set a fontsize (that is a long) and make the

[ft] Italian mirror working up to date again

2006-05-17 Thread Werner LEMBERG
The Italian mirror at http://freetype.fis.uniroma2.it/index2.html is again up to date. Werner ___ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype

Re: [ft] Building freetype-2.1.10 on Cygwin

2006-05-17 Thread Werner LEMBERG
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries How can I tell which symbols are undefined? Is there a log file of some kind somewhere? We had to comment out the use of a proper symbol list for backwards compatibility. I think that the

Re: [ft] Vertical Font, X Bearing

2006-05-26 Thread Werner LEMBERG
slot-bitmap_left 302 slot-bitmap_top 114 slot-advance.x 0 slot-advance.y 3200 Please tell me why I am getting +ve X bearing for vertical font with angle zero. With `+ve' you mean `positive', right? Where is the problem? The advance.y value is measured from top to bottom. Werner

Re: [ft] Opentype kerning pairs

2006-05-26 Thread Werner LEMBERG
Hi - I'd like to extract kerning pair information from an opentype font. FT_HAS_KERNING returns false. Note that you should use FreeType 2.2.1 because in some older versions FT_HAS_KERNING works incorrectly. I assume, from reading around, this is because freetype doesn't support the

Re: [ft] pango freetype installation problems

2006-05-31 Thread Werner LEMBERG
!!! Important issue about freetype 2.2.1 on freebsd 4 series i've tried to make pango 1.5.0 (latest) This isn't the latest pango version. To use FreeType 2.2.1 you should use 1.10.1 or newer. i've tried to install freetype 2.2.1 (latest) but it complains about sysntax error in

Re: [ft] FTJam build problem (Win32/MinGW)

2006-06-04 Thread Werner LEMBERG
Hi David, thanks for the suggestion - I hadn't realised there was a later version of ftjam. Based on Brian's tip, I added #define FT2_BUILD_LIBRARY to ft2build.h and ftjam then built ok. Why it wasn't picking up the DEFINES statement in the Jamfile I'm not quite sure. I'll try FTJam 2.5.1

Re: [ft] What do kerning values mean in RTL text?

2006-06-09 Thread Werner LEMBERG
Questions: - Do kerning pairs in RTL refer to two sequential glyphs in logical order or visual order? At least for TrueType and Type 1 fonts, it only refers to visual order. OpenType features in GSUB and GPOS tables are always processed in logical order. Werner

Re: [ft] TTF render like windows

2006-06-11 Thread Werner LEMBERG
I'm trying to make the freetype to render TTF fonts in exactly the same manner as Windows does. I mean without antialiasing. Anyway I get the following picture [...] http://www.em64t.net/temp/verdana_render.png See the difference with 2 and 6 charachters. This is a known issue. We now

Re: [ft] Displacement

2006-06-16 Thread Werner LEMBERG
After some experiments, I have some new founding. [...] PLEASE provide a *complete* C source code example which I can easily compile and debug! I simply don't have enough time to write such test code by myself. Werner ___ Freetype mailing

Re: [ft] compilinig ftdemos on windows

2006-06-16 Thread Werner LEMBERG
I've made a VS2003 project that can build ft2demo on my WinXP box. if you like it, I can e-mail it to you :-) Why not put it on Freetype's wiki page? I hope to integrate it soon into the ft2demos CVS. (BTW. Why not mention wiki on main freetype.org page?) Good question. First, I

Re: [ft] ftstrpnm for FreeType 2 or simple Python bindings? :)

2006-06-17 Thread Werner LEMBERG
I need to do some rasterization checks on several thousand fonts and I need something that is fast and does not have an overhead of an entire graphic subsystem. In case you want to use FreeType's TT rasterizer please note that it currently doesn't produce identical results to the Windows

Re: [ft] ftstrpnm for FreeType 2 or simple Python bindings? :)

2006-06-17 Thread Werner LEMBERG
About Python bindings for FreeType: Do you want to help me to do it? Do you want that I end it and sell you with an OpenSource license (that can permit to publish the library like an open source project)? In case this comes to a positive end we would be glad to add a corresponding CVS

Re: [ft] I have a question

2006-06-28 Thread Werner LEMBERG
I have a question, how can I get the details of GSUB table of a font file? Well, the general handling of GSUB is beyond FreeType; use a higher-level library like Pango, Qt, or ICU. The only thing FreeType is able to do by itself is validation of the OpenType tables: If you build the library

Re: [ft] Questions about ClearType rendering

2006-06-29 Thread Werner LEMBERG
Now, investigating this issue further confirmed that especially with subpixel rendering enabled FreeType seems to generate less pleasing rasterizations (mainly because of excessive coloring) what's even more interesting was the fact that when I disabled antialiasing on both systems Windows

Re: [ft] Rendering text centered vertically

2006-07-02 Thread Werner LEMBERG
I've gotten to a point where i have no problems rendering text on a chosen baseline. I think i have a good understanding of how freetype2 works. I can't seem to get my head around how i could render text centered in a bounding box. The standard formula to get the vertical distance y of the

Re: [ft] how to compile the shared lib with mingw ?

2006-07-03 Thread Werner LEMBERG
when I use the patch for cygwin, I get these errors when the shared lib is created : Cannot export FT_GetFile_From_Mac_ATS_Name: symbol not defined Cannot export FT_GetFile_From_Mac_Name: symbol not defined Cannot export FT_New_Face_From_FOND: symbol not defined Cannot export

Re: [ft] Bitmap fonts

2006-07-03 Thread Werner LEMBERG
So, when i load a bdf bitmap font (non-scaleable), where do i get the character width, advance, line-spacing, etc? FT_Bitmap_Size. I'll add a pointer to the docs. But that doesn't have per-character metrics such as the width of a character. Correct, but values in FT_FaceRec are

Re: [ft] Bitmap fonts

2006-07-03 Thread Werner LEMBERG
I'm still confused. FT_GlyphSlot and FT_Size are in the scaleable outlines part of FT_FaceRec, but a bitmap font is not a scaleable outline. Aah, sorry, the docs are unclear. `glyph', `size', and `charmap' are for general use. I've improved the documentation in the CVS. Werner

Re: [ft] FreeType compilation under Borland C++ Builder 5

2006-07-13 Thread Werner LEMBERG
i have a problem with compilation FreeType for Borland C++ Builder platform (version 5). [...] after few second i get below message .\objs\apinames.exe -oobjs/freetype.def -dfreetype.dll -wB ./include/freetype/fr eetype.h [...] process_begin:

Re: [ft] Auto-hint license in The FreeType 2 FAQ

2006-07-28 Thread Werner LEMBERG
I think the The FreeType 2 FAQ needs some attention: http://freetype.sourceforge.net/freetype2/docs/ft2faq.html#autohint Indeed. I've completely updated it. Please check. Werner ___ Freetype mailing list Freetype@nongnu.org

Re: [ft] detecting font format from ft_face

2006-07-29 Thread Werner LEMBERG
I am updating my MuPDF PDF viewer to use freetype 2.2 and I have hit a snag. Because of the way PDF treats encodings, I need to know the format of a loaded font face. [...] How do I achieve the same results without using the internal header files? Try FT_Get_X11_Font_Format(). Can you

Re: [ft] Ascii Space

2006-07-31 Thread Werner LEMBERG
However, if the character is a space (ascii 32), then FT_Glyph_To_Bitmap() fails with error=6 invalid argument. Is that normal? Even though there is no visible glyph, shouldn't it give an all-zeros bitmap of the correct width? Please provide a self-contained, complete example which I can

Re: [ft] About using FT_Open_Face with std::ifstream

2006-07-31 Thread Werner LEMBERG
I would like to create a face by calling FT_OpenFace with std::istream, but error 2 returns. Here are my codes. [...] Please write a complete, self-contained (small) example file which I can compile for testing. Werner ___ Freetype mailing

Re: [ft] converting font units to pixels problem solved

2006-08-26 Thread Werner LEMBERG
My question now is, How come some fonts seem to disobey the bounding box and go outside of it. '{', '}', '[', ']' especially seem to go off the bottom of it quite a bit. Example code, please (which compiles standalone on non-Windows platforms too), probably with a font which is very

Re: [ft] Outline Tags

2006-08-31 Thread Werner LEMBERG
If I understand the documentation correctly, the possible values in the array outline-tags are FT_Curve_Tag_On, FT_Curve_Tag_Conic or FT_Curve_Tag_Cubic. ORed by FT_CURVE_TAG_TOUCH_X and FT_CURVE_TAG_TOUCH_Y. Use the macro FT_CURVE_TAG to filter them out. I've fixed that in the

Re: [ft] Problems with Glyph rendering

2006-09-01 Thread Werner LEMBERG
I receive an error of 10 from FT_Glyph_To_Bitmap within the code below. The fterrdef.h says it has to do with array allocation. It worked with freetype-2.1.7-2.4 (debian package version). What did I do wrong? Problem occurs with freetype-2.1.7-5 (again debian package) The error occurs

Re: [ft] Problems with Glyph rendering

2006-09-04 Thread Werner LEMBERG
Please provide a complete, compilable program which I can use for debugging. Sorry it took me so long to get together a (kinda) minimal example. Danke. Ich werde es bald anschauen. It is in the attachment (together with the Font in question.) Der Font ist zu groß für die Email-Liste --

Re: [ft] Vertical Font, X Bearing

2006-09-07 Thread Werner LEMBERG
Please tell me why I am getting positive X bearing for vertical font with angle zero. Vertical advance values are measured from top to bottom. A positive value thus means to move down. Werner ___ Freetype mailing list Freetype@nongnu.org

Re: [ft] Question about font size

2006-09-09 Thread Werner LEMBERG
I am using freetype to load fonts and read vectorize them with FT_Outline_Decompose. I want to have exact controll over how many pixels the characters are in height. The FT_Vector I get during decomposing I am dividing by face-size-metrics.height and storing as a float. I was expecting

Re: [ft] Question about font size

2006-09-10 Thread Werner LEMBERG
I would expect to get a character size around 1.0. For 'j' I get 0.485149 :( float h=face-size-metrics.height; It seems that you haven't read the documentation about `height': height :: The height is the vertical distance between two

Re: [ft] FT_New_Face

2006-09-17 Thread Werner LEMBERG
[...] on Win32, when the filename is known to be UTF-8, it can be converted to UTF-16, and _wfopen() can be called instead of fopen(). That works. (I've tested it on XP with text files, but not with fonts.) It might be good for FT_New_Face to support that method on Win32, if it doesn't

Re: [ft] Memory leak in ftstring demo program

2006-09-26 Thread Werner LEMBERG
I have used freetype 2.1.10 and ft2demos2.1.10 . In that I have used the ftstring demo program . But in that program there is a memory leak Do you get the same if you use the current CVS? Werner ___ Freetype mailing list

Re: [ft] libXft patch to use the built-in FreeType LCD color filtering

2006-09-29 Thread Werner LEMBERG
I'd appreciate if Werner could store it somewhere on the FreeType server (since I still don't have access to it due to really weird things going on at the freedesktop.org hosting machine) Done. Werner ___ Freetype mailing list

Re: [ft] new LCD rendering patches

2006-10-01 Thread Werner LEMBERG
Here are two more patches to support LCD rendering patches with the current FreeType CVS: Added to the hosts. BTW, have you seen the PFR bug report on Savannah which I've assigned to you? Werner ___ Freetype mailing list Freetype@nongnu.org

Re: [ft] bold problem with some fonts

2006-10-01 Thread Werner LEMBERG
Now I have a question about problem in bold rendering with some font, for example VLGothic font (http://dicey.org/vlgothic/). See example in http://d.ma-aya.to/images/20060925_0.png . 1st and 3rd line is non-bold font, 2nd and 4th are bold. 0 font in 2nd line should be bold one, but

Re: [ft] bold problem with some fonts

2006-10-04 Thread Werner LEMBERG
Now I have a question about problem in bold rendering with some font, for example VLGothic font (http://dicey.org/vlgothic/). Attached is a font file which contains just the zero glyph of this font. Werner zero.ttf Description: Binary data

Re: [ft] How to add a new Cmap?

2006-10-06 Thread Werner LEMBERG
I try to load a CID Keyed Font with FreeType, and i want to add a another file, with CMap data. How can i do this? Unfortunately, FreeType doesn't have support for CMap files (yet). Werner ___ Freetype mailing list Freetype@nongnu.org

Re: [ft] Bad emulation of boldness.

2006-10-10 Thread Werner LEMBERG
The problem might be that the glyph drawing backend calls a convenient function provided by freetype to embolden the glyphs, which lacks parameters to control how embolden is done. Is it considered a bug? No. Embolding with fixed values is always problematic. Recent FreeType version

Re: [ft] Bad emulation of boldness.

2006-10-10 Thread Werner LEMBERG
I suggest to use FontForge to do what you want. This can be controlled with scripts also. FontForge seems to ignore the hints in the font. I assume that you've built FontForge with a version of FreeType which has the TTF bytecode interpreter enabled, haven't you? Otherwise it should be

Re: [ft] bold problem with some fonts

2006-10-10 Thread Werner LEMBERG
The outer most contour has only off-line points and is thus ignored when trying to identify the orientation of the glyph. This change was introduced here: http://lists.gnu.org/archive/html/freetype-devel/2006-03/msg00027.html Shall I reopen the issue in

Re: [ft] libXft patch to use the built-in FreeType LCD color filtering

2006-10-10 Thread Werner LEMBERG
here's a patch to libXft-2.1.7 that modifies the library to use the new built-in FreeType LCD color filtering features. I apologize for what might sound like a trivial question, but do these changes have anything to do with the kind of postprocessing filtering for LCD monitors which we've

Re: [ft] updated LCD filtering patch

2006-10-24 Thread Werner LEMBERG
just to let you know there is a new LCD-filtering patch for Cairo 1.2.4 at: http://www.mail-archive.com/freetype@nongnu.org/msg00981.html This is the wrong URL... Try this instead: http://david.freetype.org/lcd/cairo-1.2.4-lcd-filter-1.patch This is now installed on the rogue patches

  1   2   3   4   5   6   7   8   9   10   >