forked from dagit/freetype2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfreetype2.cabal
273 lines (261 loc) · 11.7 KB
/
freetype2.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
Name: freetype2
Version: 0.1.2
Synopsis: Haskell binding for FreeType 2 library
Description: 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.
License: BSD3
License-file: LICENSE
Author: Jason Dagit <[email protected]>
Maintainer: Jason Dagit <[email protected]>
Copyright: Copyright Jason Dagit 2011
Category: Graphics
Build-type: Simple
Extra-source-files: freetype2/include/*.h
freetype2/include/freetype/*.h
freetype2/include/freetype/config/*.h
freetype2/include/freetype/internal/*.h
freetype2/include/freetype/internal/services/*.h
freetype2/src/base/*.h
freetype2/src/base/*.c
freetype2/src/truetype/*.h
freetype2/src/truetype/*.c
freetype2/src/type1/*.h
freetype2/src/type1/*.c
freetype2/src/cff/*.h
freetype2/src/cff/*.c
freetype2/src/cid/*.h
freetype2/src/cid/*.c
freetype2/src/pfr/*.h
freetype2/src/pfr/*.c
freetype2/src/type42/*.h
freetype2/src/type42/*.c
freetype2/src/winfonts/*.h
freetype2/src/winfonts/*.c
freetype2/src/pcf/*.h
freetype2/src/pcf/*.c
freetype2/src/bdf/*.h
freetype2/src/bdf/*.c
freetype2/src/sfnt/*.h
freetype2/src/sfnt/*.c
freetype2/src/autofit/*.h
freetype2/src/autofit/*.c
freetype2/src/pshinter/*.h
freetype2/src/pshinter/*.c
freetype2/src/raster/*.h
freetype2/src/raster/*.c
freetype2/src/smooth/*.h
freetype2/src/smooth/*.c
freetype2/src/cache/*.h
freetype2/src/cache/*.c
freetype2/src/gzip/*.h
freetype2/src/gzip/*.c
freetype2/src/lzw/*.h
freetype2/src/lzw/*.c
freetype2/src/psaux/*.h
freetype2/src/psaux/*.c
freetype2/src/psnames/*.h
freetype2/src/psnames/*.c
Cabal-version: >=1.8
Flag examples
Description: Build example programs
Default: False
Executable freetype-example1
Main-is: Main.hs
Build-depends: base > 3 && < 5,
freetype2,
array
if flag(examples)
Buildable: True
else
Buildable: False
Library
-- Modules exported by the library.
Exposed-modules: Graphics.Rendering.FreeType.Internal
Graphics.Rendering.FreeType.Internal.BBox
Graphics.Rendering.FreeType.Internal.Bitmap
Graphics.Rendering.FreeType.Internal.BitmapGlyph
Graphics.Rendering.FreeType.Internal.BitmapSize
Graphics.Rendering.FreeType.Internal.CharMap
Graphics.Rendering.FreeType.Internal.Driver
Graphics.Rendering.FreeType.Internal.Face
Graphics.Rendering.FreeType.Internal.FaceType
Graphics.Rendering.FreeType.Internal.Generic
Graphics.Rendering.FreeType.Internal.Glyph
Graphics.Rendering.FreeType.Internal.GlyphMetrics
Graphics.Rendering.FreeType.Internal.GlyphSlot
Graphics.Rendering.FreeType.Internal.Library
Graphics.Rendering.FreeType.Internal.Matrix
Graphics.Rendering.FreeType.Internal.Memory
Graphics.Rendering.FreeType.Internal.Module
Graphics.Rendering.FreeType.Internal.OpenArgs
Graphics.Rendering.FreeType.Internal.Outline
Graphics.Rendering.FreeType.Internal.OutlineGlyph
Graphics.Rendering.FreeType.Internal.Parameter
Graphics.Rendering.FreeType.Internal.PrimitiveTypes
Graphics.Rendering.FreeType.Internal.RasterParams
Graphics.Rendering.FreeType.Internal.Renderer
Graphics.Rendering.FreeType.Internal.Size
Graphics.Rendering.FreeType.Internal.SizeMetrics
Graphics.Rendering.FreeType.Internal.SizeRequest
Graphics.Rendering.FreeType.Internal.Stream
Graphics.Rendering.FreeType.Internal.Span
Graphics.Rendering.FreeType.Internal.SubGlyph
Graphics.Rendering.FreeType.Internal.Vector
-- Packages needed in order to build this package.
Build-depends: base > 3 && < 5
-- Modules not exported by this package.
-- Other-modules:
-- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
Build-tools: hsc2hs
ghc-options: -Wall
include-dirs: freetype2/include
freetype2/include/freetype/config
freetype2/include/freetype
freetype2/src/base
freetype2/src/truetype
freetype2/src/type1
freetype2/src/cff
freetype2/src/cid
freetype2/src/pfr
freetype2/src/type42
freetype2/src/winfonts
freetype2/src/pcf
freetype2/src/bdf
freetype2/src/sfnt
freetype2/src/autofit
freetype2/src/pshinter
freetype2/src/raster
freetype2/src/smooth
freetype2/src/cache
freetype2/src/gzip
freetype2/src/lzw
freetype2/src/psaux
freetype2/src/psnames
cc-options: -DFT_CONFIG_CONFIG_H=<ftconfig.h>
-DFT2_BUILD_LIBRARY
-DFT_CONFIG_MODULES_H=<ftmodule.h>
-DDARWIN_NO_CARBON
c-sources: freetype2/src/base/ftsystem.c
freetype2/src/base/ftdebug.c
freetype2/src/base/ftinit.c
freetype2/src/base/ftbase.c
freetype2/src/base/ftbbox.c
freetype2/src/base/ftbdf.c
freetype2/src/base/ftbitmap.c
freetype2/src/base/ftcid.c
freetype2/src/base/ftfstype.c
freetype2/src/base/ftgasp.c
freetype2/src/base/ftglyph.c
freetype2/src/base/ftgxval.c
freetype2/src/base/ftlcdfil.c
freetype2/src/base/ftmm.c
freetype2/src/base/ftotval.c
freetype2/src/base/ftpatent.c
freetype2/src/base/ftpfr.c
freetype2/src/base/ftstroke.c
freetype2/src/base/ftsynth.c
freetype2/src/base/fttype1.c
freetype2/src/base/ftwinfnt.c
freetype2/src/base/ftxf86.c
freetype2/src/truetype/truetype.c
freetype2/src/type1/type1.c
freetype2/src/cff/cff.c
freetype2/src/cid/type1cid.c
freetype2/src/pfr/pfr.c
freetype2/src/type42/type42.c
freetype2/src/winfonts/winfnt.c
freetype2/src/pcf/pcf.c
freetype2/src/bdf/bdf.c
freetype2/src/sfnt/sfnt.c
freetype2/src/autofit/autofit.c
freetype2/src/pshinter/pshinter.c
freetype2/src/raster/raster.c
freetype2/src/smooth/smooth.c
freetype2/src/cache/ftcache.c
freetype2/src/gzip/ftgzip.c
freetype2/src/lzw/ftlzw.c
freetype2/src/psaux/psaux.c
freetype2/src/psnames/psmodule.c
source-repository head
type: git
location: git://github.com/dagit/freetype2.git