bug 8801; new font enumeration API for font prefs UI; r=ftang

git-svn-id: svn://10.0.0.236/trunk@54153 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
erik%netscape.com 1999-11-22 19:33:25 +00:00
parent d8260be26b
commit 52d4e80c00
4 changed files with 56 additions and 1 deletions

View File

@ -2,4 +2,5 @@
# This is a list of local files which get copied to the mozilla:dist:widget directory
#
nsIFontEnumerator.idl
nsIScriptableRegion.idl

View File

@ -29,7 +29,10 @@ include $(DEPTH)/config/autoconf.mk
MODULE = raptor
XPIDL_MODULE = gfx
XPIDLSRCS = nsIScriptableRegion.idl
XPIDLSRCS = \
nsIFontEnumerator.idl \
nsIScriptableRegion.idl \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@ -27,6 +27,7 @@ MODULE=raptor
XPIDL_MODULE=gfx
XPIDLSRCS = \
.\nsIFontEnumerator.idl \
.\nsIScriptableRegion.idl \
$(NULL)

View File

@ -0,0 +1,50 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corp. Portions created by Netscape are Copyright (C) 1999 Netscape
* Communications Corp. All Rights Reserved.
*
* Contributor(s):
* Erik van der Poel
*/
#include "nsISupports.idl"
[scriptable, uuid(a6cf9114-15b3-11d2-932e-00805f8add32)]
interface nsIFontEnumerator : nsISupports
{
/**
* Return a sorted array of the names of all installed fonts.
*
* @param aCount returns number of names returned
* @param aResult returns array of names
* @return void
*/
void EnumerateAllFonts(out PRUint32 aCount,
[retval, array, size_is(aCount)] out wstring aResult);
/**
* Return a sorted array of names of fonts that support the given language
* group and are suitable for use as the given CSS generic font.
*
* @param aLangGroup language group
* @param aGeneric CSS generic font
* @param aCount returns number of names returned
* @param aResult returns array of names
* @return void
*/
void EnumerateFonts(in string aLangGroup, in string aGeneric,
out PRUint32 aCount, [retval, array, size_is(aCount)] out wstring aResult);
};