diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp index 36ea85a4c9b4..1bfdb220496b 100644 --- a/gfx/thebes/gfxFont.cpp +++ b/gfx/thebes/gfxFont.cpp @@ -2022,6 +2022,10 @@ gfxFont::Draw(const gfxTextRun *aTextRun, uint32_t aStart, uint32_t aEnd, FontDrawParams fontParams; + if (aRunParams.drawOpts) { + fontParams.drawOptions = *aRunParams.drawOpts; + } + fontParams.scaledFont = GetScaledFont(aRunParams.dt); if (!fontParams.scaledFont) { return;