Re: [ft-devel] Conditionalize Bzip2-compressed font support for inflexible dynamic linker platforms

2011-04-18 Thread Werner LEMBERG
During the business trip, I was trying to reproduce the trouble that Dave Viner got in http://lists.gnu.org/archive/html/freetype/2006-05/msg00035.html , and I found I made an overestimation about bad impact of the chained dependency. Please let me explain. [...] Thanks for the analysis!

Re: [ft-devel] Math error? Spacing drastically different VS2005 to GNU/ARM (v2.4.4)

2011-04-18 Thread Werner LEMBERG
My question is: where should I look and/or what should I change, to make them act the same? The FT_INT64 stuff is only used in a single file, `src/base/ftcalc.c'. However, AFAIK, the GNU C compiler always defines a 64bit data type (`long long int'), so I'm really surprised that you experience

Re: [ft-devel] [PATCH] Improve FT_MulFix

2011-04-18 Thread Werner LEMBERG
I've verified that replacing #undef FT_CONFIG_OPTION_FORCE_INT64 with #define in include/freetype/config/ftoption.h does prevent the #undef FT_LONG64. But that shouldn't be needed on LP64 archs. Perhaps the #if FT_SIZEOF_LONG == 8 case should also #define FT_CONFIG_OPTION_FORCE_INT64 ?

Re: [ft-devel] Math error? Spacing drastically different VS2005 to GNU/ARM (v2.4.4)

2011-04-18 Thread Werner LEMBERG
In particular, it appears to me that the ARM system is doing some incorrect math from the metrics width value of 0x2C0 to get 0x800, but I'm having trouble identifying why this might be. Finally, can you decorate the various functions of ftcalc.c with some printf calls to find out where the

[ft-devel] ftgrid improved

