Commit Graph

49 Commits

Author SHA1 Message Date
Werner Lemberg
c83bfdd56d Adding string.h 2000-04-10 12:13:40 +00:00
David Turner
ea10fbf91f Consider the smooth renderer completed ! It will probably
be moved to "freetype2/src/base" soon and become part
of the library.

changes include:

  - fixed a bug which prevented large spans being drawn correctly.
  - now renders large glyphs that overflow the render pool.
  - various performance enhancements. the renderer now
    renders large glyphs with much greater  speed :-)
  - also faster with small glyphs ..

future plans:
  - fix a vertical-dropout bug in the standard raster (b&w)
  - write a demonstration program to demonstrate direct
    composition..
2000-04-04 13:17:04 +00:00
David Turner
69473e4efc fixed the display on 24-bit and 32-bit displays 2000-03-28 16:40:51 +00:00
David Turner
37379e2170 major changes to the library:
- there is now a "convenience" API to manage glyphs in
   "include/ftglyph.h". See the demo program "ftstring" for
   an example..

  - the raster interface has been changed in order to allow
    direct composition through user-provided callbacks. This
    has been tested but isn't demonstrated for now in "demos"

 - the FT_LOAD_NO_RECURSE flag is supported, as this is
   required by some new code in the auto-hinting engine

 - some bug fixed in FT_MulFix which made FT_xxx_Transform
   return incorrect results..
2000-03-28 11:22:31 +00:00
David Turner
b5c1a4e567 a new program to demonstrate the new convenience glyph
API (see include/ftglyph.h).

Supports kerning, rotation, sub-pixel rendering..
Could be easily modified to reach the level of strtto when
we have the relevant OpenType module handy..
2000-03-28 11:15:37 +00:00
David Turner
6b0149b826 a new simple program to display composite glyphs in a given
font. Used during auto-hinting research
2000-03-28 11:14:24 +00:00
Just van Rossum
f8bc2d3ca6 use escapes instead of 8-bit in the Text constant: the 8-bit version got mangled by maccvs... 2000-03-17 13:15:38 +00:00
David Turner
137c88880d updated the "smooth" anti-aliaser. By increasing the number
of segments used to decompose a bezier curve, we get rid
of the "fuzz-fuzz" factor.

it's also faster than the standard renderer after tweaking.
Note that it isn't completed yet..
2000-03-17 12:47:49 +00:00
Just van Rossum
fbf3ce2890 updated project files 2000-03-17 11:53:52 +00:00
David Turner
1d85a73d1a Added a new version of the "smooth". This one uses
an algorithm that is very close to our standard raster.

However, it is (theorically for now) capable of direct
composition !!
2000-03-17 10:15:20 +00:00
David Turner
7e68ad481f fix to compile with latest FreeType 2 2000-03-17 10:14:22 +00:00
David Turner
16afbe2d5f update 2000-03-17 10:13:52 +00:00
David Turner
7f615aef5e renamed all outlines functions to the
FT_Outline_<action> syntax..
2000-03-13 11:49:20 +00:00
David Turner
41dbcbf628 reformatting, changing the FT_Outline structure:
- "flags" have been renamed to "tags"
  - "outline_flags" have been renamed to "flags"

Look for more re-formatting today..
2000-03-09 11:46:25 +00:00
David Turner
291afa0992 added the new "smooth" anti-aliaser
(see the file "demos/src/ftgrays.c"),

and modified "ftview" and "fttimer" to use it..

Note that this thing is still under heavy beta..
2000-03-08 14:14:55 +00:00
David Turner
0f99ddda5f changed the structure of FT_Outline in order to pack
all outline flags in a single integer..

Changed the rest of the library and demo programs
accordingly..
2000-03-06 13:23:32 +00:00
Just van Rossum
1eabbcb453 properly behave in case the console window became active 2000-03-05 16:09:21 +00:00
Werner Lemberg
febe3fbeba A first check of FT2's Make system. Many smaller and larger bugs have been
fixed:

. Removing unused variables.

. detect.mk files now must provide $(CONFIG_FILE) and not $(CONFIG_RULE).

. ansi.mk will now be really used as a fallback if the detect mechanism
  fails.

. ANSIFLAGS will now be really used (fixing a typo).

. `make clean' now works (again two typos).

. Detection of gcc on Unix has been fixed (using the `-v' option instead of
  `--version').

. `make devel' now works (on Unix).

