Commit graph

39 commits

Author SHA1 Message Date
Fred Kiefer
20feeb7212 * Source/GSFontInfo.m (-fontDescriptor): Simplify creation of font
descriptor. Use only the minimal attributes.
	* Source/NSFontDescriptor.m (-postscriptName): Generate PS name
	from font name itself.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40092 72102866-910b-0410-8b05-ffd578937521
2016-09-19 20:53:34 +00:00
Fred Kiefer
bbac2bf53c * Source/NSAttributedString.m (-_substituteFontFor:font:): Use
font descriptors for faster replacement font detection.
        * Source/GSFontInfo.m
        (GSFontEnumerator-matchingFontDescriptorsFor:): Special handling
        for NSFontCharacterSetAttribute.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39079 72102866-910b-0410-8b05-ffd578937521
2015-10-17 19:49:15 +00:00
Fred Kiefer
3a81ad3b3b dopt to the fact that NSAffineTransform now uses a matrix of CGFloats.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29688 72102866-910b-0410-8b05-ffd578937521
2010-02-20 16:30:27 +00:00
Fred Kiefer
ec138f065f Two small changes that should make Emacs 23.1 usable with GNUstep.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28643 72102866-910b-0410-8b05-ffd578937521
2009-09-08 22:10:56 +00:00
Fred Kiefer
56d4f7938d Add better support for font descriptor. Requires a recompile of the backend.
This should be enough for Emacs to compile with GNUstep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28525 72102866-910b-0410-8b05-ffd578937521
2009-08-23 21:39:28 +00:00
Adam Fedor
7afdd32ac1 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26619 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:01:49 +00:00
Fred Kiefer
14176f6a78 New NSFont method for glyph generation.
Ligature and decompose handling in gsLayoutManager, moved here from the
art backend.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26430 72102866-910b-0410-8b05-ffd578937521
2008-04-04 22:01:44 +00:00
Fred Kiefer
c0a656abd0 Avoid compiler warnings on Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25985 72102866-910b-0410-8b05-ffd578937521
2008-01-19 21:48:37 +00:00
Fred Kiefer
193e31e678 Change all files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25536 72102866-910b-0410-8b05-ffd578937521
2007-10-29 21:16:17 +00:00
Richard Frith-MacDonald
5dcabf4505 Add stubs for more font info.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24443 72102866-910b-0410-8b05-ffd578937521
2007-01-31 14:36:42 +00:00
Adam Fedor
303dd1baf9 Update FSF Address.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21259 72102866-910b-0410-8b05-ffd578937521
2005-05-26 02:52:46 +00:00
Alexander Malmberg
811ae4cf9f * Source/GSFontInfo.m (-defaultLineHeightForFont): Adjust line
height calculation.
	* Source/NSButtonCell.m (-drawInteriorWithFrame:inView:): Always
	initialize imageRect and titleRect. Adjust the calculations to match
	the new line height.
	(-cellSize): Always initialize imageRect and titleRect.
	* Headers/AppKit/NSCell.h (-_drawImage:inFrame:isFlipped:): Remove.
	* Source/NSCell.m (-_drawImage:inFrame:isFlipped:): Remove. Move code
	back ...
	(-drawInteriorWithFrame:inView:): ... here.
	* Source/NSToolbarItem.m (+initialize): Remove.
	(+cellClass): Add.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20100 72102866-910b-0410-8b05-ffd578937521
