Lazarus

Using the Lazarus IDE => General => Topic started by: jack6th on December 08, 2021, 09:57:00 am

Title: How to change the offline help (LHelp) font family and font size ?
Post by: jack6th on December 08, 2021, 09:57:00 am
On Windows LHelp use the roman font and the font size looks small. 
I tried to increase the font size with Ctrl+Wheel.  But it not work.
I cannot find any css file in the lazarus/components/chmhelp/lhelp.
How to customize the font family and font size ?
Title: Re: How to change the offline help (LHelp) font family and font size ?
Post by: wp on December 08, 2021, 11:54:34 am
The IpHtmlPanel has properties DefaultTypeFace and DefaultFontSize for the standard font. However, these are only used when no other font information is available in the html document or css file.

You could edit the css file of the Lazarus/fpc help system and you could rebuild to help files... Not good, I know...

Simpler, since you seem to be on Windows: Just use the built-in chm viewer of Windows to display the help files. Follow the instructions on https://wiki.freepascal.org/Installing_Help_in_the_IDE#Installing_CHM_help_.28Lazarus_1.0_and_later.29:

Quote
If you are on Windows you can also use the Windows-internal help viewer:
  *  "HelpExe" should be hh.exe
  *  "HelpExeParams" must be "%s::%s" (WITH QUOTES, note the double colon).

On Linux you could install one of the chm viewers available and try to set up Lazarus help for it similarly. I did not try it myself, but I am rather sure that it should work, too. (If you find a solution for this idea report it so that the wiki can be updated).
Title: Re: How to change the offline help (LHelp) font family and font size ?
Post by: dsiders on December 08, 2021, 03:33:31 pm
On Windows LHelp use the roman font and the font size looks small. 
I tried to increase the font size with Ctrl+Wheel.  But it not work.
I cannot find any css file in the lazarus/components/chmhelp/lhelp.
How to customize the font family and font size ?

In addition to what @wp posted:

The font family can only be changed when the CHM file is built. It is compiled into the CHM file. The CSS file is located at docs/html/fpdoc.css.
TinyPortal © 2005-2018