#30 Ubuntu Mono font rendering issues


OS version: Windows 7 64-bit
Error reported:
Stack trace:
Steps needed to reproduce the problem:

Download and Install the Ubuntu Font Family. You can download it from here: http://font.ubuntu.com/

In the Dev-C++ menu go to Tools -> Editor Options -> Fonts and select Ubuntu Mono size 10 as the default Editor font.

After applying the changes the source code in the editor is having problems rendering for example highlighted keywords. The attached picture is self-explanatory regarding the behavior of the Editor configured with the Ubuntu Mono font.

1 Attachments


  • orwelldevcpp

    orwelldevcpp - 2012-10-15

    I've tried "Ubunto Mono" size 10 here too, and it's showing fine over here at least:


    First off, if you don't mind, please try the following build of Dev-C++, fresh from the oven:


    If this version does not fix your problems, please mess around with Tools >> Editor Options >> Colors and see what kind of properties (bold for example?) cause this weird alignment issue.

    Anyways, this is a bit of a weird bug to fix, because I'm directly using the Windows API for the text rendering stuff. Blaming that would be rather dumb, but I don't have a clue what else might be causing this.

    • status: open --> pending
    • assigned_to: orwelldevcpp
    • milestone: -->
  • Anonymous - 2013-02-03

    I tried the dev-cpp build you suggested but the behavior is the same, I attached a screenshot.

    I played with the settings in Tools >> Editor Options >> Colors and I saw that the Bold setting affects the text positioning for Ubuntu Mono.

    The bold sections of the text are displayed at least 2 pixels higher than the regular pixels.

  • Anonymous - 2013-02-03

    In this screenshot all the text is non-bold and it is properly aligned.
    Could this be an issue that could be raised to the developers / maintainers of the editor component ?

  • Anonymous - 2013-02-03

    I also tried Dev-C++ RC 4 and it's behavior is the same as the behavior of the custom build.

  • orwelldevcpp

    orwelldevcpp - 2013-02-04

    You could check the source code of SynTextDrawer if you wish, but I highly doubt that I/you would find the problem there. The weird part of course is that they're just using the Windows API (ExtTextOut) for text output, and if that isn't working, there must be something quite weird going on.

    So, ehm, yes, it might be better to report it to the SynEdit guys.

    • Anonymous - 2013-02-04

      OK, which version of SynEdit is it used for building Dev-C++ ?


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks