Share via


ThemeFont.SetFontForScript method

NOTE: This API is now obsolete.

Sets the font associated with a language.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SetFontFaceForScript instead")> _
Public Sub SetFontForScript ( _
    script As String, _
    font As String _
)
'Usage
Dim instance As ThemeFont
Dim script As String
Dim font As String

instance.SetFontForScript(script, font)
[ObsoleteAttribute("Use SetFontFaceForScript instead")]
public void SetFontForScript(
    string script,
    string font
)

Parameters

  • script
    Type: System.String

    The language to associate with the font.

  • font
    Type: System.String

    The font name to associate with the script.

Exceptions

Exception Condition
ArgumentNullException

script or fontis null .

Remarks

If the value of the script parameter is [“Latn”], this method sets the value of the LatinFont property to the value of the font parameter and returns.

See also

Reference

ThemeFont class

ThemeFont members

Microsoft.SharePoint.Utilities namespace