Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphics.DrawText() on WPF not working. #26

Closed
azunyuuuuuuu opened this issue Apr 7, 2012 · 1 comment
Closed

Graphics.DrawText() on WPF not working. #26

azunyuuuuuuu opened this issue Apr 7, 2012 · 1 comment
Labels

Comments

@azunyuuuuuuu
Copy link

When executing the following code, while the Generator is set to Eto.Platform.Wpf text does not get drawn.

var Screen = new Drawable();
Screen.Paint += (sender, e) =>
{
    e.Graphics.DrawRectangle(Color.Red, new Rectangle(0, 0, 320, 240));
    e.Graphics.DrawText(new Font(SystemFont.Default), Color.Blue, 10, 10, "Hello World!");
};

While the Generator is set to Eto.Platform.Windows (I cannot test the others now) it works as expected and draws a "Hello World!" into the Drawable.

Looking into the source code I see its commented out/not implemented.

@cwensley
Copy link
Member

cwensley commented Apr 9, 2012

Thanks for the report. This should now be implemented with commit ce12c9f, including the Graphics.MeasureString() method.

@cwensley cwensley closed this as completed Apr 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants