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 Oct 30, 2023
1 parent 5aa3597 commit cb8a5ed
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 @@ -604,6 +604,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 cb8a5ed

Please sign in to comment.