Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

Setting Text Size for Intel® Parallel Studio XE Components on Linux* Operating Systems

$
0
0

Intel® Advisor XE, Intel® VTune™ Amplifier XE, and Intel® Inspector XE all use system GTK* fonts for drawing. They need a vector (scalable) font installed as a default font for the user to show text in different sizes: bigger for titles, smaller for tables and text.

However, you may want to change the font or text size for preference or accessibility reasons. We do not recommend changing the system fonts, obviously, and they are easy enough to override with user-defined fonts stored separately for each user.

 Here is an example of how to set a default GTK user font on SUSE Linux Enterprise Server* 11 using the KDE* window manager.

 Select Personal Settings > Appearance > GTK styles to display the fonts settings window and choose your GTK font here:

Setting the GTK font size in this dialog box with Use another font (Change…) should update the GTK user-defined font, and all Intel Parallel Studio XE components should use the font the next time they launch.

However, this may not automatically update the fonts, due to a known issue the KDE window manager can have processing GTK font settings. You may need to create a special resource file .gtkrc-2.0  either in your home directory or in ~/.kde4/share/config/.  The file should contain the following content. Use any common font (for example Arial, Tahoma, or Lucida Console), but make sure it is a vector-scalable font, not a bitmap font. The following snippet sets up the font DejaVu Sans size 14.

style "user-font" {

        font_name = "DejaVu Sans 14"

}

widget_class "*" style "user-font"

gtk-font-name="DejaVu Sans 14"

 

Again, this file is only required to work around an issue with the KDE window manager. For more information, see: https://wiki.archlinux.org/index.php/Uniform_Look_for_Qt_and_GTK_Applications (note: link is external to Intel --- (am I allowed to do this? Is there a correct caveat to add here?))

After creating this file by hand, the Intel Advisor XE, Intel VTune Amplifier XE, Intel Inspector XE, and all other GTK applications (such as the Mozilla Firefox* browser) will start using this custom font, and all GUI-based settings, such as Personal Settings > Appearance > GTK styles, will start working correctly. Both options Use another font and Use my KDE fonts in GTK applications will start working after creating this file.

 If you use another window manager, such as the GNOME* window manager, the location for setting the fonts and location for storing manual fonts may be different, but the procedure matches the systems settings dialog box above.

 It may also be a good idea to check permissions on the fonts folder or reinstall the fonts on the system if you have reason to believe they have issues.

 

  • Developers
  • Linux*
  • C/C++
  • Fortran
  • Beginner
  • Intel® Cluster Studio XE
  • Intel® Parallel Studio XE
  • Intel® Advisor XE
  • Intel® VTune™ Amplifier XE
  • Intel® Inspector XE
  • URL

  • Viewing all articles
    Browse latest Browse all 3384

    Trending Articles



    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>