2011-04-18 Thread Werner LEMBERG
ftgrid has been improved. . Added key `f' to ftgrid to toggle forced autohinting. This might be interesting for some of you since you can toggle vertical and horizontal hinting independently. . Autofit debugging messages can now be controlled via FT_DEBUG_AUTOFIT in ftconfig.h (AF_DEBUG

Re: [ft-devel] Hinting glitch?

2011-04-19 Thread Werner LEMBERG
Attached is how the font NanumGothic.ttf (downloadable from here : http://hangeul.naver.com/download.nhn scroll down to the 7 green boxes and it's the third one along the top row) looks: @ Pixel Size 13 [cid:C2DDDF1F-E850-4D87-B865-45318241A5C1] Notice how the letter i appears to be too

Re: [ft-devel] Any tool that visually present segments of autofit module?

2011-04-20 Thread Werner LEMBERG
A few months ago you've written: Are there any tool which visually present segments of autofit module? Something like stems shown in the glyph view of fontforge. No, but I'll probably add this to ftgrid since it would be helpful for my work on the ttfautohint stuff. But it isn't an urgent

Re: [ft-devel] [Patch] CJK autofit/autohint blue zones

2011-04-20 Thread Werner LEMBERG
Also I attached the comparison of 3 typefaces. Just a general question: Are you using B/W rendering in your images for demonstration purposes only? At such small sizes, the autohinter produces bad results if not using AA rendering. Even with TT instructions, CJK fonts normally contain bitmap

Re: [ft-devel] FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH by default?

2011-04-20 Thread Werner LEMBERG
Every user of FreeType that I know has once in their lifetime hit the bug that with many common CJK fonts, non-CJK characters take doublewidth where they should take a single one. The fix always has been to pass FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH to FreeType, as the fonts have the bit set

Re: [ft-devel] [PATCH] CJK Autohinter should not clump stems together when there are too many of them

2011-04-20 Thread Werner LEMBERG
One of my anxiety was that the priority to the black/white evenness can reduce the contrast of the complex glyph. Please find attached picture comparing the results by HeiseiMaruGo-W4 at 16pt @ 72dpi. In my personal impression, the legibility of the strokes in enclosed area (like 日 or 目) is

Re: [ft-devel] FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH by default?

2011-04-21 Thread Werner LEMBERG
Since your suggestion sounds sensible, could you provide a patch? Attached. Applied, thanks. You also need to update the ft2demos that use it to remove the option (ftdiff, etc). Done too. Werner ___ Freetype-devel mailing list

Re: [ft-devel] more Unicode character blocks for Indic autofitting

2011-04-21 Thread Werner LEMBERG
I propose following update as the minimum back-compatible patch for next release of FreeType2. Please decide yourself which of the two patches should go into the repository. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] [Patch] CJK autofit/autohint blue zones

2011-04-23 Thread Werner LEMBERG
There are indeed some problems with the patch. They happened when the bluezones were scaled at af_cjk_metrics_scale_dim() [...] I update the patch to the current git and address the problems. Please review the logic behind the idea. Thanks! I leave this to Toshiya-san for testing. There

Re: [ft-devel] Any tool that visually present segments of autofit module?

2011-04-24 Thread Werner LEMBERG
Are there any tool which visually present segments of autofit module? Something like stems shown in the glyph view of fontforge. No, but I'll probably add this to ftgrid since it would be helpful for my work on the ttfautohint stuff. But it isn't an urgent issue, and in case you have time

Re: [ft-devel] Registration of a set of trickyfonts by NEC

2011-04-27 Thread Werner LEMBERG
Considering that the number of blacklist is increased to 13, I changed the algorithm to compare the checksums slightly. It seems that the fonts are not so popular, so this is not urgent issue. Please give me comment. Your patch looks fine. I haven't tested actually whether it works, but i

Re: [ft-devel] Registration of a set of trickyfonts by NEC

2011-04-28 Thread Werner LEMBERG
BTW, during the production of sample PDF, I found that OpenOffice.org generates wrong checksum for embedded TTF, so the tricky font detection by the checksum cannot solve the problem :-( Uh, oh. Please write a bug report to the OpenOffice/LibreOffice people. It seems to me that we can't do

Re: [ft-devel] Registration of a set of trickyfonts by NEC

2011-04-28 Thread Werner LEMBERG
For some reason I assumed that FreeType would be calculating the checksum. I'm sure there's lots of code that doesn't bother to set the checksums at all. The problem are subsetted fonts, I believe. Werner ___ Freetype-devel mailing list

[ft-devel] ttfautohint: fun with assembler code

2011-04-29 Thread Werner LEMBERG
I've had some hope to show working bytecode stuff at the beginning of May, but things are a bit more complicated, unfortunately: While the library has been extended to support generated bytecode already, I have first to define some auxiliary bytecode functions to support hinting similar to

Re: [ft-devel] benchmark of sfnt checksum recalculation

2011-04-30 Thread Werner LEMBERG
Here is 2nd testcases checking ca. 1900 fonts [...] Thanks. Since this is a once-per-font operation, I don't think we should think too much about timing issues. Please proceed. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] benchmark of sfnt checksum recalculation

2011-04-30 Thread Werner LEMBERG
Just I've committed to make tricky font detector to ignore the existing checksum written in the TrueType header, [...] Thanks! Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] configure option to disable mmap()

2011-04-30 Thread Werner LEMBERG
At present, configure script always uses mmap() if it is found, so I added an option --disable-mmap to ignore it. Although this is only for developers who want to make irregular configuration, is it meaningful to merger in official source code? If you think this is useful, please add it!

Re: [ft-devel] Any tool that visually present segments of autofit module?

2011-05-01 Thread Werner LEMBERG
Okey, I add the accessor functions to afhint.c. I also made the segment drawing independent of the force autofit mode. I found that the segment lines are useful reference with or without autofit turned on. Applied with modifications, thanks. One observation I had is that in order to

Re: [ft-devel] AutoFit: Treat extrema of contours as edges for CJK glyph?

2011-05-01 Thread Werner LEMBERG
For CJK glyph, There are alway many diagonal stems that needed to be fit with blue zones. However, since we cannot produce a horizontal or vertical segment out of a diagonal stem, the stem cannot be blue zoned, e.g. the top and the bottom of 户. To solute the problem, I suggest to treat

Re: [ft-devel] Use tt_face_get_name() in sfnt_get_ps_name()?

2011-05-03 Thread Werner LEMBERG
If these difference is not so important, I propose to change sfnt_get_ps_name() to thin wrapper of tt_face_get_name(). Looks good. If you don't notice adverse effects please commit. Werner ___ Freetype-devel mailing list

Re: [ft-devel] Problem with Postscript Hint

2011-05-03 Thread Werner LEMBERG
I find the random generator, but it can’t explain what I’m experiencing. Have you read this comment in the description of FT_Library For multi-threading applications each thread should have its own FT_Library object. and are you following the advice? Werner

Re: [ft-devel] Problem with Postscript Hint

2011-05-03 Thread Werner LEMBERG
Question for the FT developers : why was this seed calculation implemented this way ? And not e.g. a fixed start value associated with each FT_Face created ? That would make FT output reproducable (and testable for detecting regressions). I have no idea. :-) Patches are welcome. Up to now

Re: [ft-devel] Culprit for missing segment at the ends of stems.

2011-05-04 Thread Werner LEMBERG
It turned out that the culprit was, that the surrounding anchor points have no 'out direction' when searching for segments. [...] Cross out that part will solve the problem for 一 , of cause might also screw up some other parts. It's there to keep the tangent small. Any suggestion on how

Re: [ft-devel] ttfautohint: fun with assembler code

2011-05-06 Thread Werner LEMBERG
Thanks for you suggestions! Working with bytecode instructions must be actively trained, like any other programming language, then the obstacles diminish. Maybe you can make use of the xgridfit tool to semi auto-gen the TT instructions. Maybe. However, the idea was to write a library in C,

Re: [ft-devel] Tweak CJK Blue zone parameters

2011-05-08 Thread Werner LEMBERG
How long do you need to find stable values for the tunable parameters? This is never finished :-) Even for the latin autohinter, improvements or different approaches are always possible (cf. `latin2'). If it is difficult to estimate, I will propose new API to manipulate the parameters by

