Positioning general-note
Created by: reiniervandijk
Replicate with:
(define-object general-note-sample (base-object)
:objects
((x-axis :type 'line :start (make-point 0 0 0) :end (make-point 1 0 0))
(origin-text :type 'general-note :start (make-point 0 0 0) :outline-shape-type :rectangle :strings "O" :character-size 0.1)))
and see where the text ends up... Am I doing something wrong or what?
Imported comments:
By genworks on 2013-02-23 16:54:50 UTC
Text still acts a bit flakey in non top views. What view are you using, and what output format?
Text output has recently been improved for 3d output in x3d format. Other formats need work for 3d output and non top views for raster and vector output formats.
.
On Feb 23, 2013, at 9:02 AM, reiniervandijk notifications@github.com wrote:
Replicate with:
(define-object general-note-sample (base-object)
:objects ((x-axis :type 'line :start (make-point 0 0 0) :end (make-point 1 0 0)) (origin-text :type 'general-note :start (make-point 0 0 0) :outline-shape-type :rectangle :strings "O" :character-size 0.1))) and see where the text ends up... Am I doing something wrong or what?
— Reply to this email directly or view it on GitHub.
By reiniervandijk on 2013-02-23 23:21:02 UTC
I was using top view and SVG. Text is positioned far from input location. Just replicate wih code provided.
Op 23 feb. 2013 om 17:54 heeft Dave Cooper notifications@github.com het volgende geschreven:
Text still acts a bit flakey in non top views. What view are you using, and what output format?
Text output has recently been improved for 3d output in x3d format. Other formats need work for 3d output and non top views for raster and vector output formats.
.
On Feb 23, 2013, at 9:02 AM, reiniervandijk notifications@github.com wrote:
Replicate with:
(define-object general-note-sample (base-object)
:objects ((x-axis :type 'line :start (make-point 0 0 0) :end (make-point 1 0 0)) (origin-text :type 'general-note :start (make-point 0 0 0) :outline-shape-type :rectangle :strings "O" :character-size 0.1))) and see where the text ends up... Am I doing something wrong or what?
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub.
By genworks on 2013-02-25 00:22:05 UTC
Yep this is an SVG/Raphael bug. PNG output looks correct. Partial fix for SVG is available in
https://github.com/genworks/Genworks-GDL/blob/master/gdl/gwl-graphics/raphael/source/lenses.lisp
Text sizing, font, positioning still need tweaking for SVG so this issue will remain open.