Problem Description
The Log window in my COMSOL Multiphysics sessions looks like this:
Solution
This issue is most commonly observed on Ubuntu 20.04 LTS (Focal Fossa) when the package texlive-fonts-recommended
is present. But it has been observed on other operating systems and in other situations as well. It is an issue in the operating system caused by an incorrect font being used. Any software that uses a font in the “Courier” family can be affected by this.
You can check your font with the following command: fc-match Courier
On a fresh install of Ubuntu 20.04 it should output:
NimbusMonoPS-Regular.otf: "Nimbus Mono PS" "Regular"
If the output instead includes any type 1 font (e.g. with file extensions *.pfa or *.pfb) then this is likely the cause of the issue you see in the log window.
The easiest fix is to remove any packages that are known to cause this problem, like texlive-fonts-recommended
.
A more advanced fix is to manually overwrite the font file that should be used when an application requests a font of the “Courier” family. Please note that this will affect other applications than COMSOL Multiphysics as well. You can do that by creating a file ~/.config/fontconfig/fonts.conf
with the following content:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="family">
<string>Courier</string>
</test>
<edit mode="assign" name="file">
<string>/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf</string>
</edit>
</match>
</fontconfig>
You can use any *.ttf or *.otf font instead of /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
. It is used in this example as it is a common monospace font that is available on Ubuntu by default.
Finish by restarting COMSOL Multiphysics which should now use DejaVu for the log window:
COMSOL は, 本ページに掲載されている情報の確認に合理的な努力を払っております. リソースおよびドキュメントは情報提供のみを目的としており, COMSOL はその有効性について明示的または黙示的な保証を行いません. 開示されたデータの正確性について, COMSOL は法的責任を負いません. 本文書で言及されている商標はすべて, それぞれの所有者に帰属します. 商標に関する詳細は, 製品マニュアルをご参照ください.