dotgnu-pnet-commits
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]