Re: [ft-devel] [Patch] Compensate blue zone rounding after scale

2011-05-13 Thread Werner LEMBERG
In af_cjk_metrics_scale_dim(), when we scale the blue zone to the font size, the blue zone is also rounded to pixel grid. The offset introduced in the rounding at both the bottom and top could have undesirable effect on the glyph height at certain font size. [...] Again, it would be great if

Re: [ft-devel] builds/unix/install-sh is removed from GIT repository

2011-05-15 Thread Werner LEMBERG
builds/unix/install-sh is a file installed by automake, so it is modified when autogen.sh is executed. I think it is something like config.guess and ltmain.sh, so I registered install-sh to builds/unix/.gitignore and builds/unix/install-sh is removed from GIT repository. Thanks!

Re: [ft-devel] Improving documentation re vertical metrics

2011-05-18 Thread Werner LEMBERG
I'm adding vertical text support to HarfBuzz and it occurred to me that FreeType's vertBearingY and vertAdvance metrics have a Y coordinate growing downwards, while all other Y coordinates in FreeType grow upwards. Thought that may be worth documenting. Could you provide a patch, please?

Re: [ft-devel] Improving documentation re vertical metrics

2011-05-23 Thread Werner LEMBERG
How about this: Applied, thanks. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel

[ft-devel] ttfautohint: progress and problems

2011-05-24 Thread Werner LEMBERG
The last days there was a lot of progress in ttfautohint. I thought that the whole framework was finished, and I only had to fill up missing bytecode. However, while doing so, I found out that I've made a fundamental design error. The idea was (and still is) to compute and collect `hinting

Re: [ft-devel] FT_IS_CID_KEYED() should ignore t1cid fonts?

2011-05-25 Thread Werner LEMBERG
Toshiya-san, sorry for the late reply. If you can remember why current FT_IS_CID_KEYED() ignores t1cid, please let me know. It simply looks like an oversight. I can't see any reason why t1cid fonts should be excluded. Werner ___

[ft-devel] glyph name bug in verdana.ttf 5.03

