Recommended Posts

I've been kind of switching between KDE, GNOME and Openbox for the last few months and something that I had previously not noticed has started to annoy me. If I use Firefox in Openbox, the font that I had selected with gtk-chtheme is used for the application font, but within Firefox itself, I notice that some fonts appear larger than others, but only in Openbox. I poked around a bit and if I run gnome-font-properties, it seems to correct this, but that seems like a sloppy solution, as I don't run gnome-settings-daemon (which corrects everything). Does anyone know of what I can add to my .gtkrc-2.0 file for font settings?

Link to comment
https://www.neowin.net/forum/topic/435557-openbox-gtk-fonts/
Share on other sites

I've been kind of switching between KDE, GNOME and Openbox for the last few months and something that I had previously not noticed has started to annoy me. If I use Firefox in Openbox, the font that I had selected with gtk-chtheme is used for the application font, but within Firefox itself, I notice that some fonts appear larger than others, but only in Openbox. I poked around a bit and if I run gnome-font-properties, it seems to correct this, but that seems like a sloppy solution, as I don't run gnome-settings-daemon (which corrects everything). Does anyone know of what I can add to my .gtkrc-2.0 file for font settings?

I think this is a firefox issue. Normally, apps either pick up on the font defined in .gtkrc-2.0, or they get told what font to use by gnome-settings-daemon. Firefox works great with gnome-settings-daemon, but doesn't do what it should do with the .gtkrc-2.0. I think you might just have to live with it, unless you want to run a settings daemon.

There are 2 methods of defining fonts in your .gtkrc-2.0, it's recommended to use both for backwards compatibility.

the first is like this ->

style "user-font"

{

font_name="Bitstream Vera Sans 10"

}

widget_class "*" style "user-font"

And again like this ->

gtk-font-name="Bitstream Vera Sans 10"

Firefox will only use the font described in the gtk-font-name section.

...poked around a bit and if I run gnome-font-properties, it seems to correct this, but that seems like a sloppy solution, as I don't run gnome-settings-daemon (which corrects everything). Does anyone know of what I can add to my .gtkrc-2.0 file for font settings?

Do you run any xsettings manager at all? If not, how do you get your apps use the GTK theme you've selected?

Do you run any xsettings manager at all? If not, how do you get your apps use the GTK theme you've selected?

Well I decided not to run the gnome-settings-daemon to set my GTK preferences because it also brings some other GNOME-related settings that I'm not interested in. The only settings file that I'm using is my .gtkrc-2.0 file:

gtk-icon-theme-name = "dlg-etiquette"
gtk-theme-name = "Clearlooks"

style "user-font"
{
		font_name = "Bitstream Vera Sans 8"
}

widget_class "*" style "user-font"

gtk-font-name = "Bitstream Vera Sans 8"

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Popular Now

  • Posts

    • There really isn't anything magical about the low latency profile, other OS's do this as well. All they're doing is using your CPUs boost clock options in a more smarter way.
    • So we shouldn't have the option because of people using their laptops on battery? OK? LOL
    • If you hear that fans for a limited time the CPU spikes to open a app I don't think the problem is with the software. There shouldn't be enough time spent at the higher clocks to produce enough heat to peak the fans. Maybe it's time to crack those dell laptops open and clean them out?
    • ActivePresenter 10.5.1 by Razvan Serea ActivePresenter is a screen recording, video editing, and eLearning authoring tool with a range variety of powerful features, helping you to capture screen and edit captured videos in a matter of minutes. Create professional screencasts that contain stunning annotations and effects, high-resolution graphics, videos, and voiceovers. You can capture any application on your computer, customize it easily by adding background music, closed caption, zoom-n-pan, etc., and finally export it to popular outputs (video, document) that can run on any device or platform. ActivePresenter allows you to generate the presentations in many different output forms such as image, videos (MP4, MKV, and AVI), HTML SlideShows, HTML5 simulations, and documents. More importantly, ActivePresenter free version provides full access to all video editing features, and you can edit and export videos without time limit, watermarks, or ads. ActivePresenter Free Edition features: Advanced recording features: Full Motion Recording, Smart Capture Video editing: Cut, Crop, Join, Change Volume, Speed Up, Slow Down, Blur Multiple Audio/Video Layers Rich annotations: Shapes, Image, Zoom-n-Pan, Closed Caption, Cursor Path, Audio/Video Overlays Automatic Smart Annotation Export to: MP4, FLV, AVI, WMV, WebM, MKV No Watermark and No Time Limit Clean & Safe: No adware, No Annoying Ads ActivePresenter 10.5.1 fixes: [Import PowerPoint]: Only the first slide is imported from some Canva-generated PowerPoint presentations. [Import PowerPoint]: Some Chinese theme fonts are resolved incorrectly. Embedded YouTube videos cannot generate preview thumbnails in the editor or play in HTML5 preview. [macOS]: Resources could be inserted into the current slide unintentionally when clicking or dragging in the Resources pane. [Publish uPresenter]: "Failed to process the presentation" error sometimes appears when publishing projects to uPresenter. [SCORM]: User responses are not reported to the LMS for Mouse Click and Key Stroke interactions. Custom hotkeys are reset or incorrectly remapped after updating from version 10.1.2 or earlier. Download: ActivePresenter 10.5.1 | 176.0 MB (Free, paid upgrade available) Download: ActivePresenter 10.5.1 for macOS | 227.0 MB Links: ActivePresenter Website | Demos | Tutorials | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      FBSPL earned a badge
      Week One Done
    • One Year In
      Jim Dugan earned a badge
      One Year In
    • One Month Later
      Tommi118 earned a badge
      One Month Later
    • One Month Later
      sjbousquet earned a badge
      One Month Later
    • Week One Done
      sjbousquet earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      495
    2. 2
      PsYcHoKiLLa
      198
    3. 3
      +Edouard
      155
    4. 4
      Steven P.
      84
    5. 5
      ATLien_0
      69
  • Tell a friend

    Love Neowin? Tell a friend!