[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference vaxuum::document_ft

Title:DOCUMENT T1.0
Notice:**New notesfile (DOCUMENT.NOTE) now available (see note 897)**
Moderator:CLOSET::ADLER
Created:Mon Feb 09 1987
Last Modified:Thu Oct 31 1991
Last Successful Update:Fri Jun 06 1997
Number of topics:897
Total number of notes:4397

824.0. "<EMPHASIS> within <FIGURE> & <LINE_ART>" by TREK::WATERS (Lester Waters) Wed Aug 19 1987 12:20

    In a FIGURE environment, I sometimes like to use <EMPHASIS>.
    It appears that DOCUMENT tries to account for the number of
    characters used by the <EMPHASIS>(text\BOLD) command, but is off
    by 1 (that is, it needs to delete 1 more space).  The following
    is an example without using any emphasis:
    
    <FIGURE>(My Picture)
    <FIGURE_ATTRIBUTES>(KEEP)
    <LINE_ART>(KEEP)
    
                                                 ^
                 +--------------------+          |
                 |  Pretty box        |          |
    		 |                    +----------+
                 |                    |
                 +--------------------+
    
    <ENDLINE_ART>
    <ENDFIGURE>
    
    
    And in the output, you get just that (with headers of course):
    
                                                 ^
                 +--------------------+          |
                 |  Pretty box        |          |
    		 |                    +----------+
                 |                    |
                 +--------------------+
    
    Now, if I come back to my picture and emphasize the words
    "Pretty Box", being careful to not introduce any extra spaces:
    
    <FIGURE>(My Picture)
    <FIGURE_ATTRIBUTES>(KEEP)
    <LINE_ART>(KEEP)
    
                                                 ^
                 +--------------------+          |
                 |  <EMPHASIS>(Pretty box\BOLD)        |          |
    		 |                    +----------+
                 |                    |
                 +--------------------+
    
    <ENDLINE_ART>
    <ENDFIGURE>
    
    I should get the figure with the words in bold and everything lined
    up.  What I do get (pretend that the words are in bold):
    
    
                                                 ^
                 +--------------------+          |
                 |  Pretty box         |          |
    		 |                    +----------+
                 |                    |
                 +--------------------+
    
    See how the text on the same line as the words is now off by one
    space.  Of course, the short term work around is to delete one
    space.  That old off-by-one problem!  Thanks.
    
    
    
    
    
T.RTitleUserPersonal
Name
DateLines
824.1Not exactly a space...TREK::WATERSLester WatersWed Aug 19 1987 15:5518
    Hmmmm...   Seems that it is not off by 1 exactly, but some
    fraction thereof.  Perhaps BOLD is a wider font and the ratio
    between it and normal (if any) hasn't been taken into account
    for space compensation.
    
    If I remove a single space to try to compensate, sometimes it
    works; other times, I end up with not enough space to align
    vertical items:
    
    		        |
    		       |    <---- this one would be only slightly misaliged
    		        |         (but very noticable)
    
    
    

   
    
824.2good question!REGENT::MERRILLGlyph, and the world glyphs with u,...Fri Aug 21 1987 10:039
    Mixing fonts with line drawings is always perilous! Is there any
    way of OVERSTRIKING a linedrawing with proportional fonts???
    
    That would let the spacing be independent of bold or italic or
    bold-italic fonts.
    
    	Rick
    	Merrill
    
824.3TREK::WATERSLester WatersSat Aug 22 1987 22:185
    
    By the way, I'm using VAX DOCUMENT T1.0-008
    
    
    
824.4fixed in V1.0CLOSET::ANKLAMMon Aug 24 1987 08:594
    
    That was a bug in Base Level 8. It has been fixed in V1.0.
    
    -pa