2011-05-29 Thread Werner LEMBERG
[I'm CCing the FreeType and lilypond devel lists since this is a problem which has not been reported to FreeType, and which has caused problems with PS files created by lilypond.] Peter, the font `verdana.ttf' version 5.03 (shipped with Windows 7, I believe) contains the following two

[ft-devel] ttfautohint: twilight points

2011-06-05 Thread Werner LEMBERG
The last two days I've rewritten a large part of the bytecode in ttfautohint to use twilight points for representing segments. FreeType's autohinter treats segments as if they were a single point, located in the middle of the maximum and minimum coordinate value. The previous code in ttfautohint

Re: [ft-devel] ttfautohint: Milestone reached!

2011-06-15 Thread Werner LEMBERG
[Vern, I take the liberty to answer on the list also.] That's very interesting and gives some pretty good results. If no-one else has done so i am happy to run some specimen tests produce screenshots. This would be great! Please wait a few days until I've fixed the problem with composite

Re: [ft-devel] ttfautohint: Milestone reached!

2011-06-15 Thread Werner LEMBERG
I think i remember you saying that ttfautohint will not have a GUI. Is that still the case? Yes. ttfautohint is a library (with a single API function :-), and the `hint' program is just a small demo using it. Writing a GUI front-end might be a nice job later on, but it has no priority for me

Re: [ft-devel] ttfautohint: Milestone reached!

2011-06-16 Thread Werner LEMBERG
One major problem still remains which I have to resolve in the next days: Composite glyphs are rendered incorrectly. I've fixed that now. However, letting the autohinter handle subglyphs separately will always produce inferior results if compared to handling all subglyphs together at the same

[ft-devel] ttfautohint: How to install

2011-06-17 Thread Werner LEMBERG
but i am embarrassed to admit that i have built the library but have not found how to use the 'autohint' function :) a quick howto, please! One important thing I've forgotten to mention: You need the current git version of FreeType to test the ttfautohint library; the `configure' test for

Re: [ft-devel] ttfautohint: How to install

2011-06-17 Thread Werner LEMBERG
Vern, I have now added some simple upper lowercase waterfall tests to 'ttfautohint tests' at http://code.newtypography.co.uk thanks a lot for the tests and the test images! Please post a URL where I can download the Ubuntu font you've used. Of note is that at larger sizes (20px - 30px)

Re: [ft-devel] ttfautohint: Milestone reached!

2011-06-17 Thread Werner LEMBERG
Finally, there is the problem of glyphs which can't be addressed with a cmap directly, like small caps which are activated by an OpenType feature. Similar to FreeType's autohinter, such glyphs don't get any special consideration and are treated by the default hinting module (in FreeType this

Re: [ft-devel] ttfautohint: How to install

2011-06-17 Thread Werner LEMBERG
The 'stretched' x-height could be a matter of taste, but personally i would like to see the autohinter err on the side of less stretching if possible. Hmm. I could add the ability to switch off x-size snapping, and I could also change the rounding rules to something similar the SROUND

Re: [ft-devel] ttfautohint: How to install

2011-06-20 Thread Werner LEMBERG
Mhmm. Up to now I've *never* seen a font rendered with FreeType which shows such a large deviation from the Windows font engine. I believe that FreeType's output is quite trustworthy. heh. Really? Depends what you mean by 'large deviation' i guess. I only ever seem to see differences

Re: [ft-devel] Fix for CVE-2010-3311

2011-06-24 Thread Werner LEMBERG
... And indeed, comment #39 says: The following upstream commit fixes this problem in freetype 2.4.x: commit 75787c19eab20874c5d588842c52e59cfbd9302a Author: Werner Lemberg w...@gnu.org Date: Sat Jun 26 09:24:08 2010 +0200 Add some memory checks (mainly for debugging). * src/base

Re: [ft-devel] ttfautohint: How to install

2011-06-24 Thread Werner LEMBERG
Just posted screenshots of ttfautohint output under DirectWrite (Cleartype Grayscaling). Thanks again for your invaluable help in testing ttfautohint! Interesting. imo, generally the ttfautohint output is superior to the original fonts' output, though there are some glitches, e.g. dot

[ft-devel] FreeType 2.4.5 has been released

2011-06-25 Thread Werner LEMBERG
FreeType 2.4.5 has been released. It is available from http://savannah.nongnu.org/download/freetype/ or http://sourceforge.net/project/freetype/files/ The latter site also holds older versions of the FreeType library. See below for the relevant snippet from the CHANGES file;

Re: [ft-devel] ttfautohint: How to install

2011-06-25 Thread Werner LEMBERG
I am curious - as i understand it(?) ttfautohint uses freetype to find snap zones etc from which it bases it's TT instructions output. I've copied a large part of the autofit module into ttfautohint; additionally, I'm calling some FreeType routines for generic reading and parsing of the input

Re: [ft-devel] PCF bitmap foundary patch

2011-06-29 Thread Werner LEMBERG
in openSUSE we apply a patch called freetype2-bitmap-foundry.patch which seems to add foundry support to PCF font files, likely to fix the problem reported over at http://lists.freedesktop.org/archives/fontconfig/2006-February/002072.html . The patch is attached for your inspection, can

[ft-devel] ttfautohint 0.1 has been released

2011-06-30 Thread Werner LEMBERG
ttfautohint 0.1 has been released. It is available from http://savannah.nongnu.org/download/freetype/ or http://sourceforge.net/project/freetype/files/ttfautohint Enjoy! Werner -- This project provides a

Re: [ft-devel] ttfautohint 0.1 has been released

2011-06-30 Thread Werner LEMBERG
ttfautohint 0.1 has been released. It is available from http://savannah.nongnu.org/download/freetype/ or http://sourceforge.net/project/freetype/files/ttfautohint Oops! This should be http://sourceforge.net/projects/freetype/files/ttfautohint Werner

Re: [ft-devel] ttfautohint: How to install

2011-06-30 Thread Werner LEMBERG
The 'final image' is simply the ttfautohint instructions with the addition of links (double links work best in this instance). I did no extra hinting from fontlab - [...] [...] if i look at the same font in FontForge's Gridfitmode, then i don't see the egging issue at all. Exactly! Such a

Re: [ft-devel] .gitignore in release tarballs

2011-06-30 Thread Werner LEMBERG
our building system warned me that there are .gitignore files distributed in release tarballs of freetype. Could you remove them in upcoming releases? Why should .gitignore files be removed from release tarballs? They're part of the source code. Mhmm, not really IMHO. For me,

Re: [ft-devel] .gitignore in release tarballs

2011-06-30 Thread Werner LEMBERG
Since freetype no longer uses CVS attached patch could do the job. Applied, thanks! Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: [ft-devel] stroker fixes

2011-07-02 Thread Werner LEMBERG
Please find attached a major revision of ftstroke.c/h. Thanks a lot! I've committed it to the git repository, doing some slight formatting. Ideally, it would have been better to isolate the various unrelated fixes into separate commits, but I know that this can be a very time-consuming

Re: [ft-devel] stroker fixes - documentation

2011-07-02 Thread Werner LEMBERG
I think only the documentation for FT_Stroker_LineJoin will need updating to match the new ftstroker.h. Perhaps this happens automatically. It does, thanks. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] ttfautohint: How to install

