Coder Social home page Coder Social logo

Comments (6)

bluebird75 avatar bluebird75 commented on July 22, 2024

That's kind of weird indeed.

The default fixed font used to display the console and the program source code is "Courier". See

winpdb/winpdb.py

Line 3000 in 2082b8b

def set_font(self, ctrl):

Could you try to change that and see if there is a different result ?

The settings.cfg is saved using pickle, this is why it is a binary format. It would be a good idea indeed to move to a text format.

Sorry for the delay and inswering your bug issue by the way.

from winpdb.

bluebird75 avatar bluebird75 commented on July 22, 2024

On which platform are you using winpdb ?

from winpdb.

bomm avatar bomm commented on July 22, 2024

I found the same problem on Ubuntu 20.04 (64 bit). I used "python -m pip install winpdb-reborn" to install as a normal user.
In def set_font(self, ctrl): in the else branch I replaced face = "Courier" with face = "Cousine". (This was the first fixed width font I found in LibreOffice Writer.) This made the console view readable, but not the source code.
After replacing another occurrence of Courier at line 2372 in def __init__(self, *args, **kwargs): the source code is readable as well.

I just noticed that the installation of the Microsoft fonts fixes the problem:
sudo apt-get install ttf-mscorefonts-installer

from winpdb.

bluebird75 avatar bluebird75 commented on July 22, 2024

Thanks, that's greatly appreciated ! I will look into WxPython to understand how to find a reliable fixed width font.

from winpdb.

bluebird75 avatar bluebird75 commented on July 22, 2024

If you feel like fixing this, that would be of great help since you can investigate the problem directly. On Windows, the problem does not show up even if I force a non existing font. I just get text with a non fixed font, so Windows probably has a bettter default mechanism for this.

from winpdb.

bluebird75 avatar bluebird75 commented on July 22, 2024

Can you check with the version I just committed ? The font lookup is now more generic, it should fix the problem.

from winpdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.