Commit graph

47 commits

Author SHA1 Message Date
arobert
4d4004fe5b initialize deltas index in drawString method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21639 72102866-910b-0410-8b05-ffd578937521
2005-08-16 04:02:50 +00:00
arobert
f1130822b2 update impl for DPSshow to handle xshow, yshow, xyshow, ashow, widthshow, and awidthshow
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20989 72102866-910b-0410-8b05-ffd578937521
2005-03-29 05:54:36 +00:00
alexm
a24843e653 2005-01-21 21:51 Alexander Malmberg <alexander@malmberg.org>
Various warning and whitespace cleanups.

	* Headers/x11/XGServerWindow.h,
 	* Source/art/ftfont.m,
	* Source/gsc/GSGState.m,
	* Source/win32/WIN32Server.m,
	* Source/x11/XGDragView.m,
	* Source/x11/XGServerEvent.m,
	* Source/x11/XGServerWindow.m: Change signedness of various
	variables.
	* Tools/gpbs.m: Add missing ctype.h include.
	* Source/x11/XGDrawView.m (-_setCursor): Initialize variables.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20591 72102866-910b-0410-8b05-ffd578937521
2005-01-21 20:49:29 +00:00
alexm
50802a9e46 2005-01-11 16:01 Alexander Malmberg <alexander@malmberg.org>
* Source/art/ftfont.m: Copy old contents to ftfont-old.m and
	include that file if the freetype version is <2.1.8. Rewrite
	this file to work with freetype >=2.1.8.
	* Source/art/ftfont-old.m: New file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20534 72102866-910b-0410-8b05-ffd578937521
2005-01-11 15:02:29 +00:00
alexm
32f5af3e08 2004-11-09 23:15 Alexander Malmberg <alexander@malmberg.org>
* Source/art/ftfont.m (fix_path): Don't prepend the path to absolute
	file names.
	(-initWithFontName:matrix:screenFont:): Initialize cachedGlyph.
	(-advancementForGlyph:): Handle NSNullGlyph.
	(-glyphForCharacter:): Return NSNullGlyph if there's no glyph for
	the character.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20331 72102866-910b-0410-8b05-ffd578937521
2004-11-09 21:22:36 +00:00
alexm
1e0a950071 * Source/art/ftfont.m: Add lineHeight ivar to FTFontInfo.
(+defaultLineHeightForFont): Implement.
	(-initWithFontName:matrix:screenFont:): Set lineHeight.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20101 72102866-910b-0410-8b05-ffd578937521
