X
Tap here to go to the mobile version of the site.

Support Forum

How to change default font weight ?

Posted

I would like to use Roboto Medium as my default font for firefox, but I am unable to select select a different font weight. I am on Linux. In Gnome settings, under Roboto, I can choose various weights like Light, Medium, etc., but not in Firefox. It take the default normal weight. Is there an advanced configuration where I can change it ?

I would like to use Roboto Medium as my default font for firefox, but I am unable to select select a different font weight. I am on Linux. In Gnome settings, under Roboto, I can choose various weights like Light, Medium, etc., but not in Firefox. It take the default normal weight. Is there an advanced configuration where I can change it ?

Chosen solution

Hi jayaura, userChrome.css is for the browser "chrome" (user interface area). To modify web pages, you can create a file named userContent.css in the same folder.

Alternately, you can use the Stylus extension, which is a bit easier because you can preview changes in real time rather than having to restart Firefox.

https://addons.mozilla.org/firefox/addon/styl-us/

Or you could look for extensions that are specific to fonts on websites with a more convenient interface.

Read this answer in context 1
Quote

Additional System Details

Application

  • Firefox 60.0.1
  • User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
  • Support URL: https://support.mozilla.org/1/firefox/60.0.1/Linux/en-US/

Extensions

  • Bitwarden - Free Password Manager 1.27.0 ({446900e4-71c2-419f-a6a7-df9c091e268b})
  • Emoji Cheatsheet for GitHub, Basecamp etc. 2.0.1 (jid1-Xo5SuA6qc1DFpw@jetpack)
  • Enhancer for YouTube™ 2.0.71 (enhancerforyoutube@maximerf.addons.mozilla.org)
  • GNOME Shell integration 10.1 (chrome-gnome-shell@gnome.org)
  • Hide Title Bar 1.2 (hidetitlebar@gkfx.github.com)
  • Privacy Badger 2018.5.10 (jid1-MnnxcxisBPnSXQ@jetpack)
  • uBlock Origin 1.16.8 (uBlock0@raymondhill.net)
  • Video Blocker 5.2.5 (jid1-3OQ5HY7YsLBV7Q@jetpack)
  • Video Downloader professional 1.98.2 (ffext_basicvideoext@startpage24)
  • Master Password+ 1.29.2 (masterpasswordtimeoutplus@vano) (Inactive)
  • Tab Groups 2.1.4 (tabgroups@quicksaver) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: Intel Open Source Technology Center -- Mesa DRI Intel(R) Haswell Mobile
  • adapterDeviceID: Mesa DRI Intel(R) Haswell Mobile
  • adapterDrivers:
  • adapterRAM:
  • adapterVendorID: Intel Open Source Technology Center
  • crashGuards: []
  • driverDate:
  • driverVersion: 3.0 Mesa 18.0.4
  • featureLog: {u'fallbacks': [], u'features': [{u'status': u'blocked', u'description': u'Compositing', u'log': [{u'status': u'blocked', u'message': u'Acceleration blocked by platform', u'type': u'default'}], u'name': u'HW_COMPOSITING'}, {u'status': u'unavailable', u'description': u'OpenGL Compositing', u'log': [{u'status': u'unavailable', u'message': u'Hardware compositing is disabled', u'type': u'default'}], u'name': u'OPENGL_COMPOSITING'}, {u'status': u'unavailable', u'description': u'WebRender', u'log': [{u'status': u'opt-in', u'message': u'WebRender is an opt-in feature', u'type': u'default'}, {u'status': u'unavailable', u'message': u"Build doesn't include WebRender", u'type': u'runtime'}], u'name': u'WEBRENDER'}, {u'status': u'disabled', u'description': u'Off Main Thread Painting', u'log': [{u'status': u'disabled', u'message': u'Disabled by default', u'type': u'default'}], u'name': u'OMTP'}]}
  • info: {u'ApzWheelInput': 1, u'ApzDragInput': 1, u'ApzKeyboardInput': 1, u'CairoUseXRender': 0, u'ApzAutoscrollInput': 1, u'AzureFallbackCanvasBackend': u'none', u'AzureCanvasAccelerated': 0, u'AzureCanvasBackend': u'skia', u'AzureContentBackend': u'skia'}
  • numAcceleratedWindows: 0
  • numAcceleratedWindowsMessage: [u'']
  • numTotalWindows: 1
  • offMainThreadPaintEnabled: False
  • offMainThreadPaintWorkerCount: 0
  • usesTiling: False
  • webgl1DriverExtensions: GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_trinary_minmax GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_APPLE_object_purgeable GL_APPLE_packed_pixels GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_derivative_control GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_storage_buffer_object GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_texture_barrier GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_filter_anisotropic GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_window_pos GL_ATI_blend_equation_separate GL_ATI_draw_buffers GL_ATI_separate_stencil GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_texture GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_gpu_program_parameters GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shader_integer_mix GL_EXT_shader_samples_identical GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_sRGB_decode GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_INTEL_performance_query GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_MESA_window_pos GL_NV_blend_square GL_NV_conditional_render GL_NV_depth_clamp GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_primitive_restart GL_NV_texgen_reflection GL_NV_texture_barrier GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_OES_EGL_image GL_OES_read_format GL_S3_s3tc GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays
  • webgl1Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_frag_depth EXT_sRGB EXT_shader_texture_lod EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_etc WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context
  • webgl1Renderer: Intel Open Source Technology Center -- Mesa DRI Intel(R) Haswell Mobile
  • webgl1Version: 3.0 Mesa 18.0.4
  • webgl1WSIInfo: GLX 1.4 GLX_VENDOR(client): Mesa Project and SGI GLX_VENDOR(server): SGI Extensions: GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_create_context_robustness GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_buffer_age GLX_EXT_create_context_es2_profile GLX_EXT_create_context_es_profile GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_import_context GLX_EXT_texture_from_pixmap GLX_EXT_visual_info GLX_EXT_visual_rating GLX_INTEL_swap_event GLX_MESA_copy_sub_buffer GLX_MESA_multithread_makecurrent GLX_MESA_query_renderer GLX_MESA_swap_control GLX_OML_swap_method GLX_OML_sync_control GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGI_video_sync
  • webgl2DriverExtensions: GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_trinary_minmax GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_APPLE_object_purgeable GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_occlusion_query2 GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map_array GL_ARB_texture_filter_anisotropic GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ATI_blend_equation_separate GL_ATI_texture_float GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_sRGB GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_shader_integer_mix GL_EXT_shader_samples_identical GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_sRGB GL_EXT_texture_sRGB_decode GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_IBM_multimode_draw_arrays GL_INTEL_performance_query GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_NV_conditional_render GL_NV_depth_clamp GL_NV_packed_depth_stencil GL_NV_texture_barrier GL_OES_EGL_image GL_S3_s3tc
  • webgl2Extensions: EXT_color_buffer_float EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_texture_float_linear WEBGL_compressed_texture_etc WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context
  • webgl2Renderer: Intel Open Source Technology Center -- Mesa DRI Intel(R) Haswell Mobile
  • webgl2Version: 4.5 (Core Profile) Mesa 18.0.4
  • webgl2WSIInfo: GLX 1.4 GLX_VENDOR(client): Mesa Project and SGI GLX_VENDOR(server): SGI Extensions: GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_create_context_robustness GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_buffer_age GLX_EXT_create_context_es2_profile GLX_EXT_create_context_es_profile GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_import_context GLX_EXT_texture_from_pixmap GLX_EXT_visual_info GLX_EXT_visual_rating GLX_INTEL_swap_event GLX_MESA_copy_sub_buffer GLX_MESA_multithread_makecurrent GLX_MESA_query_renderer GLX_MESA_swap_control GLX_OML_swap_method GLX_OML_sync_control GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGI_video_sync
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Basic
  • windowUsingAdvancedLayers: False

