nyjkkyjn@gmail.com | 8 May 23:21
Picon

[ft-devel] subscribe

Good evening,
            I've tried to compile freetype 2.4.9 using mingw-w64
toolchain on cygwin environment (I have Windows 7 64-bit).. The
configure step goes all OK, although it tells it is on unix.. When I
call "make", the command compiles almost all the headers, but when it
calls the script apinames.exe it shows "coud not open
'/cygdrive/c/Library/src/freetype/include/freetype/ttnameid.h' for
writing".. I think apinames.exe is broken to me, maybe because functions
fopen() returns NULL at the variable out, sending stderr signal... Is
there a solution or a workaround? Do I need this executable to compile
the library?
                Thanks, goodnight

_______________________________________________
Freetype-devel mailing list
Freetype-devel <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel
Picon

[ft-devel] (no subject)

Hello,


I have found some port attempts of freetype2 for .NET and I try to set up a working project of mine. My intention is to read the bytes of a generated glyph's buffer. The problem is that when I try to create a .NET Bitmap objects from these bytes I always get exceptions or garbage no matter what alternatives I have used. With freetype I have tried two approaches :

Init_Freetype();
New_Face();
Set_Pixel_Sizes();
Get_Char_Index();
Load_Glyph();
Render_Glyph();

And then from the GlyphSlotRec structure that Render_Glyph() saves, I try to read bitmap.buffer. My second approach is the following :

Init_Freetype();
New_Face();
Set_Pixel_Sizes();
Get_Char_Index();
Load_Glyph()
Get_Glyph();
Glyph_To_Bitmap();

And then with a typecast I get a Bitmap_Glyph structure object. 

All the methods I mentioned above return 0 so there are no errors. And the typecast seems ok. Obviously there is something wrong when i try to access the bytes of the generated glyph like this :

glyph.bitmap.buffer. 

The way I try to read the buffer is by copying the bytes starting at the memory location of the buffer ranging until glyph.bitmap.width * glyph.bitmap.rows.

Any suggestions or hints?

Thanks,

Vlad
_______________________________________________
Freetype-devel mailing list
Freetype-devel <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel
向雅 | 7 May 18:08
Picon

[ft-devel] Better render hline last cell at smooth

Hi,
I doing some tests for render, and get this:
If change hline render last cell, will get better smooth at right side:

diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 926020a..8956d83 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -691,7 +691,7 @@ typedef ptrdiff_t  FT_PtrDist;
     }

     delta      = y2 - y1;
-    ras.area  += (TArea)(( fx2 + ONE_PIXEL - first ) * delta);
+    ras.area  += (TArea)(( fx2 + ONE_PIXEL + first ) * delta);
     ras.cover += delta;
   }

Regards,
Qinxian

致敬
向雅

_______________________________________________
Freetype-devel mailing list
Freetype-devel <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel
Laval Chabon | 5 May 22:27
Picon

[ft-devel] VEGESIGNES

Hello,

I downloaded FreeStyle on my iMac (OS Lion).

But I ignore how to use it on the Terminal making it working on my Font: VEGESIGNES.ttf

Is there someone to help me?

Frandey Lavie Hypère Chabom⊥
chabon.laval731 <at> gmail.com
At your glance, à votre guise, en introduction d'apprivoisement.

URL de l'auteur/of the author: www.lavalchabon.com

http://www.epubbud.com/book.php?g=7NLZBA8H
http://www.dafont.com/fr/vegesignes.font
http://openfontlibrary.org/font/vegesignes
http://www.lulu.com/product/ebook/po%C3%89sies-en-v%C3%89g%C3%89signes/18187143?productTrackingContext=search_results/search_shelf/center/1
http://www.youtube.com/watch?v=RfX2NrdPcdA 
http://www.lulu.com/content/livre-%c3%a0-couverture-souple/po%c3%89sies-en-v%c3%89g%c3%89signes/11246015
http://www.lulu.com/content/e-book/po%c3%89sies-en-v%c3%89g%c3%89signes/11775001

http://www.lulu.com/product/ebook/vegesignes-english/17388533

_______________________________________________
Freetype-devel mailing list
Freetype-devel <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel
Khaled Hosny | 5 May 10:46
Favicon
Gravatar

