Re: [ft-devel] Type 1C font that is not rendered correctly

2008-07-27 Thread Werner LEMBERG
This font is buggy. I assume that you've taken it out of a PDF file, and Acroread is displaying it fine, right? Right, Sigh. I really wonder whether I shall break the specification just to support this particular font... Can you send me the PDF (or a link to it) with this font? can

Re: [ft-devel] Type 1C font that is not rendered correctly

2008-07-29 Thread Werner LEMBERG
Sigh. I really wonder whether I shall break the specification just to support this particular font... Well, i'd say it all boils down to how much the breakage implies in terms of work to fix it and if it can break correct fonts and how difficult it'll be to maintain in the future. This

Re: [ft-devel] FreeType 2.3.7 and Visual Studio

2008-07-30 Thread Werner LEMBERG
Nowadays we have upgraded to v2.3.7. Unfortunately now the Visual Studio project in Win32\visualc folder is Visual Studio 2005 format, however it is not mentioned in the changelog. Could you still support VS2002, please? (As far as I know 2005 still reads the 2002 format projects after a

Re: [ft-devel] freetype question

2008-08-03 Thread Werner LEMBERG
Can you help me on how to use the freetype cache sub-system, beacause I have never find a tutorial that demonstrate an example The `ftview' demo program uses the cache subsystem. Just look at the code. There isn't a tutorial yet available. Volunteers welcomed. Werner

Re: [ft-devel] FreeType font that can not be loaded

2008-08-03 Thread Werner LEMBERG
Continuing with my fonts that come in PDF and can not be opened series i'm attaching a TTF file that FreeType can not load. FontForge seems to get it right. The font is bad. The table header claims there are 9 tables when there are only 8. The binsearch header (for the tables) is

Re: [ft-devel] Compiling ft2demos 2.3.7 on OSX 10.5.4

2008-08-04 Thread Werner LEMBERG
I'm getting errors like: Undefined symbols: _HomeResFile, referenced from: _FT_New_Face_From_FOND in libfreetype.a (ftbase.o) Which library am I missing? Sounds like you are not linking against CoreServices.framework. Adding -framework CoreServices to the linker flags

Re: [ft-devel] Regression Crash between freetype 2.3.5 and 2.3.7

2008-08-17 Thread Werner LEMBERG
The attached font crashes when trying to load it. Neither 2.3.7 nor the current CVS does crash for me. I tested with both ftview and ftstring; valgrind doesn't report an error either. Werner ___ Freetype-devel mailing list

Re: [ft-devel] Regression Crash between freetype 2.3.5 and 2.3.7

2008-08-17 Thread Werner LEMBERG
`Floating point exception' probably indicates a compiler bug. Please try with -O0. With -O0 it does not crash, so what now? What does valgrind say if you compile with -O2? Maybe something isn't properly initialized in FreeType. Do I close the poppler bug and tell the user to go to bug

Re: [ft-devel] building freetype on z/OS

2008-09-04 Thread Werner LEMBERG
I'm trying to build freetype 2.1.7 on z/OS through USS (Unix System Services). This is an ooold version. Please try 2.3.7. For the most part it's building but I run into an error with zconf.h. Since it includes unistd.h it has the declaration of getopt which conflicts with stdio.h. If

Re: [ft-devel] freetype bug

2008-09-05 Thread Werner LEMBERG
Thanks for taking time to read my mail and I write to you for help about the Freetype library. Please write plain text emails; it's far easier to read and answer for me than reading HTML-formatted emails. Your email is both plain text and HTML, but the plain text part is badly formatted.

[ft-devel] Re: Some character can not be render.

2008-09-11 Thread Werner LEMBERG
Yes, your right. The PDF software is acrobat. This is the software which displays the glyph, right? Hopefully, it wasn't an Adobe software which actually created the PDF... I'll ask someone from Adobe how they handle such situations. Werner

Re: [ft-devel] freetype on the iPhone mentioned

2008-09-12 Thread Werner LEMBERG
If you scroll down far enough in the Settings General About Legal section on an iPhone, you'll see a reference to the FreeType license. In my opinion, everyone who has contributed to FreeType should be very proud of the excellent work they've done. We are :-) However, it's really

Re: [ft-devel] A CFF in an SFNT can have only a single font

