aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-08-08 11:42:22 +1000
committernyamatongwe <devnull@localhost>2011-08-08 11:42:22 +1000
commitefbc9a56b462a5085106c2a558e46a415a588664 (patch)
treedd360a8357ff11984cd50d23fb4c438fd97fd050
parent16c1ec3dfcb46afef91e2d21cf04b63112cd9a55 (diff)
downloadscintilla-mirror-efbc9a56b462a5085106c2a558e46a415a588664.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];