Skip to content

Commit

Permalink
Allow non MS-API conform lfOutPrecision
Browse files Browse the repository at this point in the history
  • Loading branch information
Werni2A committed Jun 19, 2024
1 parent 7ce6398 commit bfc6c74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Win32/LOGFONTA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ class tagLOGFONTA
// throw std::runtime_error(fmt::format("0 <= lfWeight <= 1000 must hold but lfWeight = {}", lfWeight));
}

// Don't know how but lfOutPrecision might have values
// out of it's 'valid' range
if(lfOutPrecision > 10U)
{
throw std::runtime_error(fmt::format("lfOutPrecision <= 10 must hold but lfOutPrecision = {}", lfOutPrecision));
// throw std::runtime_error(fmt::format("lfOutPrecision <= 10 must hold but lfOutPrecision = {}", lfOutPrecision));
}

if(lfQuality > 6U)
Expand Down

0 comments on commit bfc6c74

Please sign in to comment.