2004-09-21 16:55:43 +00:00
Alexander Malmberg
0ab3be5eb5 Don't do initialization that requires the shared application object/backend too early (ie. move it from +initialize to other methods). Add some asserts to try to catch these errors in the future.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17503 72102866-910b-0410-8b05-ffd578937521
2003-08-20 12:43:52 +00:00
Alexander Malmberg
4cb2493b3c Add new methods for getting the default defaults for fonts.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17467 72102866-910b-0410-8b05-ffd578937521
2003-08-10 21:30:49 +00:00
David Ayers
b18f1c4ac4 Header reorganization - Please refer to ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17408 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:52:10 +00:00
Adam Fedor
6be9174933 Include <> -> ""
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16917 72102866-910b-0410-8b05-ffd578937521
2003-06-13 15:01:12 +00:00
Alexander Malmberg
a55cd8adda Add [GSFontInfo -appendBezierPathWithGlyphs:count:toBezierPath:] and use it to implement NSBezierPath's glyph methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16903 72102866-910b-0410-8b05-ffd578937521
2003-06-11 13:36:59 +00:00
Fred Kiefer
d945e6d792 Removed creation of fontDictionary from [init] method. This now
gets done on demand in [afmDictionary].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16559 72102866-910b-0410-8b05-ffd578937521
2003-04-27 15:44:56 +00:00
Alexander Malmberg
e06aff244d Improve calculation of line height and baseline.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15907 72102866-910b-0410-8b05-ffd578937521
2003-02-08 21:56:33 +00:00
Alexander Malmberg
9407b0bfca Merge in text-system-branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15718 72102866-910b-0410-8b05-ffd578937521
2003-01-26 19:21:40 +00:00
Adam Fedor
ccd4853629 Remove encodingForRegistry:encoding:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14832 72102866-910b-0410-8b05-ffd578937521
2002-10-22 03:24:48 +00:00
Adam Fedor
1323d17420 Add Quartz-like interface. Fix focus problems.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14678 72102866-910b-0410-8b05-ffd578937521
2002-10-09 02:47:40 +00:00
Richard Frith-Macdonald
a5b46e92b7 Fix caching.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14588 72102866-910b-0410-8b05-ffd578937521
2002-09-27 08:52:04 +00:00
Adam Fedor
6af0d271a6 For resize, get new fram origin in event location field
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13160 72102866-910b-0410-8b05-ffd578937521
2002-03-19 20:10:26 +00:00
Pierre-Yves Rivaille
927b233997 [GSFontInfo -defaultLineHeightForFont]: descender is substracted not
added to ascender to give the lineHeight


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12474 72102866-910b-0410-8b05-ffd578937521
2002-02-09 16:16:00 +00:00
Fred Kiefer
f2816c29d7 Changed GSFontEnumerator so that only [enumerateFontsAndFamilies]
must be subclassed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11377 72102866-910b-0410-8b05-ffd578937521
2001-11-12 16:43:20 +00:00
Nicola Pero
281cfbd030 Updated encoding names for change in the base library names
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9347 72102866-910b-0410-8b05-ffd578937521
2001-03-13 20:42:10 +00:00
Nicola Pero
b6038bc341 Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8481 72102866-910b-0410-8b05-ffd578937521
2001-01-07 00:46:12 +00:00
Fred Kiefer
ded1b5c698 [encodingForRegistry:encoding:] added more encodings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7491 72102866-910b-0410-8b05-ffd578937521
2000-09-12 23:15:51 +00:00
Fred Kiefer
dd5e607d3e [weightForString:] added "black"
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7363 72102866-910b-0410-8b05-ffd578937521
2000-09-03 21:01:32 +00:00
Fred Kiefer
6792f04451 Added missing RETAINs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7346 72102866-910b-0410-8b05-ffd578937521
2000-09-02 17:09:50 +00:00
Fred Kiefer
8710ccdd21 Added class methods [weightForString:], [stringForWeight:] and
[encodingForRegistry:encoding:] to be used in subclasses.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7338 72102866-910b-0410-8b05-ffd578937521
2000-09-02 01:52:18 +00:00
Fred Kiefer
6320b89750 Removed method -widths. Changed [weigth],
[mostCompatibleStringEncoding] and [traits] to return the ivars.
Set those in [init] to the default values.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7306 72102866-910b-0410-8b05-ffd578937521
2000-08-31 00:06:49 +00:00
Adam Fedor
b5e2260020 mutableCopy method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6727 72102866-910b-0410-8b05-ffd578937521
2000-06-19 15:21:02 +00:00
Fred Kiefer
759fc08ad9 Very basic implementation of glyph layout methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6661 72102866-910b-0410-8b05-ffd578937521
2000-06-11 00:32:28 +00:00
Adam Fedor
2bda7b65bd allFonts returns GSFontInfo objects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6425 72102866-910b-0410-8b05-ffd578937521
2000-04-06 14:31:08 +00:00
Adam Fedor
e0cf43097e copyWithZone fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6411 72102866-910b-0410-8b05-ffd578937521
2000-04-03 03:14:45 +00:00
Adam Fedor
aef56c9336 Better copying
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6406 72102866-910b-0410-8b05-ffd578937521
2000-03-31 22:54:44 +00:00
Adam Fedor
db09827113 Use GSFont classes in place of backend poseAs classes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6390 72102866-910b-0410-8b05-ffd578937521
2000-03-27 18:28:51 +00:00