Skip to content

Commit

Permalink
fix: UITextDisplayer font-family is overridden by UI's Roboto font (#…
Browse files Browse the repository at this point in the history
…5829)

Fixes #5827
  • Loading branch information
avelad authored and joeyparrish committed Feb 17, 2024
1 parent 43b6d48 commit d55137b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/text/ui_text_displayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,10 @@ shaka.text.UITextDisplayer = class {
// Only do this for the text itself.
elem.style.backgroundColor = 'rgba(0, 0, 0, 0.8)';
}
const fontFamily = inherit((c) => c.fontFamily);
if (fontFamily) {
elem.style.fontFamily = fontFamily;
}
}
if (text) {
elem.textContent = text;
Expand Down

0 comments on commit d55137b

Please sign in to comment.