Skip to content

Commit

Permalink
code format pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
miniksa committed Apr 6, 2021
1 parent e557fc7 commit 9132d01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/cascadia/TerminalControl/TermControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
// actually fail. We need a way to gracefully fallback.
_renderer->TriggerFontChange(newDpi, _desiredFont, _actualFont);

// If the actual font went through the last-chance fallback routines...
// If the actual font went through the last-chance fallback routines...
if (_actualFont.GetFallback())
{
// Then warn the user that we picked something because we couldn't find their font.
Expand Down
16 changes: 8 additions & 8 deletions src/renderer/dx/DxFontRenderData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ DxFontRenderData::DxFontRenderData(::Microsoft::WRL::ComPtr<IDWriteFactory1> dwr
{
if (p.is_regular_file())
{
auto extension = p.path().extension().wstring();
std::transform(extension.begin(), extension.end(), extension.begin(), std::towlower);

const std::wstring_view ttfExtension{ L".ttf" };
if (ttfExtension == extension)
{
fontSetBuilder2->AddFontFile(p.path().c_str());
}
auto extension = p.path().extension().wstring();
std::transform(extension.begin(), extension.end(), extension.begin(), std::towlower);

const std::wstring_view ttfExtension{ L".ttf" };
if (ttfExtension == extension)
{
fontSetBuilder2->AddFontFile(p.path().c_str());
}
}
}

Expand Down

1 comment on commit 9132d01

@github-actions

This comment was marked as resolved.

Please sign in to comment.