in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Variable Font Size in CHM-Files

Last post 04-30-2008 1:39 AM by Cossman. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-28-2008 7:54 AM

    Variable Font Size in CHM-Files

    With HTML-sources I can modify the corresponding CSS-Template to create CHM-Files without fixing the font size (e.g. you can use ctrl + mouse wheel to increase or decrease the font size in the viewer). To achieve that I could set the font size to 120 %.

    How can I do this with Word-Sources. In the corresponding Word-Template I can only define font sizes with a absolute value. In the build CHM-File the font sizes are fixed. CTRL + mouse wheel doesn't change anything.

    Thanks for reading (and answering?)!

  • 04-28-2008 10:51 AM In reply to

    Re: Variable Font Size in CHM-Files

    Hi,

     

    Please note that when pressing the ctrl + mouse wheel in the template we are not increasing the size of the font but we are zooming in text written on the template.

     

    These are different two things, change of the font size by increasing the font size and Zoom in the text document is a different thing. When we press ctrl+ mouse wheel we are actually Zoom In or Zoom out of the document, but we are not actually changing the size of the font.

     

    Zoom In and Zoom Out parameters depend upon the parameters on how to view the text that we use, yes of course we can also Zoom in or Out in the Word Source document but at that time we are again not actually changing the text size.

     

    One more thing that I need to inform you that If we are generating the chm help file then if we use the HTML sources or Word source by default Doc-To-Help uses C1H_HTML.Dot template for both.

     

    In order to increase the font size I would suggest you to increase the font size rather than Zoom in the text size.

     

    Have a nice day.

     

    Regards,
    Andrew

      

    <Cossman> wrote in message news:204327@10.0.1.98...

    With HTML-sources I can modify the corresponding CSS-Template to create CHM-Files without fixing the font size (e.g. you can use ctrl + mouse wheel to increase or decrease the font size in the viewer). To achieve that I could set the font size to 120 %.

    How can I do this with Word-Sources. In the corresponding Word-Template I can only define font sizes with a absolute value. In the build CHM-File the font sizes are fixed. CTRL + mouse wheel doesn't change anything.

    Thanks for reading (and answering?)!



    http://helpcentral.componentone.com/cs/forums/p/75087/204327.aspx#204327

  • 04-30-2008 1:39 AM In reply to

    Re: Variable Font Size in CHM-Files

    First of all: thanks for the answer Andrew!

    But I didn't mean the MS Word zoom factor. So I try to explain my problem in another way.

    My goal is to let the user of my CHM help file decide which font size he want's to use. If you are working with a 20" display a 12 pt font size might be fine. But if you use a 7" display (e.g. eeePC), a smartphone or if you are visually handycapped the wish to increase the fonts grows. I've already used such CHM files which enabled the ctrl + mouse wheel function of the Internet Explorer in the HTML Help Control (Microsoft's CHM viewer).

    When I create a help project based on word sources with DTH the compilation process generates a css file in drive:\projectdir\HTMLHelp\LinksExt\C1H_HTML.css. This file contains an entry e.g.

    H1 {..... FONT-SIZE: 20pt; }

    The unit pt creates a fixed font size in my chm file, so that you cannot use ctrl + mouse wheel IN MY CHM FILE. However, to correct that behavior I need a style e.g.

    H1 {..... FONT-SIZE: 120%; }

    As far as I understand the css file drive:\projectdir\HTMLHelp\LinksExt\C1H_HTML.css is created from the styles in my target Word template. But how can I define a percental font size in my target DOT. Is this possible at all or is there another workaround?

    Sorry, English is not my native language. Thas might be the reason why you could misunderstand my first problem description. Building this few sentences together was so hard for me that I need a break now :)

    Thanks again,
    Cossman

     

Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.