2011-07-02 Thread Werner LEMBERG
What i have noticed with ttfautohint is that often e.g. a regular weight of a font will grow in size at a bigger % than the bold weight. So i'm thinking the Regular is 'over-hinted', maybe. Well, ttfautohint has no possibility to decide whether a font is bold or not... The Infinality

[ft-devel] Improved handling of ascender and descender

2011-07-03 Thread Werner LEMBERG
Folks, I'm going to apply the change below (in sfnt/sfobjs.c). Only if a font has zero values for `hhea' table's ascender and descender, FreeType tries harder to find reasonable values. Any objections? Werner == old

Re: [ft-devel] ttfautohint: How to install

2011-07-07 Thread Werner LEMBERG
Attached is a patch for tafpgm.c; please apply temporarily to make the `fpgm' table four bytes longer. Thanks for that. Have you been able to test that? Are fonts generated with the slightly larger `fpgm' table rendered correctly, or do you still get an egg-shaped `O' glyph? Otherwise, I'm

Re: [ft-devel] ttfautohint: How to install

2011-07-07 Thread Werner LEMBERG
My patch file looks like this (taken from your post) - diff --git a/src/tafpgm.c b/src/tafpgm.c index 1268e29..3874844 100644 --- a/src/tafpgm.c +++ b/src/tafpgm.c @@ -4298,6 +4298,11 @@ unsigned char FPGM(bci_hint_glyph) [] = { ENDF, + PUSHB_1, +100, + FDEF, + ENDF,

[ft-devel] details on iPhone exploit caused by FreeType?

2011-07-08 Thread Werner LEMBERG
Folks, has anyone more information on the recent exploit for the iPhone, reportedly caused by a problem within FreeType's `t1_decoder_parse_charstrings'? Extracting the buggy font from http://www.jailbreakme.com/saffron/_/iPod_4.3.3_8J2.pdf and testing the current ftview (from the git

Re: [ft-devel] details on iPhone exploit caused by FreeType?

2011-07-08 Thread Werner LEMBERG
== diff --git a/ChangeLog b/ChangeLog index 25fb10c..c58d6bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-07-08 Werner Lemberg w...@gnu.org + + [psaux] Add better argument check for `callothersubr'. + + * src/psaux/t1decode.c

Re: [ft-devel] details on iPhone exploit caused by FreeType?

2011-07-08 Thread Werner LEMBERG
I would have this check under default: on line 1013 because other cases have good checks already. But the `default' label continues, while `Unexpected_OtherSubr' aborts... That default is rather strange: wish me luck. Really? :-) Obviously, you aren't aware of TeX's warning messages like