. Fixing *again* a bug in demos/graph/x11/rules.mk to allow multiple use
  of `-L' compiler options.

. $(BASE_H) now contains a few more header files.

As usual, a lot of formatting (not finished yet).
2000-03-05 01:14:19 +00:00
Just van Rossum
858fd5f7f1 Mac demo support stuff. 2000-03-02 01:38:53 +00:00
Just van Rossum
829fbf194e Mac backend for the graphics subsystem. 2000-03-02 01:18:38 +00:00
Just van Rossum
f21dac0209 Don't #include <memory.h> but #include <string.h> to avoid header clash under MacOS. I don't think this affects other platforms. 2000-03-02 01:17:50 +00:00
Just van Rossum
c3b680942c MacOS: include grmac.h
(+ fixed typo in comment)
2000-03-02 01:16:33 +00:00
Just van Rossum
3d76a9fbbe added cast to the string literal for Text to shut up my compiler. (btw. this literal contains non 7-bit characters!)
if compiled for MacOS
- use the Mac path separator to get the base file name
- don't append .ttf if no dot in the file name
2000-03-02 01:15:37 +00:00
Just van Rossum
2a4f206f5f if compiled for MacOS
- use the Mac path separator to get the base file name
- don't append .ttf if no dot in the file name
(plus small typo fix and error message enhancement)
2000-03-02 01:11:17 +00:00
Just van Rossum
6f9a72d54e ft_basename(): if compiled for MacOS, use the Mac path separator 2000-03-02 01:09:28 +00:00
David Turner
d275435a4f simple change to compile with the latest FT2 source
changes
2000-03-01 13:23:41 +00:00
David Turner
587bc78f86 the Win32 seems to be fixed and working now 2000-02-28 15:13:08 +00:00
David Turner
63cb46dd1a simple fixes 2000-02-22 13:34:26 +00:00
David Turner
d60389be36 formatting 2000-02-21 17:46:24 +00:00
David Turner
a1b60580a2 small fix, PageUp/PageDown now work
Alt-F4 doesn't work anymore (needs more
changes :-)
2000-02-21 17:45:15 +00:00
David Turner
b2a21e5170 minor change, for benchmark comparison 2000-02-21 16:18:43 +00:00
David Turner
fbff3e8fc7 added a memory checking test program, used to
solve the memory leak reported by Jack Davis
2000-02-21 16:18:25 +00:00
David Turner
c64f644264 simple update to allow several rendering modes
(useful for testing the Unicode charmaps)
2000-02-21 16:18:01 +00:00
David Turner
1e7f843261 simple fix 2000-02-21 16:17:36 +00:00
David Turner
9e416a875f small fix in rules 2000-02-02 12:49:14 +00:00
David Turner
d00a8ce6f2 some updates. The yesterday modifications prevented the demo
programs from compiling under Unix. fixed..
2000-01-18 09:52:08 +00:00
Werner Lemberg
9d61e46855 Fixed rule with wildcard. 2000-01-18 02:07:04 +00:00
David Turner
5ce5884d59 some small updates that are useful to debug
graphics drivers and the library..
2000-01-17 11:08:11 +00:00
David Turner
1631d04827 moved the graphics drivers to "demos/graph/*" 2000-01-17 11:06:27 +00:00
David Turner
cb58dbb4fb Some important changes were performed :
- the graphics drivers were moved from "demos/config/*" to
  "demos/graph/*"

- a Win32 graphics driver was added. (note that keyboard
  management is a bit buggy, but it's really usable).

- the "demos/Makefile" and "demos/graph/rules.mk" were
  seriously modified

- the demo programs now compile AND run with gcc,
  Visual C++ and LCC-Win32 !! The other ones should be
  really easy to add now, as LCC was the really smart ass
  in this list...
2000-01-17 11:04:55 +00:00
David Turner
14954e6bc2 Some major improvements were required to the Makefile to:
- compile the demonstration programs in any directory, by
  using the "TOP" and "CONFIG_MK" environment variables

- the graphics drivers have moved from "demos/config/*" to
  "demos/graph/*"

- brain-dead compilers like LCC-Win32 required some
  changes in the way executables are linked
2000-01-17 10:56:16 +00:00
Werner Lemberg
7dff772e59 Added ftraster.h for better support of standalone mode.
Fixed cleaning rules for the demo programs.
2000-01-17 08:24:22 +00:00
David Turner
f6356ab713 some changes used to debug the new raster and the OS/2
graphics driver
2000-01-14 15:38:30 +00:00
David Turner
6bc8b1f07d bugfixes to the OS/2 graphics driver. It now works !! 2000-01-14 15:36:55 +00:00
Werner Lemberg
a00b6e690f Fixing Makefile rules. 2000-01-13 15:35:02 +00:00
Werner Lemberg
f993b6a033 demos/config/x11/rules.mk:
support for multiple X11R6 entries in $(PATH) added.

ftxbbox.c, ftcalc.c, ftdebug.c, ftdriver.h:
  doc fixes.

ftdebug.c:
  formatting.

ftdebug.h:
  making makros `;'-safe (i.e., they can now be used within if-else clauses
  without side effects resp. don't produce a single `;').
2000-01-08 17:10:33 +00:00
David Turner
edfc0f8ac4 changed rules to build demos on Solaris 2000-01-07 14:37:24 +00:00
David Turner
c6cda4a74e added 'demos/bin' to the repository 1999-12-18 19:05:00 +00:00
David Turner
d2b1f35704 Initial revision 1999-12-16 23:11:37 +00:00