Commit graph

67 commits

Author SHA1 Message Date
Fred Kiefer
3a58a7e30b Add more missing imports.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30043 72102866-910b-0410-8b05-ffd578937521
2010-03-26 07:51:34 +00:00
Fred Kiefer
92fdccd8d3 Adjust to the CGFloat change for NSFont
and NSAffineTransform done in base and gui.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29689 72102866-910b-0410-8b05-ffd578937521
2010-02-20 16:33:30 +00:00
Fred Kiefer
99a4001565 Merge the two checks for xshm in XWindowBuffer.
Better check for unicode encoding in art fonts.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29410 72102866-910b-0410-8b05-ffd578937521
2010-01-26 09:21:01 +00:00
Fred Kiefer
af8b2e7883 Give more information on failed font face access.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27587 72102866-910b-0410-8b05-ffd578937521
2009-01-13 00:34:14 +00:00
Fred Kiefer
cf452fb2b4 Pure white space cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27507 72102866-910b-0410-8b05-ffd578937521
2009-01-04 15:56:09 +00:00
Fred Kiefer
2c01043f5d Correct the sign of the descender in the bounding box.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26760 72102866-910b-0410-8b05-ffd578937521
2008-07-12 08:02:37 +00:00
Adam Fedor
250ebdfad0 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26620 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:12:46 +00:00
Fred Kiefer
f2217879fb Backend support for appendBezierPathWithPackedGlyphs:.
Implementation of coveredCharacterSet on GSXftFontInfo.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26436 72102866-910b-0410-8b05-ffd578937521
2008-04-07 13:51:28 +00:00
Fred Kiefer
9e70cc09f7 Moved ligature handling code from art to gui. Small improvements for
other font classes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26431 72102866-910b-0410-8b05-ffd578937521
2008-04-04 22:07:03 +00:00
Fred Kiefer
0f8c5487c7 Change files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25538 72102866-910b-0410-8b05-ffd578937521
2007-10-29 23:25:10 +00:00
Fred Kiefer
0848c69b72 Extracted code shared between the two ftfont files into new files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25409 72102866-910b-0410-8b05-ffd578937521
2007-08-22 11:54:13 +00:00
Fred Kiefer
05a23a6aae Correct minor bugs in last changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25393 72102866-910b-0410-8b05-ffd578937521
2007-08-15 13:42:36 +00:00
Fred Kiefer
0dd2da6751 Correct coveredCharacterSet. Patch by Yen-Ju Chen <yjchenx@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25387 72102866-910b-0410-8b05-ffd578937521
2007-08-13 16:08:22 +00:00
Fred Kiefer
87c48de8b4 Use local FT_Size variable instead of ivar. The ivar is sometimes
invalid.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25381 72102866-910b-0410-8b05-ffd578937521
2007-08-07 16:04:47 +00:00
Fred Kiefer
78ba818f54 Clean up of font attributes and better protection against _ct being null
in cairo backend.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24710 72102866-910b-0410-8b05-ffd578937521
2007-02-27 16:35:31 +00:00
Richard Frith-MacDonald
b11db22054 Minor tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24444 72102866-910b-0410-8b05-ffd578937521
2007-01-31 15:52:53 +00:00
Matt Rice
c4be026e77 * Source/art/ftfont.m (appendBezierPathWithGlyphs:count:toPath:):
Uncomment code and switch to using FTC_Manager_LookupSize.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24163 72102866-910b-0410-8b05-ffd578937521
2006-11-25 21:45:06 +00:00
Richard Frith-MacDonald
4bd0a9f1b5 Use accessor for affine transform internals which should otherwise be private.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24131 72102866-910b-0410-8b05-ffd578937521
2006-11-19 11:08:09 +00:00
Richard Frith-MacDonald
940a0eabbe Avoid spurious warnings produced by gcc-4.1
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23127 72102866-910b-0410-8b05-ffd578937521
2006-07-04 21:54:48 +00:00
Richard Frith-Macdonald
08c5a3d3d0 Coding style fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@22020 72102866-910b-0410-8b05-ffd578937521
2005-11-16 11:40:31 +00:00
Adrian Robert
eb8bbe29b1 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
Adrian Robert
4e5fe7c3ac 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
Alexander Malmberg
82ca6dd14a 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
Alexander Malmberg
38d76b4b31 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
Alexander Malmberg
24aee0f8b2 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
Alexander Malmberg
cea9c4050e * 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
Alexander Malmberg
d68191c313 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
Alexander Malmberg
88ebd73c93 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
Alexander Malmberg
8086d127a6 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
Alexander Malmberg
31a3037fcb 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
Alexander Malmberg
957a0e4d76 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
David Ayers
98036d3302 * 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
Alexander Malmberg
253eae545e 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
Alexander Malmberg
c28d082604 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
Alexander Malmberg
5e9f36d111 (-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
Alexander Malmberg
9c3ad84a95 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
Alexander Malmberg
c4122018aa 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
Alexander Malmberg
419f8c9e8c 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
Alexander Malmberg
c768a703c1 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
Alexander Malmberg
dc0673ffca 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
Alexander Malmberg
1a6c3e6734 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
Alexander Malmberg
684b8ddf3b 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
Alexander Malmberg
084a2548bd 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
Alexander Malmberg
ebef30d1cc 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
Alexander Malmberg
4e22694c3a 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
Alexander Malmberg
7af0ef7962 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
Alexander Malmberg
946dbb2ec6 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
Alexander Malmberg
f33fd16470 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
Alexander Malmberg
88fcf8d080 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
Alexander Malmberg
1e9d556988 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