aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-08-08 11:42:22 +1000
committernyamatongwe <unknown>2011-08-08 11:42:22 +1000
commite2526b144a7837403d04f82548c591e19149c9a5 (patch)
treeee2d998cbcd13596d82656e45b4aa9cb5a95bcb5
parent05f1d735da51d6f71fda7f3554a80b95c9241809 (diff)
downloadscintilla-mirror-e2526b144a7837403d04f82548c591e19149c9a5.tar.gz
Removed old code.
-rw-r--r--win32/PlatWin.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 804fd66e1..13a1de70d 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -337,21 +337,6 @@ FontCached::FontCached(const char *faceName_, int characterSet_, float size_, in
hash = HashFont(faceName_, characterSet_, size_, weight_, italic_, extraFontFlag_);
fid = 0;
if (pIDWriteFactory) {
-#ifdef OLD_CODE
- HFONT fontSave = static_cast<HFONT>(::SelectObject(hdc, font_.GetID()));
- DWORD sizeOLTM = ::GetOutlineTextMetrics(hdc, NULL, NULL);
- std::vector<char> vOLTM(sizeOLTM);
- LPOUTLINETEXTMETRIC potm = reinterpret_cast<LPOUTLINETEXTMETRIC>(&vOLTM[0]);
- DWORD worked = ::GetOutlineTextMetrics(hdc, sizeOLTM, potm);
- ::SelectObject(hdc, fontSave);
- if (!worked)
- return;
- const WCHAR *pwcFamily = reinterpret_cast<WCHAR *>(&vOLTM[reinterpret_cast<size_t>(potm->otmpFamilyName)]);
- //const WCHAR *pwcFace = reinterpret_cast<WCHAR *>(&vOLTM[reinterpret_cast<size_t>(potm->otmpFaceName)]);
- FLOAT fHeight = potm->otmTextMetrics.tmHeight * 72.0f / 96.0f;
- bool italics = potm->otmTextMetrics.tmItalic != 0;
- bool bold = potm->otmTextMetrics.tmWeight >= FW_BOLD;
-#endif
IDWriteTextFormat *pTextFormat;
const int faceSize = 200;
WCHAR wszFace[faceSize];