2008-09-18 Thread Werner LEMBERG
(1) A CFF wrapped in an SFNT must not contain subfonts. The term `subfont' is misleading, sorry. I don't mean subfonts as used in CID-keyed CFFs (which are allowed) but rather multiple fonts given in a CFF `FontSet' (as outlined in the CFF specification). Werner

Re: [ft-devel] building freetype on z/OS

2008-09-18 Thread Werner LEMBERG
Antoine, thanks for your analysis (and I hope you are well -- in the last time I seldom hear from you on this list). In fact, the current version of zlib have an even more elaborated setup: #if HAVE_UNISTD_H # include sys/types.h /* for off_t */ # include unistd.h/* for SEEK_* and

Re: [ft-devel] plan to support sfnt-wrapped CID-keyed font

2008-09-18 Thread Werner LEMBERG
I revised my experimental patch to load sfnt-wrapped CID and sfnt-wrapped Type1 font by FreeType2. Nice! + * src/base/ftobjs.c (Mac_Read_sfnt_Resource): Add support for + sfnt-wrapped Type1 and sfnt-wrapped CID-keyed font. + (Mac_Lookup_PS_in_sfnt): New function to lookup 'CID

Re: [ft-devel] building freetype on z/OS

2008-09-19 Thread Werner LEMBERG
Following is a patch to check off_t from sys/types.h and unistd.h, and reflect autoconf result in zconf.h. [...] Again, thanks a lot for your work. Everything looks fine, so please go ahead. Werner ___ Freetype-devel mailing list

[ft-devel] Re: Some character can not be render.

