freetype2: Haskell binding for FreeType 2 library
Wrapper around FreeType 2 library. Relevant exerpts from the FreeType 2 website:
What is FreeType 2?
FreeType 2 is a software font engine that is designed to be small, efficient, highly customizable, and portable while capable of producing high-quality output (glyph images). It can be used in graphics libraries, display servers, font conversion tools, text image generation tools, and many other products as well.
The following is a non-exhaustive list of features provided by FreeType 2.
FreeType 2 provides a simple and easy-to-use API to access font content in a uniform way, independently of the file format. Additionally, some format-specific APIs can be used to access special data in the font file.
Unlike most comparable libraries, FreeType 2 supports scalable font formats like TrueType or Type 1 natively and can return the outline data (and control instructions/hints) to client applications.
By default, FreeType 2 supports the following font formats.
TrueType fonts (and collections)
Type 1 fonts
CID-keyed Type 1 fonts
CFF fonts
OpenType fonts (both TrueType and CFF variants)
SFNT-based bitmap fonts
X11 PCF fonts
Windows FNT fonts
BDF fonts (including anti-aliased ones)
PFR fonts
Type 42 fonts (limited support)
From a given glyph outline, FreeType 2 is capable
of producing a high-quality monochrome bitmap, or
anti-aliased pixmap, using 256 levels of
gray
. This is much better than the 5 levels
used by Windows 9x/98/NT/2000 or FreeType 1.
FreeType 2 supports all the character mappings defined by the TrueType and OpenType specification. It is also capable of automatically synthetizing a Unicode charmap from Type 1 fonts, which puts an end to the painful 'encoding translation' headache common with this format (of course, original encodings are also available in the case where you need them).
The FreeType 2 core API provides simple functions to access advanced information like glyph names or kerning data.
FreeType 2 provides information that is often not available from other similar font engines, like kerning distances, glyph names, vertical metrics, etc.
FreeType 2 provides its own caching subsystem since release 2.0.1. It can be used to cache either face instances or glyph images efficiently.
Modules
[Index]
- Graphics
- Rendering
- FreeType
- Graphics.Rendering.FreeType.Internal
- Graphics.Rendering.FreeType.Internal.Bitmap
- Graphics.Rendering.FreeType.Internal.Face
- Graphics.Rendering.FreeType.Internal.Glyph
- Graphics.Rendering.FreeType.Internal.GlyphSlot
- Graphics.Rendering.FreeType.Internal.Library
- Graphics.Rendering.FreeType.Internal.Matrix
- Graphics.Rendering.FreeType.Internal.PrimitiveTypes
- Graphics.Rendering.FreeType.Internal.Vector
- Graphics.Rendering.FreeType.Internal
- FreeType
- Rendering
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
examples | Build example programs | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- freetype2-0.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.0.1, 0.1.0, 0.1.1, 0.1.2, 0.2.0 |
---|---|
Dependencies | array, base (>3 && <5), freetype2, missing-foreign (>=0.1.1 && <0.2.0) [details] |
License | BSD-3-Clause |
Copyright | Copyright Jason Dagit 2011 |
Author | Jason Dagit <dagitj@gmail.com> |
Maintainer | Jason Dagit <dagitj@gmail.com> |
Category | Graphics |
Source repo | head: git clone git://github.com/dagit/freetype2.git |
Uploaded | by JasonDagit at 2011-04-03T23:05:27Z |
Distributions | LTSHaskell:0.2.0, NixOS:0.2.0, Stackage:0.2.0 |
Reverse Dependencies | 10 direct, 2 indirect [details] |
Executables | freetype-example1 |
Downloads | 6444 total (12 in the last 30 days) |
Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |