Table of Contents

Method ToUserAsList

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

ToUserAsList(IFontHandler)

Converts the specified font's attributes into a list of strings representing its user-readable properties.

public static List<string> ToUserAsList(IFontHandler font)

Parameters

font IFontHandler

An object implementing IFontHandler that provides the font's attributes, such as name, weight, and size.

Returns

List<string>

A list of strings representing the font's user-readable properties. The list typically includes the font's style, weight, name, and size in points.

Remarks

The method ensures that the font name is properly formatted for user readability. If the font name contains spaces, semicolons, or commas, it is enclosed in single quotes to preserve its integrity as a single entity.