IPlatformTypefaceSimulator Interface
Definition
Optionally implemented by an Avalonia.Media.IPlatformTypeface that can create variants of itself with other Avalonia.Media.FontSimulations.
public interface IPlatformTypefaceSimulator
Remarks
A font collection that needs a synthetic bold or oblique face asks the platform typeface it
already holds for a simulated variant. The variant shares the font data of its source, so no
copy of the font file is made. When this method returns false, the collection uses the
source face without the simulations. Only when the platform typeface does not implement this
interface does the collection create the synthetic face from the font stream returned by
Avalonia.Media.IPlatformTypeface.TryGetStream(System.IO.Stream@).
Methods
| Name | Description |
|---|---|
| TryCreateSimulatedTypeface | No summary available. |
TryCreateSimulatedTypeface Method
public bool TryCreateSimulatedTypeface(Avalonia.Media.FontSimulations fontSimulations, Avalonia.Media.FontStyle style, Avalonia.Media.FontWeight weight, Avalonia.Media.FontStretch stretch, Avalonia.Media.IPlatformTypeface& typeface)
Parameters
fontSimulations Avalonia.Media.FontSimulations
style Avalonia.Media.FontStyle
weight Avalonia.Media.FontWeight
stretch Avalonia.Media.FontStretch
typeface Avalonia.Media.IPlatformTypeface&
Returns
bool