user6751084
user6751084

Reputation:

How to import font in PhpStorm

I am making HTML Emailer. The content of the emailer is of Raleway font. that's why I want to import Google's Raleway fonts in PhpStorm.

How can I do so?

Any help would be great.

Upvotes: 4

Views: 13499

Answers (1)

Ihor
Ihor

Reputation: 324

There is no need to add fonts to the IntelliJ IDE directly. You should install the font to your OS.

  1. For Ubuntu:
  • Download the font (e.g. .otf),
  • Unzip it,
  • and then install by double-clicking on the font file and push 'install' btn,
  • or alternatively: put your fonts in /usr/share/fonts/opentype and update the fonts cache with sudo fc-cache -f -v
  1. For the Windows:
  • Open the Windows Control Panel.
  • Select Appearance and Personalization.
  • At the bottom, select Fonts. ...
  • To add a font, simply drag the font file into the font window.
  • To remove fonts, just right click the chosen font and select Delete.
  • Click Yes when prompted.
  1. Go to the PhpStorm (or whatever IntelliJ) Settings -> Fonts, and remove a tick from the 'Show only monospaced fonts' checkbox.

Then you'll see a full list of fonts of your system in the dropdown below. If there is no your installed font, you should restart your IDE and repeat the 3-rd step.

Enjoy ;)

Upvotes: 10

Related Questions