2004-09-21 17:26:00 +00:00
alexm
c604a4c1c5 Check properly for control glyphs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@19301 72102866-910b-0410-8b05-ffd578937521
2004-05-13 15:14:46 +00:00
alexm
804c008bce Handle text drawing in windows with alpha buffers properly. Try to find good visuals before resorting to the default visual.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@18721 72102866-910b-0410-8b05-ffd578937521
2004-02-29 20:45:05 +00:00
alexm
938204efd6 Use freetype's LCD subpixel code instead of scaling manually if the freetype used is sufficiently new.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@18192 72102866-910b-0410-8b05-ffd578937521
2003-11-25 11:13:38 +00:00
alexm
aa89743347 Optimize -advancementForGlyph:. Cleanups.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@18090 72102866-910b-0410-8b05-ffd578937521
2003-11-18 16:07:58 +00:00
alexm
790392d9a0 Override the new default font name methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17468 72102866-910b-0410-8b05-ffd578937521
2003-08-10 21:31:12 +00:00
ayers
52d97e1721 * Source/art/GNUmakefile: Do not make headers publilc.
* Source/gsc/GNUmakefile: Ditto.
        * Source/x11/GNUmakefile: Ditto.
        * Source/xdps/GNUmakefile: Ditto.
        * Source/xlib/GNUmakefile: Ditto.

        * Headers/win32/*.h: Update includes for new header structure.
        * Headers/winlib/*.h: Ditto.
        * Headers/x11/XGServer.h: Ditto.
        * Headers/xlib/*.h: Ditto.

        * Source/art/ftfont.m: Ditto.
        * Source/gsc/*.m: Ditto.
        * Source/x11/*.m: Ditto.
        * Source/xdps/*.m: Ditto.
        * Source/xlib/*.m: Ditto.

        * Tools/gpbs.m: Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17409 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:57:11 +00:00
alexm
72f0667d70 Handle freetype <=2.1.2 in the error reporting.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17127 72102866-910b-0410-8b05-ffd578937521
2003-07-05 12:06:01 +00:00
alexm
3a355a1a08 Give more information when reporting FTC_SBitCache_Lookup() errors.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17091 72102866-910b-0410-8b05-ffd578937521
2003-07-03 20:04:55 +00:00
alexm
fc9103455e (-initWithFontName:matrix:screenFont:): Return nil if it's not a valid font.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17088 72102866-910b-0410-8b05-ffd578937521
2003-07-02 15:38:35 +00:00
alexm
dfab43650f Use the right flags when loading glyphs for freetype >=2.1.3. Anti-alias by default if GSFontAntiAlias isn't set.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17083 72102866-910b-0410-8b05-ffd578937521
2003-07-01 14:39:34 +00:00
alexm
bcc6466b77 Make handling of non-integer sized screen fonts consistent.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17066 72102866-910b-0410-8b05-ffd578937521
2003-06-29 15:36:28 +00:00
alexm
9a87aa2b4f Make nfont face name localization work. Add English and Swedish translations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17061 72102866-910b-0410-8b05-ffd578937521
2003-06-28 13:32:59 +00:00
alexm
3dcbab980d Add (experimental) handling of utf16 to glyph generation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17033 72102866-910b-0410-8b05-ffd578937521
2003-06-25 22:35:34 +00:00
alexm
4680d7148c Minor cleanups.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16950 72102866-910b-0410-8b05-ffd578937521
2003-06-17 18:08:59 +00:00
alexm
65d6c4e9c8 Handle freetype v2.0.* correctly in the freetype version check.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16909 72102866-910b-0410-8b05-ffd578937521
2003-06-12 19:45:02 +00:00
alexm
8706bc6022 Implement -glyphWithName: and -appendBezierPathWithGlyphs:count:toBezierPath:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16902 72102866-910b-0410-8b05-ffd578937521
2003-06-11 13:33:34 +00:00
alexm
acde9c418f Get it to compile with freetype <=2.1.2 and >=2.1.3.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16883 72102866-910b-0410-8b05-ffd578937521
2003-06-07 21:06:19 +00:00
alexm
f83a3270da Report errors in more cases.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16698 72102866-910b-0410-8b05-ffd578937521
2003-05-11 17:23:43 +00:00
alexm
9abc0be347 Implement text rendering to buffers with destination alpha. Change the subpixel rendering to override the glyph operator.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16288 72102866-910b-0410-8b05-ffd578937521
2003-03-29 18:16:40 +00:00
alexm
90192784a0 Remap glyph numbers from freetype so NSNullGlyph is never used.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16121 72102866-910b-0410-8b05-ffd578937521
2003-03-03 19:06:55 +00:00
alexm
9be730bc7e Implement -glyphIsEncoded:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15927 72102866-910b-0410-8b05-ffd578937521
2003-02-10 17:46:06 +00:00
alexm
4f37faea45 Add experimental -nameOfGlyph: method to try to get printing to work.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15905 72102866-910b-0410-8b05-ffd578937521
2003-02-08 20:12:25 +00:00
alexm
c0f06772ba Use better guess for x-height value.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15859 72102866-910b-0410-8b05-ffd578937521
2003-02-02 21:05:32 +00:00
alexm
2701bf19b6 Implement handling of text attachment characters.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15827 72102866-910b-0410-8b05-ffd578937521
2003-01-31 21:36:00 +00:00
alexm
591a550f38 Clean up includes. Fix handling of screen fonts for flipped fonts.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15741 72102866-910b-0410-8b05-ffd578937521
2003-01-27 17:14:10 +00:00
alexm
e94597a41b Merge in text-system-branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15716 72102866-910b-0410-8b05-ffd578937521
2003-01-26 19:07:53 +00:00
alexm
31cc43ff10 Use [fi class] instead of fi->isa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14603 72102866-910b-0410-8b05-ffd578937521
2002-09-29 10:25:42 +00:00
alexm
0765075555 Add .font package handling again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14599 72102866-910b-0410-8b05-ffd578937521
2002-09-28 20:04:55 +00:00
alexm
71d710f9d2 Add support for the 'Family' key.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14596 72102866-910b-0410-8b05-ffd578937521
2002-09-28 15:31:42 +00:00
alexm
523a65d977 Implement handling of 'ScreenFonts'.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14583 72102866-910b-0410-8b05-ffd578937521
2002-09-26 14:08:55 +00:00
alexm
c3cfe1811a Rework font configuration to handle the updated (and rather different) .nfont package format.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14556 72102866-910b-0410-8b05-ffd578937521
2002-09-25 20:42:33 +00:00
alexm
865364a6da Use GSFontAntiAlias to decide whether antialiasing should be enabled in the default rendering hints.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14537 72102866-910b-0410-8b05-ffd578937521
2002-09-24 12:39:53 +00:00
alexm
3ccdce3009 Retain familyName correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14525 72102866-910b-0410-8b05-ffd578937521
2002-09-23 17:32:04 +00:00
alexm
266fe524b8 Change default rendering hints.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14461 72102866-910b-0410-8b05-ffd578937521
2002-09-16 14:44:23 +00:00
alexm
ee9a01a1fb Keep track of the family name so FTFontInfo can return it correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14440 72102866-910b-0410-8b05-ffd578937521
2002-09-14 11:39:51 +00:00
alexm
0b490cf961 Add support for some simple rendering hints.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14438 72102866-910b-0410-8b05-ffd578937521
2002-09-14 11:03:41 +00:00
alexm
b9202c2dcd Make the filters used in subpixel rendering configurable.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14358 72102866-910b-0410-8b05-ffd578937521
2002-08-28 11:31:58 +00:00
alexm
414ae4a9eb Fix copyright notices.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14344 72102866-910b-0410-8b05-ffd578937521
2002-08-27 10:11:20 +00:00
alexm
086a2d27e9 Add experimental subpixel text renderer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14343 72102866-910b-0410-8b05-ffd578937521
2002-08-27 09:59:22 +00:00
alexm
ba626c7954 Reformat to better fit the coding standard.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14313 72102866-910b-0410-8b05-ffd578937521
2002-08-21 13:02:26 +00:00
alexm
024087627d Add back-art.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14304 72102866-910b-0410-8b05-ffd578937521
2002-08-20 16:36:09 +00:00