A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
798 B

// -----------------------------------------------------------------------
// <copyright file="FormattedText.cs" company="Steven Kirk">
// Copyright 2013 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Media
{
using Perspex.Platform;
using Splat;
public class FormattedText
{
public string FontFamilyName { get; set; }
public double FontSize { get; set; }
public string Text { get; set; }
public Size Size
{
get
{
IPlatformInterface factory = Locator.Current.GetService<IPlatformInterface>();
return factory.TextService.Measure(this);
}
}
}
}