Modified Preferences

Misc

  • User JS: No
  • Accessibility: No
Mattia 0 solutions 13 answers

Hello, you can change the font and colors directly from the advanced settings of Mozilla Firefox. You can do this by going from the menu, options and going in general. you should solve your problem. See you soon.

Hello, you can change the font and colors directly from the advanced settings of Mozilla Firefox. You can do this by going from the menu, options and going in general. you should solve your problem. See you soon.
Was this helpful to you? 0
Quote
Pkshadow
  • Top 10 Contributor
920 solutions 12076 answers

Hi, you get what is there if it is there : https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use

Please let us know if this solved your issue or if need further assistance.

Hi, you get what is there if it is there : https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use Please let us know if this solved your issue or if need further assistance.
Was this helpful to you? 0
Quote

Question owner

Thank you MattiaN and Pkshadow for your response, but sadly my problem is not solved. Please see the attached screenshots. As you can see in the advanced settings, Roboto Medium is not listed. If you are on Linux, you can easily check out this font, as its available in the reposities for most distros.

You may compare it to how other font selection dialog boxes deal with it. The other screenshot is from openbox configuration.

Can I manually change the font configuration like I can do with GTK3 by editing its $(XDG_CONFIG_HOME}/gtk-3.0/settings.ini and then by adding "gtk-font-name=Roboto Medium 12"