2008-09-22 Thread Werner LEMBERG
There is a character whose index is 4173. It’s a character “假”. But the freetype cannot load it. This is fixed now in the CVS, please test. BTW, I got no answer from Adobe how invalid CFF opcodes are handled in acroread, so I've done the simplest, namely, to ignore `callothersubr' (and

[ft-devel] Re: About the size of font.

2008-09-24 Thread Werner LEMBERG
Is there any different between Freetype and GDI? If the font size is 10, it seems some different between GDI and Freetype. Which point size? Which dpi value? Which font? Aliasing? Anti-Aliasing? TrueType font? Small images for comparison, please. Werner

Re: [ft-devel] freetype on the iPhone mentioned

2008-09-25 Thread Werner LEMBERG
With Freetype being GPL (x)or modified BSD licensed*, doesn't this mean that either: - under GPL license, the complete Freetype dependent software should be GPL Yep. - under BSD license, none of the other software may be GPL? I think so, yes. Does this mean that *if* Freetype is

Re: [ft-devel] Broken FT_Face data can cause the infinite loop in FT_Done_Library()

2008-09-30 Thread Werner LEMBERG
while ( faces-head ) FT_Done_Face( FT_FACE( faces-head-data ) ); But I wonder if there's any case that the first trial cannot free the font data but the second (or later) trial can free it. Good question. Currently, I can't imagine such a situation. David, do you remember

Re: [ft-devel] proposal to introduce ftbase.h in src/base directory

2008-09-30 Thread Werner LEMBERG
I want to introduce new header file in src/base/ftbase.h, to declare the private functions shared by the files in src/base directory. I want to hear the comments from FreeType2 developers. Please go ahead! I was near to do this by myself after seeing that ftmac.c duplicates some functions.

Re: [ft-devel] issues found when porting to FreeType 2.3.7

2008-10-01 Thread Werner LEMBERG
The word 'synthetize' doesn't exist and should be corrected to 'synthesize' in two places in ftoption.h. Fixed, thanks. 2. The function open_face in ftobjs.c crashes if 'face' is not created. The fix is to test for 'face' being non-null in the error-handling section. I fixed it on a

Re: [ft-devel] Regression Crash between freetype 2.3.5 and 2.3.7

2008-10-02 Thread Werner LEMBERG
Still crashes. See attached for details. Try to undefine FTC_INLINE in src/cache/ftcmru.h. Does this help? Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: [ft-devel] warnings in FreeType 2.3.7

2008-10-02 Thread Werner LEMBERG
I found these warnings when compiling FreeType 2.3.7 using Microsoft Visual C++ 6.0: s:\src\freetype-2.3.7\src\truetype\ttgload.c(408) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data s:\src\freetype-2.3.7\src\truetype\ttgload.c(443) : warning C4244:

Re: [ft-devel] Regression Crash between freetype 2.3.5 and 2.3.7

2008-10-02 Thread Werner LEMBERG
Try to undefine FTC_INLINE in src/cache/ftcmru.h. Does this help? The good news? That works for -O2 (And -O2 -g). No crash, no Valgrind errors. The bad news? It still crashes for -O3 (And -O3 -g). I've attached a new Valgrind log, but it looks to be virtually identical to the last

[ft-devel] Re: Throw SFNT_Err_Table_Missing and catch FT_Err_Table_Missing?

2008-10-04 Thread Werner LEMBERG
The error is catched by FT_Open_Face(), but my patch compares it with FT_Err_XXX (not SFNT_Err_XXX). Same macro should be used between the thrower and the catcher? Use the FT_ERROR_BASE macro to convert a module error into a base error. BTW, I suggest to define a TTAG_TYP1 macro (and

Re: [ft-devel] I would like to submit an issue of FT_Glyph_To_Bitmap() function - In my case of use, this function returns -1 error code while the expected error code is 0

2008-10-08 Thread Werner LEMBERG
When i try to use FT_Glyph_To_Bitmap() function, at most of cases, it works correctly (satisfy to FreeType spec). But in a special case, it works incorrectly. It returns inconsistence error code. Please find the attached file to get the details of my explanation about this issue. In this

[ft-devel] Re: Implicit conversion between FT_UInt* and FT_UInt32* in ttcmap.c

2008-10-08 Thread Werner LEMBERG
The legacy metrowerks C compiler finds several implicit type conversions between FT_UInt* and FT_UInt32* in src/sfnt/ttcmap.c. Attached is a patch to fix them. Please apply. See this recent bug report also: https://savannah.nongnu.org/bugs/index.php?24468 Werner

Re: [ft-devel] Re: meddlesome compiler warns against for( ...; ...;...) ;

2008-10-11 Thread Werner LEMBERG
Yes, probably, which means we've just a formatting `error'. George? Er, the point of the loop is to test if coords is the same as blend-normalizedcoords. If the two arrays are the same then nothing has changed. I've reformatted it. Thanks to all. Werner

Re: [ft-devel] discrepancy in underline offset

2008-10-12 Thread Werner LEMBERG
More than a year ago Graham wrote: root-underline_position = (FT_Short)(face-postscript.underlinePosition - (face-postscript.underlineThickness / 2)); Somehow this old email escaped my attention. I've now applied this fix to the sources so that the implementation follows the

Re: [ft-devel] Very very old CodeWarrior C compiler cannot parse directory-structured include files

2008-10-13 Thread Werner LEMBERG
Am i the only one who wonders why a 14 year old compiler is even relevant today? It tests the 16bit support of FreeType (this is, the `int' data type has 16bit only), which is of some importance still today in the embedded market. About a week ago I got a bug report regarding this issue.

Re: [ft-devel] discrepancy in underline offset

2008-10-15 Thread Werner LEMBERG
Did you put some variant of my original explanatory comment in? I only added a link to the OpenType specs. /* Adjust underline position from top edge to centre of stroke to convert TrueType meaning to FreeType meaning. */ I've added this now. Werner

Re: [ft-devel] missing 'const' on tt_post_default_names causes problems with writable static data

2008-10-15 Thread Werner LEMBERG
static const FT_String* tt_post_default_names[258] = - static const FT_String* const tt_post_default_names[258] = Applied, thanks. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

[ft-devel] a highly recommended article on memory optimization

2008-11-02 Thread Werner LEMBERG
Folks, while this is not directly related to FreeType, I just want to mention this great document written by Ulrich Drepper, the maintainer of glibc. It gives marvellous examples how to optimize memory access. It's specific to GNU/Linux, however, some of the ideas are quite universal.

Re: [ft-devel] freetype2 question

2008-11-05 Thread Werner LEMBERG
FT_Set_Char_Size FTC_ImageCache_LookupScaler You can't use these 2 functions together. If you use FTC_ImageCache_LookupScaler, then the Freetype cache API will handle setting the size on the font. It does this with the scaler parameter you pass to FTC_ImageCache_LookupScaler. So

Re: [ft-devel] missing out-of-memory check when creating family name for TrueType fonts

2008-11-07 Thread Werner LEMBERG
The correct fix would be for tt_face_get_name and similar functions to return an error code as well as the face pointer. I've implemented this in the CVS. Please test. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] autogen.sh

2008-11-08 Thread Werner LEMBERG
I think you want to call aclocal _after_ libtoolize in autogen.sh. (I'd also add AC_CONFIG_MACRO_DIR([m4]) to builds/unix/configure.raw with associated -I m4 to aclocal) Sorry for the late reply, Can you provide a fix? Werner ___

[ft-devel] Updates for OpenType 1.5

2008-11-09 Thread Werner LEMBERG
Folks, I've updated the FreeType CVS for OpenType 1.5; in particular, I've added a bunch of script specific TT_URC_* macros in ttnameid.h -- please check this. It is easily possible that I've introduced some typos. Werner ___ Freetype-devel

Re: [ft-devel] ft_setjmp in Codewarrior

2008-11-27 Thread Werner LEMBERG
So, the implicit cast issue is not exceptional error in CW for MacOS/ColdFire. Thus, I want to insert CW-specific pragma as following. [...] It's ugly, but I can live with that since it's the only location which needs this special kind of attention. Werner

Re: [ft-devel] ft_setjmp in Codewarrior

2008-11-28 Thread Werner LEMBERG
It's ugly, but I can live with that since it's the only location which needs this special kind of attention. Umm. I must agree - as a workaround for 1 problematic line, the 7 + 3 line insertion is too much. Can I replace the insertion by some C preprocessor macro (and expand it by

Re: [ft-devel] How to collect the side-by-side lists of source object files from FreeType2 building system?

2008-11-29 Thread Werner LEMBERG
Thus, in next, I want to automate the maintenance of MPW makefiles. If I have a list of the pairs of the source and object file for single build, it's easy to make MPW makefile updated automatically, by common Unix environment. This is a *great* idea! * $(BASE_SRC_S) and $(BASE_OBJ_S), *

Re: [ft-devel] [PATCH] [type1] Ensure mm_axis_unmap() always returns an FT_Fixed

2008-11-29 Thread Werner LEMBERG
This time compile tested, not just Obviously Correct™. :-) Applied. Thanks again! Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: [ft-devel] Atari/PureC port status

2008-11-29 Thread Werner LEMBERG
Anyway, current FREETYPE.PRJ is useful as a skelton. I could build FreeType2 by new FREETYPE.PRJ attached to this message. Please update if you think it's ready. Thanks for your efforts! Also I attached the warning messages by PureC - in it, too many warnings are issued for gxvalid

Re: [ft-devel] Atari/PureC port status

2008-11-30 Thread Werner LEMBERG
Oh, great thank you for spending 2 hours, I couldn't expect other maintainers are interested in this issue. Actually, the reported problems can still be an issue for embedded systems which still use 16bit processors. Please assign me further cleaning for legacy compiler :-) Please recompile

Re: [ft-devel] Atari/PureC port status

2008-11-30 Thread Werner LEMBERG
Please assign me further cleaning for legacy compiler :-) Please recompile the current CVS with the PureC compiler and send the log again. OK, here it is. Thanks. This shows that I haven't introduced new issues. I won't fix other warnings right now (I have to take care of other packages

Re: [ft-devel] Strange behavior of freetype 2.3.7 function FT_OpenType_Validate()

2008-12-01 Thread Werner LEMBERG
For example, it returned error==0 and valid table pointer values when we asked it to validate all advanced tables in FreeMono.ttf font (flag == FT_VALIDATE_OT). Now if we asked it to validate GDEF table, it returned error==0x10 (invalid glyph index). This looked strange to us. This should

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-04 Thread Werner LEMBERG
. This is probably fixed already in the CVS: 2008-11-05 Werner Lemberg [EMAIL PROTECTED] * devel/ftoption.h, include/freetype/config/ftoption.h [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Undefine TT_CONFIG_OPTION_UNPATENTED_HINTING. This fixes the return value

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-04 Thread Werner LEMBERG
FreeType can't normally 'emit warning messages' because it is a library, not an app - it's up to the caller how to deal with errors. A new, well documented, error code that the caller can choose to ignore is the way to go, in my opinion. Sounds good. However, which function should return

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-04 Thread Werner LEMBERG
I'm not sure if unpatented hinting solves the broken shape of MingLiU completely. I guess it's better than nothing but not fully, and the introduction of the trick of conditional hinting cannot close MingLiU issue. Mhmm, *theoretically* it should be sufficient. Why do you think it isn't?

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-04 Thread Werner LEMBERG
How is it possible to decide from the font it is unusable with FT_LOAD_NO_HINTING? Unfortunately, it isn't. We have a hard-coded list of `tricky' fonts for this purpose. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-04 Thread Werner LEMBERG
Do those tricky fonts' gasp tables suggest not to use hinting even though they look bad without it? Good question. One old font which I have, mingli.ttf, doesn't have a gasp table at all. Or they look bad when a programmer asks to turn the hinting off ignoring the gasp table suggestion?

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-04 Thread Werner LEMBERG
So anyone who use freetype or libraries that use freetype (like cairo) will have to be make awared of this problem. I'm not sure how practical this will be. Graham's suggestion of introducing a flag in FT_Face sounds good. And I'm still seeing PDF files using those fonts often. Without

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-04 Thread Werner LEMBERG
I feel it is not right to allow such a low-level API as freetype to override programmer request for the hinting type unless we have FT_LOAD_NO_HINTING FT_LOAD_NO_HINTING_AND_I_REALLY_MEAN_THAT Hmm. This would be a change in the API which I won't implement. But see Graham's suggestion. The

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-05 Thread Werner LEMBERG
So anyone who use freetype or libraries that use freetype (like cairo) will have to be make awared of this problem. I'm not sure how practical this will be. Graham's suggestion of introducing a flag in FT_Face sounds good. If I understand his sugguestion correctly, the user always has

Re: [ft-devel] CFF + Light == Blank

2008-12-05 Thread Werner LEMBERG
With current cvs I get no-ink rendering of cff fonts when using the light autofitter. Type1 and glyf fonts work correctly. Fixed in the CVS. Thanks for the report. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-05 Thread Werner LEMBERG
FT_LOAD_NO_HINTING now has a implication: I will do some auto fixing with the hinting when neccessary unless your also prevent me with NO_AUTOHINT. ? I fear I don't understand. Please explain what you mean. Werner ___ Freetype-devel

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-06 Thread Werner LEMBERG
. Add `FT_FACE_FLAG_TRICKY'. If set, the font is tricky. To access it, add a macro `FT_IS_TRICKY'. [This is a read-only flag.] . Change the meaning of `FT_LOAD_NO_HINTING' so that fonts which always need TrueType instructions (these are fonts which have FT_FACE_FLAG_TRICKY

Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H

2008-12-07 Thread Werner LEMBERG
The only problem was that I diidnt link against the lib. I had to tell the gcc -I/usr/include/freetype2 and -lfreetype -lz now its working! ;) You should use `freetype-config --cflags' and `freetype-config --libs' for that. Werner

Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H

2008-12-07 Thread Werner LEMBERG
I got the paths with `freetype-config --cflags' and `freetype-config --libs' Then I added them to my Eclipse Project options. Is this the wrong way to do? How is the correct one? It is the correct way; I only mean that you shouldn't add the values manually but use code like this within your

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-07 Thread Werner LEMBERG
What happens (with or w/o the proposed change) for tricky fonts when ft is compiled with -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER? The patented hinting is forced then. What about the cases where autofitting or light autofitting is requested and the font is tricky? Do the instructions get

Re: [ft-devel] Force PMingLiU like font do HINTING

2008-12-11 Thread Werner LEMBERG
. Add `FT_FACE_FLAG_TRICKY'. If set, the font is tricky. To access it, add a macro `FT_IS_TRICKY'. [This is a read-only flag.] . Change the meaning of `FT_LOAD_NO_HINTING' so that fonts which always need TrueType instructions (these are fonts which have

[ft-devel] Re: table_info service and ftpatent module

2008-12-11 Thread Werner LEMBERG
Dear Turner, Sorry for the late reply, and I'm only Werner, not David :-) During the checking for Atari port, I find a strange call of table_info service in ftpatent module. [...] Definitely a bug. Yet I've not checked whether ftpatent works correctly (and if so, why it can works), but

Re: [ft-devel] Accessing FSType (Type 1 or CID)?

2008-12-11 Thread Werner LEMBERG
If I understand correctly, a field needs adding to PS_FontInfoRec (which is part of the public interface; presumably this is OK) and FSType processed just like other fields, simply by defining in t1tokens.h. Yes, I think this should work without breaking backwards binary compatibility of the

Re: [ft-devel] Strange behavior of freetype2 function FT_Outline_Decompose()

2008-12-16 Thread Werner LEMBERG
1) FT_Outline_Decompose() does not walk through all the Outline contour-points one-by-one and call the emitters. By printing out the to_points passed to the emitters by FT_Outline_Decompose(), we noticed that there are gaps. The decomposition begins with a consecutive sequence followed

[ft-devel] Re: About the Advance value.

2008-12-16 Thread Werner LEMBERG
In the FtViewer, after the function “FTC_ImageCache_LookupScaler” was call, I can get the two value: dXAdvance = (glyph-advance.x) 16; dYAdvance = (glyph-advance.y) 16; And what I want to know is how to get the values without calling the function “FTC_ImageCache_LookupScaler”. Look

Re: [ft-devel] porting the freetype to symbian S60 3Rd

2008-12-16 Thread Werner LEMBERG
First, It is a great open source projectJ I am Hong Li, from china. Actually I have already ported freetype to symbian but I saw memory leak in your code. you use malloc and free which don't work well on symbian. I use the hook Logger tool to confirm that there is memory leak..

Re: [ft-devel] A possible fix for potential memory leak in FT_GlyphSlot_Own_Bitmap and some other questions about FT_GlyphSlot_Embolden()

2008-12-17 Thread Werner LEMBERG
In freetype 2.3.7, FT_GlyphSlot_Own_Bitmap does not release the old bitmap resource. Then I give a possible patch for it. I don't think this patch is correct. If you run `ftview' (which uses this function if you press key `2') with valgrind, you can see that all allocated memory is properly

[ft-devel] Something we should be proud of

2008-12-19 Thread Werner LEMBERG
Read this http://www.palamida.com/blogs/25-hot-open-source-projects-organizations-should-be-using-today This makes a happy day :-) Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] Implementation Error of FreeType function FT_Get_PFR_Metrics()

2008-12-21 Thread Werner LEMBERG
1) If we make a call to FT_Get_PFR_Metrics() function with a non-pfr font (FreeMono.ttf for example) and any of the parameters ametrics_y_scale, ametrics_resolution, ametrics_x_scale or aoutline_resolution being NULL, a segmentation fault will happen. The spec specified that any or all of

[ft-devel] Re: Some public APIs using FT_Int/FT_UInt should be improved in future

2008-12-24 Thread Werner LEMBERG
Just I've finished the outline to clear implicit cast warnings on LP32 and LP64 platforms by AtariST/PureC and Mac OS X/gcc for ppc64. Great! Thanks a lot. And your observations below show that it wasn't wasted time. A) Some 32bit (or more, in future extension?) flags are interchanged

[ft-devel] Re: Some public APIs using FT_Int/FT_UInt should be improved in future

2008-12-24 Thread Werner LEMBERG
typedef struct FTC_BasicAttrRec_ { FTC_ScalerRec scaler; FT_UIntload_flags; } FTC_BasicAttrRec, *FTC_BasicAttrs; ... FT_EXPORT_DEF( FT_Error ) FTC_SBitCache_LookupScaler( FTC_SBitCache cache, FTC_Scaler scaler,

Re: [ft-devel] Question related to freetype 2.3.7 function FT_OpenType_Validate()

2008-12-25 Thread Werner LEMBERG
When a valid (ie not NULL) pointer to an OpenType table is returned after a call to FT_OpenType_Validate(), are the fields of this table initialized? Yes, the requested table is loaded as-is. As a sanity check, we tried to check the version number which turned out to be always zero. Is

[ft-devel] Re: [freetype-devel] Some public APIs using FT_Int/FT_UInt should be improved in future

2008-12-25 Thread Werner LEMBERG
# there are 60 atomic changesets. each changesets are designed to # insert no new warnings. This is excellent and simplifies control of your patches. I'm quite sorry for my mistake noting unreachable URL! The correct URL is: archive URL:

Re: [ft-devel] conversion from cvs repository to git

2008-12-26 Thread Werner LEMBERG
The result of my excersize is available from: http://gyvern.ipc.hiroshima-u.ac.jp/~mpsuzuki/dot-git_freetype-savannah.tar.bz2 (about 30M) Very nice! However, I prefer to have only two git repositories, namely for `freetype2' and `ft2demos'. The other projects are no longer maintained, and

Re: [ft-devel] conversion from cvs repository to git

2008-12-26 Thread Werner LEMBERG
After this has been done it would be helpful to clean up the most recent commit messages so that the first line (what you see in `gitk', for example) becomes more comprehensible. Normally, it's not possible to change commit messages in git, but since this git repository hasn't been made

Re: [ft-devel] conversion from cvs repository to git

2008-12-26 Thread Werner LEMBERG
Just I've uploaded 2 tarballs of git repository, http://gyvern.ipc.hiroshima-u.ac.jp/~mpsuzuki/git-repo-freetype2.tar.bz2 http://gyvern.ipc.hiroshima-u.ac.jp/~mpsuzuki/git-repo-ft2demos.tar.bz2 Thanks! Will downloada soon. For easier cloning the repository, I've tried to publish unpacked

Re: [ft-devel] conversion from cvs repository to git

2008-12-26 Thread Werner LEMBERG
This job is rather easy, but it takes a lot of time. Be warned. Maybe there are other volunteers since I know that you have some many other things to do. Oh. Any publicly writable git repository is expected to invite volunteers? No. My (probably unrealistic) idea is that someone from the

Re: [ft-devel] conversion from cvs repository to git

2008-12-26 Thread Werner LEMBERG
Excuse me, when I execute git-ls against the repository tarball, nothing is listed, although the size of repository is reasonable ( 20MB). Maybe I made something wrong, I will update them. Everything seems fine. You should use the `gitk' program (or something similar) to visualize a git

Re: [ft-devel] conversion from cvs repository to git

2008-12-26 Thread Werner LEMBERG
Incidently, would it be easier to fix up the commit messages in the (rsync of the) rcs files before running cvs2svn, than in the converted git repo? I don't know. The solution which I've suggested does work (I've tried it by myself). Werner

Re: [ft-devel] conversion from cvs repository to git

2008-12-27 Thread Werner LEMBERG
In git, commits are attributed to email addresses. Cvs2svn needs a mapping to provide full addresses from the data which is in the rcs files. This is the list of usernames which need to be mapped to addresses for a proper conversion of the ft repo to git: [...] Honestly, I consider this

Re: [ft-devel] conversion from cvs repository to git

2009-01-01 Thread Werner LEMBERG
This is not sufficient IMHO, if someone really wants to fix this. For example, a line like * builds/modules.ml (CLOSE_MODULE, REMOVE_MODULE), builds/detect.mk (from 2008-02-11) says nothing; the most important information has been truncated. Umm, git log command shows untruncated

Re: [ft-devel] Possible implementation error: FT_Bitmap_Convert() does not handle pixel modes FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V

2009-01-06 Thread Werner LEMBERG
However, when we called this function to convert a bitmap with pixel-mode of the type FT_PIXEL_MODE_LCD or FT_PIXEL_MODE_LCD_V, the error code 6 (FT_Err_Invalid_Argument) is returned. Fixed in CVS, please test. Thanks for the report. Werner

[ft-devel] Next FreeType release

2009-01-06 Thread Werner LEMBERG
Folks, I'm going to release 2.3.8 in about a week. Are there any pending issues which should be handled? Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: [ft-devel] Next FreeType release

2009-01-06 Thread Werner LEMBERG
I've done: sh autogen.sh Is that the right procedure? Have you checked the prerequisites as described in README.CVS? It reports: running `glibtoolize --force --copy --install' glibtoolize: unrecognized option `--install' Try `glibtoolize --help' for more information. error while

Re: [ft-devel] Next FreeType release

2009-01-06 Thread Werner LEMBERG
2005, 2006, 2007, 2008, 2009 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, modified, # and distributed under the terms of the FreeType project license, # LICENSE.TXT. By continuing to use, modify, or distribute this file

Re: [ft-devel] Next FreeType release

2009-01-06 Thread Werner LEMBERG
ERROR: Your version of the `aclocal' tool is too old. Minimum version 1.10.1 is required (yours is version 1.10). Please upgrade or use the ACLOCAL variable to point to a more recent one. This means the script works now. Good. Applied to the CVS. Considering that

Re: [ft-devel] Next FreeType release

2009-01-06 Thread Werner LEMBERG
It takes approx. 10 minutes -- all packages install in exactly the same way. I just worry that having duplicates will interfere with Xcode or other things that I build. If you use configure's `--prefix' option to install into a directory which isn't used by anything else (as shown in a

Re: [ft-devel] Next FreeType release

2009-01-07 Thread Werner LEMBERG
I just worry that having duplicates will interfere with Xcode or other things that I build. You could use the Jam build. Apple hasn't used jam since Xcode 1.x, and it has no dependencies. I keep a copy of the source at http://ghostscript.com/~giles/jam/jam-2.5.tar.gz if that's helpful.

Re: [ft-devel] FT_Get_PS_Font_Private returns wrong unique_id values

2009-01-08 Thread Werner LEMBERG
FT_Get_PS_Font_Private, however, returns different unique ID values for these fonts. Fixed in CVS. Thanks for the report! Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

[ft-devel] Re: Some public APIs using FT_Int/FT_UInt should be improved in future

2009-01-09 Thread Werner LEMBERG
I'm sorry, you told to use FT_Long, but I committed FT_UInt32. 104FT_EXPORT_DEF( FT_Error ) 105FT_Get_Advances( FT_Faceface, 106 FT_UIntstart, 107 FT_UIntcount, 108 FT_UInt32 flags, 109

Re: [ft-devel] FT_Get_BDF_Property() function does not satisfy LSB standard

2009-01-11 Thread Werner LEMBERG
1) The freetype2 API reference implies that if a given face is from a BDF or PCF font and if the 'prop_name' is RESOLUTION_X, the function FT_Get_BDF_Property() will return 'aproperty' with its type is 'BDF_PROPERTY_TYPE_CARDINAL' and its 'u.cardinal' has correct value. So when

Re: [ft-devel] size reduction

2009-01-11 Thread Werner LEMBERG
Does anyone try how to reduce the lib size by only supporting truetype on symbian? Comment out the unneeded modules in modules.cfg and read docs/CUSTOMIZE. You should also look up the mailing list archive; this has been discussed a few times already. Werner

[ft-devel] FreeType 2.3.8 released

2009-01-14 Thread Werner LEMBERG
FreeType 2.3.8 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

Re: [ft-devel] [NECSV - LSB PJ] Misprint in the spec of FT_Outline_GetInsideBorder function

2009-01-17 Thread Werner LEMBERG
That means that FT_Outline_GetInsideBorder does not comply with the spec in case of empty and invalid outlines. I suppose, there is a misprint in the spec. Yes. Fixed, thanks. Werner ___ Freetype-devel mailing list

[ft-devel] Re: [NECSV - LSB PJ] FT_Get_Name_Index returns 0 instead of a glyph index

2009-01-18 Thread Werner LEMBERG
The FreeType2 API reference states that FT_Get_Name_Index function returns the glyph index of a given glyph name, 0 meaning 'undefined character code'. However FT_Get_Name_Index returns 0, if it is called for some TrueType/OpenType fonts for the existing glyphs named asterisk, space,

Re: [ft-devel] Problem font

2009-01-18 Thread Werner LEMBERG
I have another TrueType font with a problem which prevents FreeType from reading its cmap correctly. The final entry has start and end of 0x, delta of 1, all fine, but the offset is again far outside of the table. In this case calling FT_Get_First_Char followed by repeated calls to

[ft-devel] Re: reduce memory allocation maximum footprint of FT2 POSIX resource fork accessor, by partial stream

2009-01-19 Thread Werner LEMBERG
In this 2 weeks, I was doing an experiment to reduce the memory allocation footprint of POSIX resource fork accessor, by the introduction of partial stream. Now I've written a proof of idea and I want to hear the comments. As a non-mac user, I can't give useful comments. However, the

Re: [ft-devel] [NECSV - LSB PJ] Freetype documentation issues report V0021

2009-01-19 Thread Werner LEMBERG
Included with this email is a bug report listing some deficiencies of the freetype specification. These documentation issues still exist in the documentation of version 2.3.8. Applied, thanks. Werner ___ Freetype-devel mailing list

Re: [ft-devel] Position Independent Port of FreeType2

2009-01-20 Thread Werner LEMBERG
What I am talking about is that global/static data must be const, and ALSO cannot contain ANY pointers, because those require relocations. Hmm. [...] This is a global struct, which although const, contains many pointer, that require relocations. This is impossible on BREW (and other

Re: [ft-devel] Position Independent Port of FreeType2

2009-01-21 Thread Werner LEMBERG
I'll make a small case study as you suggested and send some diff files your way (should I just post the diff files as attachment to this list? or what?) Yes. If necessary, compress them to avoid hitting the 40kByte limit. Werner ___

<    1   2   3   4   5   6   7   8   9   10   >