Commit Graph

68 Commits

Author SHA1 Message Date
David Turner 3475e7fba3 removed TT_MAX_SUBGLYPHS macro, there is no static
limit on the number of subglyphs in a TrueType font..

changed the default number of gray levels used by the
smooth renderer to 256 (instead of 128). Of course, the
human eye can't tell a difference ;-)
2000-05-17 20:56:01 +00:00
David Turner e49ab25c08 formatting - removed trailing spaces 2000-05-16 23:44:38 +00:00
David Turner 968f0c3749 update 2000-05-16 23:26:01 +00:00
David Turner 33aab6e5b6 removed obsolete files + update 2000-05-16 22:36:55 +00:00
David Turner c91cfe1100 small update to the memory tester 2000-05-12 15:51:42 +00:00
David Turner c06eb3b73a fixed stupid math lib bug in the Makefile 2000-05-12 15:10:21 +00:00
David Turner c30aea9846 another massive changes in order to completely avoid
compiler warnings with GCC + "-ansi -pedantic -Wall -W"
and LCC.

Also fixed the compilation of "type1z" with Win32-LCC
(its pre-processor is broken !!)

Updated the BUILD document too
2000-05-12 15:01:18 +00:00
David Turner bfe2f98f1f a new massive grunt work. Redefined the EXPORT_DEF,
EXPORT_FUNC, BASE_DEF and BASE_FUNC macros to
let them take an argument..

This is needed to compile the library as a DLL on some platforms
that have different compiler conventions..
2000-05-12 12:17:15 +00:00
David Turner efce08d67c major re-organisation of the FreeType 2 directory hierarchy 2000-05-11 18:23:52 +00:00
David Turner 08c3875589 at last, the bug seems to be solved. Now, the source code
should be cleaned up, and we'll be done with the raster :o)
2000-05-04 16:36:34 +00:00
David Turner 4fce93e0cb still working on that damn rasterizer bug !! ;-) 2000-05-03 18:15:40 +00:00
David Turner 112be4c609 "ftrast.c" now works for monochrome bitmaps, and doesn't
produce the artefacts of the current "ftraster.c"..

I'll change it soon to handle optimised 5-levels anti-aliasing
(backwards compatibility) in order to completely replace
"ftraster.c"
2000-05-03 10:37:37 +00:00
David Turner d186a361a1 various updates to reduce the compilation warnings 2000-05-02 17:41:41 +00:00
David Turner d89489210a ftrast.c 2000-05-02 13:29:29 +00:00
David Turner eede9015a0 removed the smooth renderer from the demos directory 2000-05-02 11:03:13 +00:00
David Turner c5b993245e updates needed to compile the source programs now that
the smooth renderer is part of the library..
2000-05-02 11:02:35 +00:00
Werner Lemberg 7ae268a207 Fixed a compiler warning. 2000-04-10 22:50:40 +00:00
Werner Lemberg 69e010fdea Removed compiler warnings. 2000-04-10 22:50:20 +00:00
Werner Lemberg 32a53b2239 Adding LDFLAGS. I don't know yet a good solution (within GNU make) to
test whether -lm is needed or not...  It's time to use autoconf!


    Werner
2000-04-10 12:14:39 +00:00
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