Thank you MattiaN and Pkshadow for your response, but sadly my problem is not solved. Please see the attached screenshots. As you can see in the advanced settings, Roboto Medium is not listed. If you are on Linux, you can easily check out this font, as its available in the reposities for most distros. You may compare it to how other font selection dialog boxes deal with it. The other screenshot is from openbox configuration. Can I manually change the font configuration like I can do with GTK3 by editing its $(XDG_CONFIG_HOME}/gtk-3.0/settings.ini and then by adding "gtk-font-name=Roboto Medium 12"

Modified by jayaura

Was this helpful to you?
Quote

Question owner

Knock Knock

Basically I'd like firefox to support "Font Styles". I hope thats the right term for this ?

Knock Knock Basically I'd like firefox to support "Font Styles". I hope thats the right term for this ?
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
7448 solutions 60790 answers

Hi jayaura, I don't know how Firefox selects the font file for the "normal" weight. Could you try manually overriding the font file name and see whether it works:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste west and pause while the list is filtered

Firefox should list all of the fonts assigned for "Latin" character sets.

(3) Double-click the font.name-list.serif.x-western preference to display a dialog where you can edit the font name, then click OK

Does that work? If things bring, right-click > Reset the preference.


Support volunteers are limited in what we can do: we work with existing settings, add-ons, and workarounds; we can't change Firefox itself. To submit feature suggestions, you could use one or more of the following (depending on whether you want a suggestion box or a discussion):

