[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing/Text FontCollection.c
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing/Text FontCollection.cs,NONE,1.1 GenericFontFamilies.cs,NONE,1.1 HotkeyPrefix.cs,NONE,1.1 InstalledFontCollection.cs,NONE,1.1 PrivateFontCollection.cs,NONE,1.1 TextRenderingHint.cs,NONE,1.1 |
Date: |
Sat, 07 Jun 2003 18:41:00 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Text
In directory subversions:/tmp/cvs-serv12618/System.Drawing/Text
Added Files:
FontCollection.cs GenericFontFamilies.cs HotkeyPrefix.cs
InstalledFontCollection.cs PrivateFontCollection.cs
TextRenderingHint.cs
Log Message:
Add the "System.Drawing" and "System.Drawing.Xsharp" assemblies.
--- NEW FILE ---
/*
* FontCollection.cs - Implementation of the
* "System.Drawing.Text.FontCollection" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Drawing.Text
{
using System.Collections;
public abstract class FontCollection : IDisposable
{
// Internal state.
private ArrayList families;
// Constructor.
internal FontCollection()
{
families = new ArrayList();
}
// Destructor.
~FontCollection()
{
Dispose(false);
}
// Add an element to this collection.
internal void Add(FontFamily family)
{
families.Add(family);
}
// Dispose of this object.
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
// Nothing to do here.
}
// Get the font families.
public FontFamily[] Families
{
get
{
return (FontFamily[])
(families.ToArray(typeof(FontFamily)));
}
}
}; // class FontCollection
}; // namespace System.Drawing.Text
--- NEW FILE ---
/*
* GenericFontFamilies.cs - Implementation of the
* "System.Drawing.Text.GenericFontFamilies" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Drawing.Text
{
public enum GenericFontFamilies
{
Serif = 0,
SansSerif = 1,
Monospace = 2
}; // enum GenericFontFamilies
}; // namespace System.Drawing.Text
--- NEW FILE ---
/*
* HotkeyPrefix.cs - Implementation of the
* "System.Drawing.Text.HotkeyPrefix" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Drawing.Text
{
public enum HotkeyPrefix
{
None = 0,
Show = 1,
Hide = 2
}; // enum HotkeyPrefix
}; // namespace System.Drawing.Text
--- NEW FILE ---
/*
* InstalledFontCollection.cs - Implementation of the
* "System.Drawing.Text.InstalledFontCollection" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Drawing.Text
{
public sealed class InstalledFontCollection : FontCollection
{
// Constructor.
[TODO]
public InstalledFontCollection()
{
// TODO: find the installed fonts and add them
to the list.
}
}; // class InstalledFontCollection
}; // namespace System.Drawing.Text
--- NEW FILE ---
/*
* PrivateFontCollection.cs - Implementation of the
* "System.Drawing.Text.PrivateFontCollection" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Drawing.Text
{
public sealed class PrivateFontCollection : FontCollection
{
// Constructor.
public PrivateFontCollection() {}
// Add a file-based font to the collection.
[TODO]
public void AddFontFile(String filename)
{
// TODO
}
// Add a memory-based font to the collection.
[TODO]
public void AddMemoryFont(IntPtr memory, int length)
{
// TODO
}
// Dispose of this object.
protected override void Dispose(bool disposing)
{
// Nothing to do here.
}
}; // class InstalledFontCollection
}; // namespace System.Drawing.Text
--- NEW FILE ---
/*
* TextRenderingHint.cs - Implementation of the
* "System.Drawing.Text.TextRenderingHint" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Drawing.Text
{
public enum TextRenderingHint
{
SystemDefault = 0,
SingleBitPerPixelGridFit = 1,
SingleBitPerPixel = 2,
AntiAliasGridFit = 3,
AntiAlias = 4,
ClearTypeGridFit = 5,
}; // enum TextRenderingHint
}; // namespace System.Drawing.Text
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing/Text FontCollection.cs,NONE,1.1 GenericFontFamilies.cs,NONE,1.1 HotkeyPrefix.cs,NONE,1.1 InstalledFontCollection.cs,NONE,1.1 PrivateFontCollection.cs,NONE,1.1 TextRenderingHint.cs,NONE,1.1,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing/Toolkit IToolkit.cs,NONE,1.1 IToolkitBrush.cs,NONE,1.1 IToolkitFont.cs,NONE,1.1 IToolkitGraphics.cs,NONE,1.1 IToolkitPen.cs,NONE,1.1 IToolkitPrintSession.cs,NONE,1.1 IToolkitPrinter.cs,NONE,1.1 IToolkitPrintingSystem.cs,NONE,1.1 IToolkitSelectObject.cs,NONE,1.1 IToolkitWindow.cs,NONE,1.1 Makefile,NONE,1.1 NullPrintingSystem.cs,NONE,1.1 ToolkitDecorations.cs,NONE,1.1 ToolkitEventHandlers.cs,NONE,1.1 ToolkitFunctions.cs,NONE,1.1 ToolkitGraphicsBase.cs,NONE,1.1 ToolkitManager.cs,NONE,1.1 UnixPrinter.cs,NONE,1.1 UnixPrintingSystem.cs,NONE,1.1
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing/Imaging BitmapData.cs,NONE,1.1 ColorAdjustType.cs,NONE,1.1 ColorChannelFlag.cs,NONE,1.1 ColorMap.cs,NONE,1.1 ColorMapType.cs,NONE,1.1 ColorMatrix.cs,NONE,1.1 ColorMatrixFlag.cs,NONE,1.1 ColorMode.cs,NONE,1.1 ColorPalette.cs,NONE,1.1 EmfPlusRecordType.cs,NONE,1.1 EmfType.cs,NONE,1.1 Encoder.cs,NONE,1.1 EncoderParameter.cs,NONE,1.1 EncoderParameterValueType.cs,NONE,1.1 EncoderParameters.cs,NONE,1.1 EncoderValue.cs,NONE,1.1 FrameDimension.cs,NONE,1.1 ImageAttributes.cs,NONE,1.1 ImageCodecFlags.cs,NONE,1.1 ImageCodecInfo.cs,NONE,1.1 ImageFlags.cs,NONE,1.1 ImageFormat.cs,NONE,1.1 ImageLockMode.cs,NONE,1.1 Makefile,NONE,1.1 MetaHeader.cs,NONE,1.1 Metafile.cs,NONE,1.1 MetafileFrameUnit.cs,NONE,1.1 MetafileHeader.cs,NONE,1.1 MetafileType.cs,NONE,1.1 PaletteFlags.cs,NONE,1.1 PixelFormat.cs,NONE,1.1 PlayRecordCallback.cs,NONE,1.1 PropertyItem.cs,NONE,1.1 WmfPlaceableFileHeader.cs,NONE,1.1
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing/Toolkit IToolkit.cs,NONE,1.1 IToolkitBrush.cs,NONE,1.1 IToolkitFont.cs,NONE,1.1 IToolkitGraphics.cs,NONE,1.1 IToolkitPen.cs,NONE,1.1 IToolkitPrintSession.cs,NONE,1.1 IToolkitPrinter.cs,NONE,1.1 IToolkitPrintingSystem.cs,NONE,1.1 IToolkitSelectObject.cs,NONE,1.1 IToolkitWindow.cs,NONE,1.1 Makefile,NONE,1.1 NullPrintingSystem.cs,NONE,1.1 ToolkitDecorations.cs,NONE,1.1 ToolkitEventHandlers.cs,NONE,1.1 ToolkitFunctions.cs,NONE,1.1 ToolkitGraphicsBase.cs,NONE,1.1 ToolkitManager.cs,NONE,1.1 UnixPrinter.cs,NONE,1.1 UnixPrintingSystem.cs,NONE,1.1
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing/Imaging BitmapData.cs,NONE,1.1 ColorAdjustType.cs,NONE,1.1 ColorChannelFlag.cs,NONE,1.1 ColorMap.cs,NONE,1.1 ColorMapType.cs,NONE,1.1 ColorMatrix.cs,NONE,1.1 ColorMatrixFlag.cs,NONE,1.1 ColorMode.cs,NONE,1.1 ColorPalette.cs,NONE,1.1 EmfPlusRecordType.cs,NONE,1.1 EmfType.cs,NONE,1.1 Encoder.cs,NONE,1.1 EncoderParameter.cs,NONE,1.1 EncoderParameterValueType.cs,NONE,1.1 EncoderParameters.cs,NONE,1.1 EncoderValue.cs,NONE,1.1 FrameDimension.cs,NONE,1.1 ImageAttributes.cs,NONE,1.1 ImageCodecFlags.cs,NONE,1.1 ImageCodecInfo.cs,NONE,1.1 ImageFlags.cs,NONE,1.1 ImageFormat.cs,NONE,1.1 ImageLockMode.cs,NONE,1.1 Makefile,NONE,1.1 MetaHeader.cs,NONE,1.1 Metafile.cs,NONE,1.1 MetafileFrameUnit.cs,NONE,1.1 MetafileHeader.cs,NONE,1.1 MetafileType.cs,NONE,1.1 PaletteFlags.cs,NONE,1.1 PixelFormat.cs,NONE,1.1 PlayRecordCallback.cs,NONE,1.1 PropertyItem.cs,NONE,1.1 WmfPlaceableFileHeader.cs,NONE,1.1
- Index(es):