Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/previewimageprovider.cpp
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 83 | if (sections.size() >= 2) { | |||
---|---|---|---|---|---|
84 | subPixelIndex = sections[0].toInt(); | 84 | subPixelIndex = sections[0].toInt(); | ||
85 | hintingIndex = sections[1].toInt(); | 85 | hintingIndex = sections[1].toInt(); | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | KXftConfig xft; | 88 | KXftConfig xft; | ||
89 | 89 | | |||
90 | 90 | | |||
91 | KXftConfig::AntiAliasing::State oldAntialiasing = xft.getAntiAliasing(); | 91 | KXftConfig::AntiAliasing::State oldAntialiasing = xft.getAntiAliasing(); | ||
92 | double oldStart,oldEnd; | 92 | double oldStart = 0, oldEnd = 0; | ||
93 | xft.getExcludeRange(oldStart, oldEnd); | 93 | xft.getExcludeRange(oldStart, oldEnd); | ||
94 | KXftConfig::SubPixel::Type oldSubPixelType; | 94 | KXftConfig::SubPixel::Type oldSubPixelType; | ||
95 | xft.getSubPixelType(oldSubPixelType); | 95 | xft.getSubPixelType(oldSubPixelType); | ||
96 | KXftConfig::Hint::Style oldHintStyle; | 96 | KXftConfig::Hint::Style oldHintStyle; | ||
97 | xft.getHintStyle(oldHintStyle); | 97 | xft.getHintStyle(oldHintStyle); | ||
98 | 98 | | |||
99 | 99 | | |||
100 | xft.setAntiAliasing(KXftConfig::AntiAliasing::Enabled); | 100 | xft.setAntiAliasing(KXftConfig::AntiAliasing::Enabled); | ||
Show All 33 Lines |