'''
''' Class that contains a SpriteFont with its corresponding name.
'''
Public Class FontContainer
Private _spriteFont As SpriteFont
Private _fontName As String
'''
''' Creates a new instance of the FontContainer class.
'''
''' The name of the Font.
''' The SpriteFont.
Public Sub New(ByVal FontName As String, ByVal Font As SpriteFont)
Me._fontName = FontName
Me._spriteFont = Font
Select Case FontName.ToLower()
Case "braille"
Me._spriteFont.DefaultCharacter = CChar(" ")
Case Else
Me._spriteFont.DefaultCharacter = CChar("?")
End Select
End Sub
'''
''' Returns the name of the Font.
'''
Public ReadOnly Property FontName() As String
Get
Return Me._fontName
End Get
End Property
'''
''' The SpriteFont.
'''
Public ReadOnly Property SpriteFont() As SpriteFont
Get
Return Me._spriteFont
End Get
End Property
End Class