Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
++
  • Loading branch information
jonahwilliams committed Feb 11, 2024
commit f3a608f676379d6b86f5981d3d253f01729cfc7f
4 changes: 2 additions & 2 deletions impeller/typographer/backends/stb/typographer_context_stb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,10 @@ std::shared_ptr<GlyphAtlas> TypographerContextSTB::CreateGlyphAtlas(
PixelFormat format;
switch (type) {
case GlyphAtlas::Type::kRedBitmap:
format = PixelFormat::kA8UNormInt;
format = PixelFormat::kR8UNormInt;
break;
case GlyphAtlas::Type::kColorBitmap:
format = DISABLE_COLOR_FONT_SUPPORT ? PixelFormat::kA8UNormInt
format = DISABLE_COLOR_FONT_SUPPORT ? PixelFormat::kR8UNormInt
: PixelFormat::kR8G8B8A8UNormInt;
break;
}
Expand Down