Add DirectWrite to existing GDI Application
$30-250 USD
Płatność przy odbiorze
I need to be able to use DirectX to render text to an existing GDI based application.
I want a class that encapsulates this functionality and provides the original GDI interface to render text to a device context.
INPUT
a) Populated LOGFONT structure
b) CDC MemoryDC
c) Foreground Color Background Color
OUTPUT
Text rendered to the MemoryDC using DirectWrite
Here are two key technical resources
[url removed, login to view](v=[url removed, login to view]).aspx
[url removed, login to view](v=[url removed, login to view]).aspx
The interface for actually outputting the text should be a member function of the new class:
BOOL TextOut(HDC hdc, int nXStart, int nYStart, LPCTSTR lpString,i nt cchString );
Clarification:
I want to exactly duplicate the GDI interface for rasterizing Text to a memory device context.
This means that we create the Font using no more than a populated LOGFONT structure.
Microsoft has already provided for this with g_pGdiInterop->CreateFontFromLOGFONT(&lf, &pFont);
(see the link below)
http://msdn.microsoft.com/en-us/library/windows/desktop/dd742734(v=vs.85).aspx
I also want to output text to this memory device context using a member function that his named TextOut() which is the standard GDI function for text output, it will also take the same parameters as the standard TextOut() function.
The above two functions are to be the member functions of the public interface of the class.
I am only asking for a class the exposes two member functions:
1) CreateFont(LOGFONT& logfont, UINT32 ForeGroundColor, UINT32 BackGroundColor);
2) BOOL TextOut(HDC hdc, int nXStart, int nYStart, LPCTSTR lpString,int cchString );
This class must use DirectWrite for its glyph rendering.
The font must be constructed using every value in the LOGFONT parameter.
(I am estimating the Microsoft already implemented most of this).
This is an example function that creates DirectX font from a LOGFONT structure:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd941783(v=vs.85).aspx
Numer ID Projektu: #5773541
O projekcie
Przyznany użytkownikowi:
Hi, Friend. I have enough experience in C++ programming. I also have deep understanding about DirectX. I think I can help you perfectly & asap. Please tell me your details. Thanks.
5 freelancerów złożyło ofertę za $321 w tym projekcie
HI. I have specialized in the c++/DirectX programming. I can give u a good result. Thanks.
Hi, I have a programming experience over 10 year (Visual Studio, C++ Builder, Delphi). I will be glad to help You with this assignment. Regards, Denis.
Hello, I have experience of creation of game engines with DirectX 11 rendering system and can create DirectWrite interoperability with GDI.
You can use the GDI itself to render fonts directly, as even the DirectWrite relies on the GDI to perform this operation, but no problem, I will make it using DirecWrite only if you need it to be done so.
Hi, I have good experience in font rendering as I have done this for DVB TV - PC emulator. It is done for the OSD menus and messages with directdraw on Video with alpha blending. Handled all kind of font flickeri Więcej