FontLab Forum
2012-02-09, 04:30:28 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the FontLab forum, read how to use it! Update: Archives from old MSN forums are now available on our forum.
 
   Home   Help Search Calendar Downloads Tags Login Register  
Del.icio.us Digg FURL FaceBook Stumble Upon Reddit SlashDot

Pages: [1]
  Print  
Author Topic: Can somebody explain "close the door" option to me?  (Read 2314 times)
ArchivePoster
Guest
« on: 2004-01-03, 17:00:00 »

Posted by: Yannis
         
A happy new year to everybody on this list!

I have a hard time trying to understand what the second minimum distance option means. The "open the door" option means that the link will be always rendered with at least n pixels, where n can be between 0 and 8 pixels.

But what about the "close the door" option? It says in the documentation "Conversely if VTT applies the minimum distance when you'd rather it didn't you can select options from the third row".

I don't see how VTT could apply the minimum distance if we don't ask for it. And if we have asked for it, isn't is simpler to stop asking for it, instead of having a new option that will do the opposite.

And also I don't see what it means to have a minimum distance of, for example, one pixel with the "close the door" option. It says that this allows closing the distance to 0 pixels. But in that case that isn't a minimal distance anymore. And what does the "one pixel" information does for this option?

Any hint (or instruction :-) will be very appreciated.

Cheers

Yannis
Logged
ArchivePoster
Guest
« Reply #1 on: 2004-01-06, 23:56:00 »

Posted by: Si
         
From Beat...
 
Re: the minimum distance: There are some historical reasons that may lead to some confusion here. As far as I recall, the original Typeman Talk compiler didn't allow to override the minimum distance it chose to enforce (or not to enforce). It simply used some heuristic as to when to apply or not to apply a minimum distance. For instance, all black links would get a minimum distance, unless they linked between two points which were at the same coordinate (e.g. an XLink between two points at the same x-coordinate). Moreover, said compiler sometimes didn't choose the correct link colour (i.e. black for interior links, white for exterior links, and grey for anything else). Accordingly it sometimes chose a minimum distance when this wasn't wanted, and sometimes it chose not to have a minimum distance when this would have been wanted.
    Therefore we added optional parameters to the Link (and Dist) commands to override the compiler's heuristic. The options from the second row will translate to code that enforces a minimum distance, while the options from the third row will translate to code that will allow a zero distance. By default, the minimum distance enforced will be one pixel. However, this can be overridden, as well. To do so make sure to check "Minimum Distance" in the "Display Options," then right-click the "open-the-door" symbol. A dial comes up that permits to choose any minimum distance between 0 and 8 pixels. By default, the dial will show a range from 1/2 to 1 1/2 pixels, and the value high-lighted will be 1 pixel, but the dial starts scrolling towards values outside this range as soon as you move the mouse outside this range.
    Thus it is possible to choose a minimum distance of 0, which is the same as changing the behaviour from enforcing a minimum distance to allowing zero distance. Conversely, if you had chosen to allow a zero distance, you could right-click the "close-the-door" symbol and choose a distance other than 0. This effectively changes the behaviour from allowing a zero distance to enforcing a minimum distance.

Logged
Tags:
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!