Commit Graph
18 Commits
Author SHA1 Message Date
Sebastien Pouliot 1c960ecf44 2006-05-30 Sebastien Pouliot <[email protected]>
* FontCollection.cs: Avoid calling GdipGetFontCollectionFamilyList 
	when GdipGetFontCollectionFamilyCount returns a count of 0 items.


svn path=/trunk/mcs/; revision=61275
2006-05-30 18:53:38 +00:00
Sebastien Pouliot f4215ab777 2006-04-13 Sebastien Pouliot <[email protected]>
* FontCollection.cs: Remove unused ctor. Throw on disposed (private)
	collections. Don't dispose (but leak) under non-Windows OS.
	* InstalledFontCollection.cs: Remove unused ctor.
	* PrivateFontCollection.cs: Remove unused ctor. Fix exceptions to 
	match unit tests.


svn path=/trunk/mcs/; revision=59448
2006-04-13 14:11:16 +00:00
Peter Dennis Bartok b6f8f55392 2006-03-23 Peter Dennis Bartok <[email protected]>
* FontCollection.cs (Dispose): When on Linux/Unix, call 
	  GdipDeletePrivateFontCollection to free up the font collection (even
	  though it's not private, we'd be leaking otherwise. Don't try this
	  with Microsoft's GDI+ on Win32, though.)


svn path=/trunk/mcs/; revision=58381
2006-03-23 20:11:49 +00:00
Peter Dennis Bartok 34cde6d4d8 2006-03-23 Peter Dennis Bartok <[email protected]>
* gdipFunctions.cs: 
	  - GdipGetFontCollectionFamilyList: No need for complicated 
	    GlobalAlloc stuff, .Net marshals the IntPtr[] array just fine
	  - GdipDeletePrivateFontCollection: We need to pass a ref to the
	    structure. This was causing nasty crashes.
	  - GdipGetFamilyName: Switched to use StringBuilder instead of
	    manual marshalling
	* FontFamily.cs: Simplified the refreshName method, less error-prone now

2006-03-23  Peter Dennis Bartok  <[email protected]>

	* FontCollection.cs (get_Families): Now letting the runtime do the
	  marshalling work for us. Easier to maintain and cleaner code.
	* PrivateFontCollection.cs:
	  - AddFontFile: Fixed weird english in error message
	  - Dispose: Need to pass ref to the native object, we were crashing
	    badly


svn path=/trunk/mcs/; revision=58338
2006-03-23 07:34:16 +00:00
Peter Dennis Bartok e4ea207cc3 2006-02-09 Peter Dennis Bartok <[email protected]>
* ChangeLog: Created, contents from deleted 'changelog' file
	* FontCollection.cs: Cleaned up marshalling and made 64bit safe


svn path=/trunk/mcs/; revision=56737
2006-02-09 23:56:45 +00:00
Jordi Mas i Hernandez a8c71be125 2005-04-04 Jordi Mas i Hernandez <[email protected]>
* Color.cs: take into account the name color in == and != operators
	* Font.cs: Use Equals instead of == to compare the family name
	* FontFamily.cs:
	   -  Removes generic fontfamilies cache (done at libgdiplus level)
	   -  Fixes Equals method


svn path=/trunk/mcs/; revision=42509
2005-04-04 11:23:49 +00:00
Marek Safar f405a09600 removed unused variables
svn path=/trunk/mcs/; revision=36532
2004-11-25 10:11:32 +00:00
Sachin Kumar 15a49e8b92 Add license and copyright to all source files in System.Drawing
svn path=/trunk/mcs/; revision=29667
2004-06-16 06:32:39 +00:00
Andreas N 83c3ae5292 2004-02-25 Andreas Nahr <[email protected]>
* FontCollection.cs: Remove console

svn path=/trunk/mcs/; revision=23454
2004-02-25 18:22:18 +00:00
Jordi Mas i Hernandez d4334ad8dd fontcollection wrapper and fixes
svn path=/trunk/mcs/; revision=23453
2004-02-25 18:01:55 +00:00
Sanja Gupta d8264359df changelog: Updated changelog
FontCollection.cs: Used CheckStatus() method
InstalledFontCollection.cs: Used CheckStatus() method
PrivateFontCollection.cs: Used CheckStatus() method

svn path=/trunk/mcs/; revision=22823
2004-02-06 11:02:35 +00:00
Sanja Gupta 5510f3a0aa changelog: Updated changelog
FontCollection.cs: Implemented Dispose() method
InstalledFontCollection.cs: Removed Console.WriteLine statements.
PrivateFontCollection.cs: Implemented AddMemoryFont() method.

svn path=/trunk/mcs/; revision=22589
2004-01-29 10:08:58 +00:00
Jordi Mas i Hernandez 1ee942cc66 fixes font collection
svn path=/trunk/mcs/; revision=22588
2004-01-29 09:02:22 +00:00
Sanja Gupta f6b94773b2 changelog: Modified the changelog
FontCollection.cs: Implemented few methods.
InstalledFontCollection.cs: Implemented few methods.
PrivateFontCollection.cs: Implemented few methods.

svn path=/trunk/mcs/; revision=22582
2004-01-28 17:18:23 +00:00
Miguel de Icaza cba96846a4 XrFunctions are now complete and match the Xr implementation.
Changed coding conventions to Mono coding conventions.

svn path=/trunk/mcs/; revision=16188
2003-07-14 06:26:50 +00:00
Alexandre Pigolkine e051b63bf0 calls to implementation added
svn path=/trunk/mcs/; revision=15555
2003-06-22 21:06:17 +00:00
Alexandre Pigolkine b93dd1c0b7 switch to unix line terminators
svn path=/trunk/mcs/; revision=15553
2003-06-22 20:57:28 +00:00
Dennis Hayes d5725f2ff1 2002-09-13 Dennis Hayes ([email protected])
* checked in for Everaldo Canuto [email protected]

* FontCollection.cs
* GenericFontFamilies.cs
* HotkeyPrefix.cs
* InstalledFontCollection.cs
* PrivateFontCollection.cs
* TextRenderingHint.cs

svn path=/trunk/mcs/; revision=7438
2002-09-13 17:56:51 +00:00