16

Modelsim screenshot

As you can see, the font of modelsim's text editor is very small. But I can't change the size in Tools->Edit Preferences->Source Window->Fonts. However, I can make the letters bigger by set the DPI higher(through System Settings->Fonts) or set the resolution of the screen to a appropriate value, such as 1024X720, while 1366x768 is the actual resolution of my screen. These ways are not comfortable, because everything else look strange.My OS is Fedora 22, and the version of my Modelsim is 10.3d.

I want to get a more comfortable way to the font-size problem of Modelsim, I'll appreciate it!

uraimo
  • 19,081
  • 8
  • 48
  • 55
Wtswkz
  • 333
  • 1
  • 3
  • 12
  • 2
    I'm on windows, but the *Tools->Edit Preferences->Source Window->Fonts->textFont* seems to work for me. At first I thought it was the *fixedFont*, but this does not apply to the source window. – scary_jeff Jul 23 '15 at 07:57
  • yeah,you are right.But things are different on Fedora 22(KDE). no matter what I changed in Fonts(fixedFont or textFonts), the font-size just stay tiny, except I change the resolution or DPI of my computer. – Wtswkz Jul 23 '15 at 16:22
  • Sounds like a ModelSim bug. Since you're using the free Altera version, I'm not sure if you'll be able to get any support. If you have a Mentor SupportNet login, you may be able to create a support request. – scary_jeff Jul 24 '15 at 08:45
  • It only happens on KDE. Maybe clear some environment variables to make ModelSim think it is not running on KDE? – Star Brilliant May 26 '16 at 07:01

5 Answers5

20

I ran into this too in Ubuntu 16.04 LTS with modelsim 10.5 ASE. I fixed it as follows:

  1. Open ~/.modelsim (use "nano ~/.modelsim" in terminal)
  2. Find: PrefDefault = ... textFontV2 {Verdana 12} (the name of the font may differ)
  3. Change 12 to -12, so it will looks like this: textFontV2 {Verdana -12}
  4. Save ~/.modelsim (Ctrl+O and then Enter)
  5. Reopen modelsim
Alexey Khaylov
  • 301
  • 2
  • 2
  • 3
    Works here on Ubuntu 16.04 – 小太郎 Apr 22 '17 at 12:49
  • Kind-of works for me on Ubuntu 17.10: Now the fonts in the source and interestingly also in the transcript window are a bit too large though. Changing the -12 to -10 or even -8 doesn’t seem to make any difference though. Any ideas? – Michael Jan 04 '18 at 19:50
  • Works for 18.04. Thanks. – Hal Jun 28 '19 at 04:54
  • Changing the font from 12 to -12 led to the error mentioned in https://electronics.stackexchange.com/questions/455792/how-to-come-out-of-the-transcript-window-of-modelsim-which-is-stuck . Changing it back to 12 in ~/.modelsim resolved that issue. – vineeshvs Sep 11 '19 at 07:11
  • my changes in ~/.modelsim reset when I reopen modelsim – Niklas May 06 '20 at 09:31
7

I ran into this too in Xubuntu, just use Ctrl++ or Ctrl+- to enlarge or shrink the text dynamically.

steoiatsl
  • 1,892
  • 2
  • 22
  • 39
Mike Wolak
  • 71
  • 1
  • 2
  • 2
    This works for me, but only with the Numpad +/- keys. Howerver, it makes the "Ln#" column on the left huuuge. – Fritz Apr 06 '17 at 13:53
5

Tools->Edit preferences->source windows-> textFont

1

I am using CentOS Linux, Questa Sim-64 10.1a and had the same problem. I fixed it as follows :

  1. Select "Tools" option from the toolbar at the top.
  2. From the drop down menu select "Edit Preferences ..."
  3. On the lower left pane, there are various Font types like fixedFont, footerFont, textFont etc. To change the size of textFont, select it and you get the choice of font type and size.
  4. Choose what you are most comfortable with.
  5. menuFont is used for command prompt and treeFont is used to display the folder structure.
Bertrand Martel
  • 42,756
  • 16
  • 135
  • 159
ramsub
  • 11
  • 1
1

On Xubuntu/XFCE4: Going to Settings⟶Appereance⟶Fonts and disabling the "Custom DPI setting" checkbox solved the problem for me.

XFCE4 Font Settings

The strange thing is that xdpyinfo says the screen resolution is 96x96 dpi regardless of the checkbox. Leaving the checkbox on and setting something like 200 dpi scales the Modelsim editor font, but also all other fonts on the screen, so that doesn't help. I didn't dig any further towards the root cause.

Fritz
  • 1,293
  • 15
  • 27