Font Consolas in Pycharm is being rendered in a weird way

后端 未结 2 907
一整个雨季
一整个雨季 2021-02-09 02:45

On the picture below Consolas 10pt in Font Manager and in Pycharm 2.7.2 In Pycharm it became small and bold-ish Is there a way to render it similar to Windows style?

2条回答
  •  攒了一身酷
    2021-02-09 03:43

    I replaced OpenJDK with tuxJDK which works for me perfectly.

    Here's a screenshot,

    To install,

    1. Download the JDK with wget or any httpclient.

      wget https://googledrive.com/host/0B68yuEpDuq6waUl5UjNTUWRlYTQ/jdk-8u5-tuxjdk-b08.tar.xz
      
    2. Extract downloaded JDK

      tar -xvf jdk-8u5-tuxjdk-b08.tar.xz
      
    3. Move extracted files to /usr/lib/jvm

      sudo mv jdk-8u5-tuxjdk-b08 /usr/lib/jvm
      
    4. set priorities to tuxjdk as 1

      sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-8u5-tuxjdk-b08/bin/java" 1
      
      sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-8u5-tuxjdk-b08/bin/javac" 1
      
    5. Correct permissions and ownership

      sudo chmod a+x /usr/bin/java
      sudo chmod a+x /usr/bin/javac
      sudo chown -R root:root /usr/lib/jvm/jdk-8u5-tuxjdk-b08/
      
    6. Now setup the defaults,

      sudo update-alternatives --config java
      

      if the terminal shows "There is nothing to configure" quit this step.
      it will prompt a selection window as shown below,

      There are 2 choices for the alternative java (providing /usr/bin/java).
      
        Selection    Path                                            Priority   Status
      ------------------------------------------------------------
        0            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      auto mode
        1            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode
      * 2            /usr/lib/jvm/jdk-8u5-tuxjdk-b08/bin/java         1         manual mode
      
      Press  to keep the current choice[*], or type selection number: 
      

      enter the selection number adjacent to tuxjdk (here 2).
      do the same for javac and select tuxjdk if it exists.

      sudo update-alternatives --config javac
      

提交回复
热议问题