mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-21 17:04:49 +00:00
Temporary solution to read woff2
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
//Apache2, 2017-present, WinterDev
|
||||
//Apache2, 2014-2016, Samuel Carlsson, WinterDev
|
||||
|
||||
namespace Typography.OpenFont
|
||||
{
|
||||
/// <summary>
|
||||
/// original glyph bounds
|
||||
/// </summary>
|
||||
public readonly struct Bounds
|
||||
{
|
||||
|
||||
//TODO: will be changed to => public readonly struct Bounds
|
||||
|
||||
public static readonly Bounds Zero = new Bounds(0, 0, 0, 0);
|
||||
public Bounds(short xmin, short ymin, short xmax, short ymax)
|
||||
{
|
||||
XMin = xmin;
|
||||
YMin = ymin;
|
||||
XMax = xmax;
|
||||
YMax = ymax;
|
||||
}
|
||||
|
||||
public short XMin { get; }
|
||||
public short YMin { get; }
|
||||
public short XMax { get; }
|
||||
public short YMax { get; }
|
||||
#if DEBUG
|
||||
public override string ToString()
|
||||
{
|
||||
return "(" + XMin + "," + YMin + "," + XMax + "," + YMax + ")";
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user