Denis Auroux twisted the bytes to say:

 Denis> Hi Daniel,
 Denis> On 03/21/2014 08:41 PM, dmg wrote:
 >> Sorry I wasn't specific enough. Yes, pen strokes. The reason is that
 >> with a pressure sensitive stylus, handwritten text  is nicer and more
 >> readable.
 >> 
 >> but sometimes I would like to change the thickness of the text after I
 >> have written it without rescaling it.
 >> 
 >> Maybe what we need is an option that defaults to set width. If not
 >> set, rescales width.
 >> 
 >> I guess the problem is that strokes do not record the maximum width
 >> text was written with them. The only feasible way is
 >> to scan the text, find the maximum width, and rescale accordingly:
 >> newWidth = oldWidth * currentWidth/ maxWidth. That would
 >> work for me.

 Denis> Actually strokes DO record the nominal width of the brush (which isn't
 Denis> quite the maximal width, assuming your stylus uses its full nominal
 Denis> pressure range -- the maximal width that a variable-width stroke can
 Denis> reach is slightly more than the width of the corresponding fixed-width
 Denis> stroke). Cf. width_minimum_multiplier and width_maximum_multiplier
 Denis> constants in the config file, and the code for get_pressure_multiplier()
 Denis> in xo-misc.c).

Hi Denis,

Reading the code, does this mean that in a stroke, the first width is
the pen width (what you call the nominal value)? and then the second
value is the width of the first segment, the third of the second
segment, etc. etc.?

<stroke tool="pen" color="red" width="1.41 0.51 0.53 0.34 0.07">
196.57 423.87 196.80 423.54 196.97 423.32 197.40 423.54 197.60 423.82 
</stroke>


--
Daniel M. German                  "Beauty is the first test; there is no
                                   permanent place in the world for ugly
   G. H. Hardy ->                  mathematics."
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .

 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Xournal-devel mailing list
Xournal-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xournal-devel

Reply via email to