GUIText.font Manual     Reference     Scripting  
Scripting > Runtime Classes > GUIText
GUIText.font

var font : Font

Description

The font used for the text.

JavaScripts
// Assign manually a font from the inspector to the GUIText
var font : Font;
guiText.font = font;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public Font font;
void Awake() {
guiText.font = font;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

public font as Font

def Awake():
guiText.font = font