Hi jayaura, I don't know how Firefox selects the font file for the "normal" weight. Could you try manually overriding the font file name and see whether it works: (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk. (2) In the search box above the list, type or paste '''west''' and pause while the list is filtered ''Firefox should list all of the fonts assigned for'' "Latin" ''character sets.'' (3) Double-click the '''font''.''name-list.serif.x-western''' preference to display a dialog where you can edit the font name, then click OK Does that work? If things bring, right-click > Reset the preference. ---- Support volunteers are limited in what we can do: we work with existing settings, add-ons, and workarounds; we can't change Firefox itself. To submit feature suggestions, you could use one or more of the following (depending on whether you want a suggestion box or a discussion): * Feedback: https://qsurvey.mozilla.com/s3/FirefoxInput/ * Reddit: https://www.reddit.com/r/firefox/ * Twitter: https://twitter.com/firefox * Facebook: https://www.facebook.com/Firefox

Modified by jscher2000

Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
16401 solutions 147969 answers

You probably need to use code in userChrome.css to set the font-family and the font-weight. You need to set the correct font-weight to make Firefox use a specific font (not sure if bolder would work here).

You probably need to use code in userChrome.css to set the font-family and the font-weight. You need to set the correct font-weight to make Firefox use a specific font (not sure if bolder would work here). *https://developer.mozilla.org/en-US/docs/Web/CSS/font-familie *https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight
Was this helpful to you?
Quote

Question owner

jscher2000 said

Hi jayaura, I don't know how Firefox selects the font file for the "normal" weight. Could you try manually overriding the font file name and see whether it works: (1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk. (2) In the search box above the list, type or paste west and pause while the list is filtered Firefox should list all of the fonts assigned for "Latin" character sets. (3) Double-click the font.name-list.serif.x-western preference to display a dialog where you can edit the font name, then click OK Does that work? If things bring, right-click > Reset the preference.

Support volunteers are limited in what we can do: we work with existing settings, add-ons, and workarounds; we can't change Firefox itself. To submit feature suggestions, you could use one or more of the following (depending on whether you want a suggestion box or a discussion):

Sadly it didnt work. I tried "Roboto Medium" and "Roboto\ Medium" as well

''jscher2000 [[#answer-1122911|said]]'' <blockquote> Hi jayaura, I don't know how Firefox selects the font file for the "normal" weight. Could you try manually overriding the font file name and see whether it works: (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk. (2) In the search box above the list, type or paste '''west''' and pause while the list is filtered ''Firefox should list all of the fonts assigned for'' "Latin" ''character sets.'' (3) Double-click the '''font''.''name-list.serif.x-western''' preference to display a dialog where you can edit the font name, then click OK Does that work? If things bring, right-click > Reset the preference. ---- Support volunteers are limited in what we can do: we work with existing settings, add-ons, and workarounds; we can't change Firefox itself. To submit feature suggestions, you could use one or more of the following (depending on whether you want a suggestion box or a discussion): * Feedback: https://qsurvey.mozilla.com/s3/FirefoxInput/ * Reddit: https://www.reddit.com/r/firefox/ * Twitter: https://twitter.com/firefox * Facebook: https://www.facebook.com/Firefox </blockquote> Sadly it didnt work. I tried "Roboto Medium" and "Roboto\ Medium" as well
Was this helpful to you?
Quote

Question owner

cor-el said

You probably need to use code in userChrome.css to set the font-family and the font-weight. You need to set the correct font-weight to make Firefox use a specific font (not sure if bolder would work here).

Thanks for the pointer, I have the following in my ~/.mozilla/chrome/userChrome.css:

   @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
   /* Global UI font */
   * { font-size: 30pt !important;
     font-family: Verdana !important;
   }

I put 30pt to spot easily visible difference. Looks like these settings are not being respected. Is there something I'm doing wrong ?

''cor-el [[#answer-1123058|said]]'' <blockquote> You probably need to use code in userChrome.css to set the font-family and the font-weight. You need to set the correct font-weight to make Firefox use a specific font (not sure if bolder would work here). *https://developer.mozilla.org/en-US/docs/Web/CSS/font-familie *https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight </blockquote> Thanks for the pointer, I have the following in my ~/.mozilla/chrome/userChrome.css: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* Global UI font */ * { font-size: 30pt !important; font-family: Verdana !important; } I put 30pt to spot easily visible difference. Looks like these settings are not being respected. Is there something I'm doing wrong ?
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
16401 solutions 147969 answers

You need to create the chrome folder in the profile folder and place userChrome.css in this folder.

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

You need to create the chrome folder in the profile folder and place userChrome.css in this folder. You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the <b>about:profiles</b> page. *Help -> Troubleshooting Information -> Profile Directory:<br>Windows: Show Folder; Linux: Open Directory; Mac: Show in Finder *http://kb.mozillazine.org/Profile_folder_-_Firefox
Was this helpful to you?
Quote

Question owner

cor-el said

You need to create the chrome folder in the profile folder and place userChrome.css in this folder. You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

Thank for the detailed info! However, the settings in userChrome.css is only affecting Firefox's own interface, and not the web pages. In the screen shot, I globally set the font family to a monospaced font (same lines from the previous post from me). But its not reflected in phoronix.com, which respects Firefox font setting.

''cor-el [[#answer-1123109|said]]'' <blockquote> You need to create the chrome folder in the profile folder and place userChrome.css in this folder. You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the <b>about:profiles</b> page. *Help -> Troubleshooting Information -> Profile Directory:<br>Windows: Show Folder; Linux: Open Directory; Mac: Show in Finder *http://kb.mozillazine.org/Profile_folder_-_Firefox </blockquote> Thank for the detailed info! However, the settings in userChrome.css is only affecting Firefox's own interface, and not the web pages. In the screen shot, I globally set the font family to a monospaced font (same lines from the previous post from me). But its not reflected in phoronix.com, which respects Firefox font setting.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
7448 solutions 60790 answers

Chosen Solution

Hi jayaura, userChrome.css is for the browser "chrome" (user interface area). To modify web pages, you can create a file named userContent.css in the same folder.

Alternately, you can use the Stylus extension, which is a bit easier because you can preview changes in real time rather than having to restart Firefox.

https://addons.mozilla.org/firefox/addon/styl-us/

Or you could look for extensions that are specific to fonts on websites with a more convenient interface.

Hi jayaura, userChrome.css is for the browser "chrome" (user interface area). To modify web pages, you can create a file named userContent.css in the same folder. Alternately, you can use the Stylus extension, which is a bit easier because you can preview changes in real time rather than having to restart Firefox. https://addons.mozilla.org/firefox/addon/styl-us/ Or you could look for extensions that are specific to fonts on websites with a more convenient interface.
Was this helpful to you? 1
Quote

Question owner

Thank you so much! Stylus extension worked for me!

Thank you so much! Stylus extension worked for me!

Modified by jayaura

Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.