[ft-devel] ttfautohint configure --with-freetype-config is broken

Hi all,

Commit 6076a72 seems to have broken ttfautohint's `configure
--with-freetype-config`, attached a little patch to restore it.

Regards,
 Khaled
Attachment (freetype_config.diff): text/x-diff, 488 bytes
_______________________________________________
Freetype-devel mailing list
Freetype-devel <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel
Behdad Esfahbod | 25 Apr 05:20
Favicon
Gravatar

Re: [ft-devel] [patch] emboldening rework v1

On 04/24/2012 11:07 PM, Alexei Podtelezhnikov wrote:
> As I said, the ideal solution for you is to avoid this
> currently-broken API and just flip the negative sign like ftgrays.c
> does on line 1243. That's all there is to it.

Right.  I'm not planning to use this function to begin with.  And I'm not
concerned with how broken the current broken implementation is.  I'm talking
about what ideally it should look like.

Anyway.  I'll report on my progress in making a perfect version of that function.

behdad
Infinality | 21 Apr 04:15
Favicon
Gravatar

[ft-devel] ttfautohint / Oxygen / infinality

Hi guys,

Today I tested out the TT-instructed Oxygen font from the KDE repo with 
my TT subpixel hinting patches.  This is the result:
http://www.infinality.net/files/oxygen-infinality-problems.png

Yikes!!!  After examining the TT instructions in the instructed version 
of the Oxygen fonts, it looks like the way that ttfautohint is 
generating instructions is substantially different than typical 
TT-instructed fonts.  Since my patches are attempting to do what the MS 
rasterizer does (at least with legacy fonts), I'm curious how these 
render on Windows.  Unfortunately I don't have a Windows system 
available to test that on at the moment, however my guess is that it 
renders just fine on Windows.

I have a way to exclude certain fonts or individual glyphs within a font 
from using the tweaks that my patches employ (i.e. render it the way 
Freetype TT hinter does by default), but I'd rather not build up a giant 
hard-coded exclusion list of fonts generated by ttfautohint if at all 
possible.  And, given that the TT subpixel hinting patches may soon land 
into Freetype, I'd like make them work nicely with other 
Freetype-related software.  :D   So, I'd like to adapt my TT hinting 
patches to gracefully handle fonts that have been hinted with ttfautohint.

My question is this:  Is there something unique about ttfautohint-ed 
fonts that indicates they are already taking into account 
subpixel-hinting?  I know there is the "ready for Cleartype" flag, but 
it never seems to be set in any fonts I've seen (including Oxygen), even 
the MS ones.  Also, the Microsoft Cleartype fonts seem to behave well 
with my patches just as they are.  They are designed for 
Cleartype/subpixel just as the ttfautohint fonts are.  I guess I'm 
trying to reconcile what exactly ttfautohint is doing differently that 
causes these issues.  Can any of you provide any insight?

Thanks,
Erik / Infinality
Tobias Ringström | 16 Apr 11:22
Picon
Favicon

[ft-devel] Monochrome DroidSans captital M rendering bug at large sizes

I've encountered what seems to be a rendering bug with monochrome 
rendering of capital M in the DroidSans font at large sizes.  See the 
attached image.  I've tried both 2.4.8 and GIT head with identical results.

Download DroidSans.ttf from the Android GIT, or from this mirror:

	http://omapzoom.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/DroidSans.ttf;hb=HEAD

Run ftview like this:

	ftview -m M 352 DroidSans.ttf

then disable antialiasing with the 'a' key.

Any ideas?

/Tobias
_______________________________________________
Freetype-devel mailing list
Freetype-devel <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel
Vinnie Falco | 15 Apr 18:05
Picon
Gravatar

[ft-devel] Flamewar (was Re: Aftermath)

> From: Miles Bader <miles <at> gnu.org>
> I'm sure all the relevant arguments were well-covered in the _previous_ flamewar on this topic...

You call that a flamewar? freetype-devel is the model of how I wish
participants in other open source projects that I have amalgamated
would behave. Sure, there were some rather vocal dissenting voices
over the FreeType amalgamation but on average I would say it was a
high level of professionalism. Thanks everyone!
Vinnie | 14 Apr 21:21
Picon
Favicon

[ft-devel] FreeType Amalgamation UPDATED!

I've updated the amalgamated version of FreeType, these are the changes:

- The amalgamated repo is at https://github.com/vinniefalco/FreeTypeAmalgam
- The repo no longer includes the templates
- The directory structure has been flattened to make it easier to view
- A file called COMMITLOG contains the full commit log of the branch of FreeType that was used to produce the
corresponding amalgamated sources
- The amalgamated files include the copyright and licensing terms at the top
- The repo contains the license files
- FreeTypeAmalgam.h provides ftglyph.h now

The templates for building the FreeType amalgamation are in their own repository now, with these improvements:

- The template repo is at https://github.com/vinniefalco/FreeTypeAmalgamTemplate
- The script has been re-written to use the Bourne shell and placed in platform-independent location.
- The Visual Studio 2010 project automatically creates the amalgamation as a pre-build step.
- The amalgamation script automates production of COMMITLOG
- Licensing terms (MIT license) were made clear

The Amalgamate tool has also received some changes

- The Amalgamate tool repo is at https://github.com/vinniefalco/Amalgamate
- The directory structure has been flattened to make it easier to view and compile
- The included JUCE module was shrunk down in size
- The tool is cross platform (always was), it should be possible to just compile the two .cpp files and link
them to create the binary.
- Licensing terms were made clear

Thanks
Vinnie | 14 Apr 18:19
Picon
Favicon

Re: [ft-devel] Amalgamation details

> From: Alan Coopersmith <alan.coopersmith <at> oracle.com>

> Do you know where most of the FreeType security issues in the past few years
> has been found?   By people trying to hack smartphones via downloads of
> malicious PDF's or opening webpages with bad webfonts.

That's
 only a vulnerability of the application in question allows loading of 
arbitrary fonts. For the case where an application simply wants hinted 
output of its own font used in a user interface, with the entire font 
file embedded in the application as static data or a resource (100% of 
my users) there is no issue!

> Of course, those smartphone OS'es are providing system font rendering using
> FreeType so you don't have to shove in another copy there.

I
 agree and its on my to-do list to refine the amalgamation so that it 
detects and uses the system provided library on environments where it 
exists. This behavior will be overridable with a configuration macro, for those people who have built a
rich GUI on top of a hinted 
font and did all their testing with a specific version of FreeType, and 
don't want to be exposed to a bug in a shared FreeType library making 
their application look bad (for example, a defect discovered in the auto
 hinter).

The end-game is to build rich open source 
GUI components on top of the FreeType amalgamation which will seamlessly provide FreeType either through
the amalgamated sources or the system provided libraries (at the programmer's option), 
with the ability to distribute these GUI components without external 
dependencies (by including the amalgamation in the source distribution). All this, with no Makefiles or
platform specific configuration required. In other words, for dummies.

Of
 course it is worth repeating once again this use-case is contemplated 
ONLY FOR FONTS EMBEDDED IN THE APPLICATION and not for fonts which come 
from external files!

I know this is a difficult concept for a lot of people who have no experience writing shrink-wrapped
applications (which seem to be going the way of the Dodo) so here is an example (again):

http://m.artician.com/pu/3G665GVDE5WXL3A7SOS6MP4RCOI6MJHB.preview.jpeg

This is GUI for an audio plugin. These plugins typically have compact interfaces with small text, which is a
great candidate for hinting. A plugin author can choose a good hinted font, embed it in their application
(using a command tool that converts a binary file into a giant C-style static array), and then use FreeType
to draw the font and get nice output at the small sizes. The benefit of using a statically linked FreeType is
that you can design your interface, test it against the specific FreeType version, and then be assured
that no matter what the user has on their system in terms of FreeType libraries, the application or plugin
appearance will not change.

Most audio plugins are built on JUCE (http://rawmaterialsoftware/juce.php) which is specifically
tuned for making it easy to write cross platform user interfaces and audio plugins in particular. For this
reason, I have built a class that works with the JUCE font rendererer to provide hinted output for embedded fonts:

http://vinniefalco.github.com/VFLib/class_free_type_faces.html

I hope this rant has helped to provide a broadened view of the variety of ways in which FreeType may be used.

Gmane