1 /*******************************************************************************
2  * Copyright (c) 2004, 2015 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.jface.viewers;
15 
16 import org.eclipse.swt.graphics.Font;
17 
18 /**
19  * Interface to provide font representation for a given element.
20  * @see org.eclipse.jface.viewers.IFontDecorator
21  *
22  * @since 3.0
23  */
24 public interface IFontProvider {
25 
26 	/**
27 	 * Provides a font for the given element.
28 	 *
29 	 * @param element the element
30 	 * @return the font for the element, or <code>null</code>
31 	 *   to use the default font
32 	 */
getFont(Object element)33 	public Font getFont(Object element);
34 }
35