Re: [ft-devel] details on iPhone exploit caused by FreeType?

2011-07-09 Thread Werner LEMBERG
Moving error check down to default, where it belongs Applied, thanks. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: [ft-devel] truetype metrics resize request question

2011-07-10 Thread Werner LEMBERG
I've been working on a bug for webkit related to an odd behavior with the Ahem font in the Qt framework. I tracked it down to Qt either receiving incorrect descent/ascent values from FT_Size_Metrics or using the Freetype library incorrectly. Within TrueType fonts, there are three sets of

Re: [ft-devel] truetype metrics resize request question

2011-07-11 Thread Werner LEMBERG
I've been working on a bug for webkit related to an odd behavior with the Ahem font in the Qt framework. I tracked it down to Qt either receiving incorrect descent/ascent values from FT_Size_Metrics or using the Freetype library incorrectly. When using FT_Set_Char_Size(face, width,

Re: [ft-devel] details on iPhone exploit caused by FreeType?

2011-07-11 Thread Werner LEMBERG
What do you know about this one: CVE-2011-1908? Nothing. Is this the same issue or an older one? I don't know. Nobody has contacted me recently. Some months ago, people from Foxit have sent a bunch of problems which I've tried to fix in the git repository (thus all related patches are in

[ft-devel] Fw: iphone exploit in freetype

2011-07-11 Thread Werner LEMBERG
: commit 6b3d00e1a0bc5033aeeab51912eda0aff6ed6e8b Author: Werner Lemberg w...@gnu.org Date: Tue Feb 3 21:34:29 2004 + * src/type1/t1load.c (parse_dict): Handle `RD' and `-|' commands outside of /Subrs or /CharStrings. This can happen if there is additional code manipulating

Re: [ft-devel] truetype metrics resize request question

2011-07-14 Thread Werner LEMBERG
I've made a patch for the proposed change below. Please let me know if anything needs to be adjusted. The patch looks good, thanks. Just for the record, please give some numeric values for your problem with the Ahem font so that I can identify and handle potential issues in the future more

Re: [ft-devel] details on iPhone exploit caused by FreeType?

2011-07-14 Thread Werner LEMBERG
Here's the answer from Matthias. 1) Fix2Int does shift before conversion. How does it solve the undefined behavior with negative numbers? After the shift, the upper half is undefined. The cast to Short cuts off the upper half, and the following cast to Int does the sign extension in a

Re: [ft-devel] truetype metrics resize request question

2011-07-16 Thread Werner LEMBERG
For reference if anyone is curious, any pixel size that is not a multiple of 5 will exhibit the problem. A couple common ones are 72px and 96px which should be a 72x72 and 96x96 respectively. Leading is 0 for Ahem so height should be ascent+descent. $BUU$(Q.-(B I've applied your patch.

Re: [ft-devel] building freetype without gzip and bzip2 fonts

2011-07-16 Thread Werner LEMBERG
I'd like to build a static library version of Freetype2 that does not link in libgz or libbz2. May I assume that disabling support for gzip and bzip2 compressed fonts would do that? How would I disable this? If you say ./configure --help you can see this, among other information:

[ft-devel] ttfautohint 0.2 has been released

2011-07-17 Thread Werner LEMBERG
ttfautohint 0.2 has been released. It is available from http://savannah.nongnu.org/download/freetype/ or http://sourceforge.net/project/freetype/files/ttfautohint Enjoy! Werner -- This project provides a

Re: [ft-devel] [ft-announce] ttfautohint 0.2 has been released

2011-07-18 Thread Werner LEMBERG
ttfautohint 0.2 has been released. It is available from http://savannah.nongnu.org/download/freetype/ both these links seem to be 404 errors, :-/ Don't miss the small print on that page :-) Downloads will redirect to your nearest mirror site. Files on mirrors may be subject to

Re: [ft-devel] [PATCH] - Add FT_DISABLE_STREAM_SUPPORT to disable the use of file streaming functions for memory savings

2011-07-19 Thread Werner LEMBERG
Here is an updated version and a changelog entry. I'm not sure if I'm 100% happy with the wording of the option comment though. Please let me know if there are other changes that I should make here. Thanks. I've modified your patch to bring it in line with the conventions of FreeType.

Re: [ft-devel] broken hinted DejaVuSans et 4

2011-07-26 Thread Werner LEMBERG
This is NOT a recent regression and should not hold 2.4.6. But why is the attached so ugly? A very good question! Fortunately, you shouldn't see this in real life if applications properly follow the data in the `gasp' table. ftview 4 /usr/share/fonts/dejavu/DejaVuSans.ttf and toggle 'h' a

Re: [ft-devel] details on iPhone exploit caused by FreeType?

2011-07-28 Thread Werner LEMBERG
I sent privately to Werner yesterday, but since the sites are public, I guess it might as well go to the full list. [...] And I replied that I'll do a new release today :-) Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] truetype metrics resize request question

2011-07-28 Thread Werner LEMBERG
Werner, you are right, it should be reflected in the CHANGES. The changes result in better, more consistent line spacing. DejaVu got one point smaller, there is nothing wrong with that too. Done. Thanks for the images! Werner ___

[ft-devel] FreeType 2.4.6 has been released

2011-07-28 Thread Werner LEMBERG
FreeType 2.4.6 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;

[ft-devel] The smallest font

2011-07-31 Thread Werner LEMBERG
Here's a link to a really fascinating article on creating a smallest TrueType font. I've enjoyed it a lot! http://processingjs.nihongoresources.com/the_smallest_font/ Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] A few tiny patches

2011-08-16 Thread Werner LEMBERG
Here's a small set of patches I'd like to get in to the official tree. [...] Thanks! Let me know if you have any questions or need more info. Please send me the broken fonts privately which trigger the problems. I collect such beasts :-) Werner

[ft-devel] homepage for ttfautohint

2011-08-16 Thread Werner LEMBERG
This might be interesting to you: http://www.freetype.org/ttfautohint Enjoy! Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: [ft-devel] Regarding the freetype (OSS)

2011-08-30 Thread Werner LEMBERG
We are considering using your program “freetype 2.3.5” in our products. This is a quite old version. I recommend the current one, 2.4.6. Before going any further, however, we would like to confirm the following so that we are sure to fully respect your rights. You are the author and owner

Re: [ft-devel] FT_New_Memory_Face crashes

2011-09-07 Thread Werner LEMBERG
Louis, your attachment is too big for the mailing list. Additionally, it contains a non-free font which is not allowed to be distributed. Please resend it without the font, if necessary, and I'll forward your mail to the list. BTW, trying to compile with g++ -o Standalone \ -O0 -g \

Re: [ft-devel] FT_New_Memory_Face crashes

2011-09-07 Thread Werner LEMBERG
The main difference between the standalone and Android app is the way that the input TTF file is read in, however I verified that my TTF file is read in correctly in Android, by writing out the buffer that I read in to a new file, and then comparing the original with this - they are

[ft-devel] ttfautohint 0.3 has been released

2011-09-09 Thread Werner LEMBERG
ttfautohint 0.3 has been released. It is available from http://savannah.nongnu.org/download/freetype/ or http://sourceforge.net/projects/freetype/files/ttfautohint Enjoy! Werner PS: Downloads from savannah.nongnu.org will redirect to your nearest mirror site. Files on

Re: [ft-devel] broken hinted DejaVuSans et 4

2011-09-13 Thread Werner LEMBERG
This means that FreeType is fine and DejaVuSans's hinting at 4ppm is buggy. :-) Due to the `gasp' table, this is a non-issue anyway. It cannot be both non-issue and buggy font. The hinting at 4ppem *is* buggy. However, the gasp table prevents hinting at this size, for exactly that reason.

Re: [ft-devel] FT_Load_Char behavior when glyph not present

2011-09-14 Thread Werner LEMBERG
What is the expected behavior of FT_Load_Char when the requested glyph is not present in the font file? One user of freetype-py (http://code.google.com/p/freetype-py/) reported that freetype returns no error (and does not load the glyph obviously). FT_Load_Char is always successful

Re: [ft-devel] Freetype2 - Install issues under Linux SUSE SLES 11 SP1

2011-09-15 Thread Werner LEMBERG
cannot find -lz This dependency is from FreeType itself. Say ./configure --without-zlib to use FreeType's LZW implementation. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] move band check outside of the loop.

2011-09-17 Thread Werner LEMBERG
This is a final version of the patch that optimizes both conic and cubic flatteners. Polished and tested. Please consider. Sorry for the long delay. It looks good I've applied it to the git repository, thanks. Werner ___ Freetype-devel

Re: [ft-devel] FT_Get_Kerning returns 0

2011-09-18 Thread Werner LEMBERG
I check if my TTF file has kerning information using FT_HAS_KERNING, and this returns true. I then use: FT_Get_Kerning(face, prev, next, FT_KERNING_DEFAULT, delta); to determine the kerning value, but delta.x returns 0. How can I debug why the kerning value is 0 even though FT_HAS_KERNING

Re: [ft-devel] character spacing

2011-09-18 Thread Werner LEMBERG
Also - as I have already invested much time in Freetype I no longer have time to integrate a different library such as Pango - is there somewhere I can obtain freely distributable TTF files that contains kerning information that can be handled by Freetype? If a font doesn't contain a `GPOS'

Re: [ft-devel] character spacing

2011-09-19 Thread Werner LEMBERG
My original problem persists though and there is too much spacing between certain characters, such as F and a, and between 1 and almost any other number. Is this not something that should be dealt with by the kerning table, or do I now need to look for a different font? I think that your

Re: [ft-devel] FT_Set_Char_Size()

2011-09-21 Thread Werner LEMBERG
If any one could answer my (silly?) question. I need to use FT_Set_Char_Size() to set my character size at point 7,25 (verdana). Since this function accepts FT_F26dot6 as the char height and width, I am wondering how I can set point 7,25 without losing data if I cast 7,25 to FT_F26dot6. As

Re: [ft-devel] FT_Get_Char, FT_Get_Next_Char

2011-09-25 Thread Werner LEMBERG
Using the following code with the attached (very small) font: No font attached. BTW, never ever send complete non-free fonts to this list! Small, subsetted ones are OK. I'm getting the following output: Num glyphs: 3 char: 32 (index = 1) char: 160 (index = 1) How do I get the last

Re: [ft-devel] FT_Get_Char, FT_Get_Next_Char

2011-09-26 Thread Werner LEMBERG
I'm getting the following output: Num glyphs: 3 char: 32 (index = 1) char: 160 (index = 1) How do I get the last char ? (or did I do something wrong ?) Without seeing the font this can't be answered. For example, character code 160 might map to the `space' glyph, having glyph index 1

Re: [ft-devel] FT_Load_Glyph FT_LOAD_IGNORE_TRANSFORM

2011-10-14 Thread Werner LEMBERG
Sorry for the late response. I'm trying to figure out if the following two snippets of code will load the glyph in the same way in all cases... Snippet#1: --- FT_Set_Transform(face, NULL, NULL); FT_Load_Glyph(face, glyph_index, load_flags); Snippet#2: ---

Re: [ft-devel] FT_Load_Glyph FT_LOAD_IGNORE_TRANSFORM

2011-10-15 Thread Werner LEMBERG
The decision is based on the transformation matrix without considering if the FT_LOAD_IGNORE_TRANSFORM bit is set. Is this a bug? Does the glyph always get loaded the same way in both cases? This really looks like a bug. Can you provide a fix? Here is a patch. :) Applied, thanks!

Re: [ft-devel] FT_Load_Glyph bugs?

2011-10-15 Thread Werner LEMBERG
[...] maybe someone meant the following? /* apply `standard' transformation if no renderer is available */ if ( internal-transform_flags 1 ) FT_Outline_Transform( slot-outline, internal-transform_matrix ); if ( internal-transform_flags 2 )

<    5   6   7   8   9   10   11   12   13   14   >