Codebase list mozc / f1deddf
Temporarily disable DirectWrite. We decided to disable DirectWrite in text rendring on Windows until we figure out the root cause of #348. BUG=#348 TEST= REF_BUG=23803925 REF_CL=102326567 Hiroyuki Komatsu authored 8 years ago Yohei Yukawa committed 8 years ago
2 changed file(s) with 11 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
00 MAJOR=2
11 MINOR=17
2 BUILD=2291
2 BUILD=2292
33 REVISION=102
44 # NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
55 # downloaded by NaCl Mozc.
584584
585585 // static
586586 TextRenderer *TextRenderer::Create() {
587 auto *dwrite_text_renderer = DirectWriteTextRenderer::Create();
588 if (dwrite_text_renderer != nullptr) {
589 return dwrite_text_renderer;
590 }
587 // In some environments, DirectWrite cannot render characters in the
588 // candidate window or even worse may cause crash. As a workaround,
589 // this function always returns new GidTextRenderer().
590 //
591 // TODO: Reactivate the following code when b/23803925 is fixed.
592 //
593 // auto *dwrite_text_renderer = DirectWriteTextRenderer::Create();
594 // if (dwrite_text_renderer != nullptr) {
595 // return dwrite_text_renderer;
596 // }
591597 return new GdiTextRenderer();
592598 }
593599