mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
All constructors for making a TrueType font take an optional settings table.
This supersedes the existing optional hinting and dpi scale parameters. The table's fields are:
{
hinting = "normal",
dpiscale = 1, -- nil will default to the current window DPI scale.
}
This commit is contained in:
@@ -46,7 +46,7 @@ struct Optional
|
||||
hasValue = true;
|
||||
}
|
||||
|
||||
T get(T defaultVal)
|
||||
T get(T defaultVal) const
|
||||
{
|
||||
return hasValue ? value : defaultVal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user