canvasdraw-users Mailing List for CD (Page 4)
Brought to you by:
scuri
You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(12) |
Nov
(1) |
Dec
|
2012 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(7) |
Oct
|
Nov
(7) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(13) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(7) |
2020 |
Jan
(12) |
Feb
(3) |
Mar
(11) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Antonio S. <sc...@te...> - 2014-07-26 18:15:06
|
Hi All, The 5.8 version of the CD library has been released. We would like to highlight the following features: - new CD_IUPDBUFFER and CD_IUPDBUFFERRGB drivers to simplify the creation of a double buffer using a single canvas. They are necessary for the upcoming IUP 3.11 version. - FTGL font size fixed. You can find the complete list of changes and files for download at: http://www.tecgraf.puc-rio.br/cd/ Best Regards, Antonio Scuri |
From: Antonio S. <ant...@gm...> - 2013-11-22 15:54:10
|
Hi All, The 5.7 version of the CD library has been released. We would like to highlight the following feature: - support for UTF-8 strings in cdCanvasText using the canvas attribute UTF8MODE for the GL, Win32, GDI+, GDK and Cairo drivers. You can find the complete list of changes and files for download at: <http://www.tecgraf.puc-rio.br/cd/> http://www.tecgraf.puc-rio.br/cd/ Best Regards, Antonio Scuri |
From: Antonio S. <ant...@gm...> - 2013-07-04 13:46:33
|
Hi, Thanks. Amazing how Microsoft can turn simple things into a mess. But this is not just a compiler issue, it is an issue for Windows 8.1. Reading this: http://msdn.microsoft.com/en-us/library/windows/desktop/ms725491(v=vs.85).as px I think that there are two things. First you patch can be used without the ifdef and may completely replace the old code because VerifyVersionInfo seems to be available since Windows 2000. Must check if it will compile with older compilers. Second, independent from that code, to detect Windows 8.1 we will need to do more than that. Will we? Are you using Windows 8.1 Preview? Or just vc11 issue a warning? Best, Scuri > -----Original Message----- > From: Michael [mailto:de...@m1...] > Sent: quinta-feira, 4 de julho de 2013 06:21 > To: can...@li... > Subject: [Canvasdraw-users] CD and VS 2013 > > Trying to build the CD with VS2013. > Some version-helper functions was deprecated in new VS. > Patch with workaround in attachments. > Thanks) |
From: Michael <de...@m1...> - 2013-07-04 09:33:32
|
Trying to build the CD with VS2013. Some version-helper functions was deprecated in new VS. Patch with workaround in attachments. Thanks) |
From: Antonio S. <ant...@gm...> - 2013-05-09 14:42:07
|
Hi All, The 5.6.1 version of the CD library has been released. This is just a bug fix. You can find the list of changes and files for download at: http://www.tecgraf.puc-rio.br/cd/ Best Regards, Antonio Scuri |
From: Peter C. <k9...@ya...> - 2013-01-11 17:07:47
|
Hi I have worked around the problem so I don't need to put you to the trouble of sending the DLLs - I'll wait for the next official release. Thanks for fixing the bug. Ken ----- Original Message ----- From: Antonio Scuri <ant...@gm...> To: 'Peter Campbell' <k9...@ya...>; 'CD discussion list.' <can...@li...> Cc: Sent: Wednesday, January 9, 2013 11:25:23 AM Subject: RE: [Canvasdraw-users] Problem drawing arcs in a path Hi, There was a bug. It is now fixed and committed to CVS. If you want I can provide you with an updated set of DLLs. Best, Scuri > -----Original Message----- > From: Peter Campbell [mailto:k9...@ya...] > Sent: quarta-feira, 2 de janeiro de 2013 16:05 > To: can...@li... > Subject: [Canvasdraw-users] Problem drawing arcs in a path > > Hi, > > I'm using CD with Lua 5.1 on Windows XP, and I've noticed a problem with the > cd.PATH_ARC option in the canvas:PathSet() function, when the canvas origin is > changed using canvas:Origin(). An example follows to demonstrate the issue. > When the scrollbars are moved the shape drawn by the path functions should > only move, but it is distorted as well. > > Only cd.PATH_ARC seems to have this problem, cd.PATH_CURVETO works OK. > > Thanks, > Ken > > require "iuplua" > require "cdlua" > require "iupluacd" > > -- Lua 5.1 > -- Iup 3.7 > -- Cd 5.6 > > demo = iup.canvas{scrollbar="YES"} > demo.map_cb = function (self) > self.canvas = cd.CreateCanvas(cd.IUP, self) end > > demo.action = function (self) > self.canvas:Activate() > self:draw() > end > > demo.scroll_cb = function (self, op, posx, posy) > self.canvas:Origin(-60*posx, 60*posy) > self:draw() > end > > demo.draw = function (self) > local x, y, w, d = 100, 60, 200, 100 > local cv = self.canvas > local r = d/2 > > cv:Clear() > cv:SetForeground(cd.RED) > cv:Rect(x-1, x+w+1, y-1, y+d+1) > cv:SetForeground(cd.BLUE) > > cv:Begin(cd.PATH) > cv:PathSet(cd.PATH_MOVETO); cv:Vertex(x+r, y) > cv:PathSet(cd.PATH_ARC); cv:Vertex(x+r, y+r); cv:Vertex(d, d); > cv:Vertex(270000, 90000) > cv:PathSet(cd.PATH_LINETO); cv:Vertex(x+w-r, y+d) > cv:PathSet(cd.PATH_ARC); cv:Vertex(x+w-r, y+r); cv:Vertex(d, d); > cv:Vertex(90000, -90000) > cv:PathSet(cd.PATH_CLOSE) > cv:PathSet(cd.PATH_STROKE) > cv:End() > end > > dlg = iup.dialog{demo, title="Canvas Origin Problem", size="300x200"} > dlg:show() > iup.MainLoop () > > > ---------------------------------------------------------------------------- -- > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much > more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > _______________________________________________ > Canvasdraw-users mailing list > Can...@li... > https://lists.sourceforge.net/lists/listinfo/canvasdraw-users |
From: Antonio S. <ant...@gm...> - 2013-01-09 17:25:36
|
Hi, There was a bug. It is now fixed and committed to CVS. If you want I can provide you with an updated set of DLLs. Best, Scuri > -----Original Message----- > From: Peter Campbell [mailto:k9...@ya...] > Sent: quarta-feira, 2 de janeiro de 2013 16:05 > To: can...@li... > Subject: [Canvasdraw-users] Problem drawing arcs in a path > > Hi, > > I'm using CD with Lua 5.1 on Windows XP, and I've noticed a problem with the > cd.PATH_ARC option in the canvas:PathSet() function, when the canvas origin is > changed using canvas:Origin(). An example follows to demonstrate the issue. > When the scrollbars are moved the shape drawn by the path functions should > only move, but it is distorted as well. > > Only cd.PATH_ARC seems to have this problem, cd.PATH_CURVETO works OK. > > Thanks, > Ken > > require "iuplua" > require "cdlua" > require "iupluacd" > > -- Lua 5.1 > -- Iup 3.7 > -- Cd 5.6 > > demo = iup.canvas{scrollbar="YES"} > demo.map_cb = function (self) > self.canvas = cd.CreateCanvas(cd.IUP, self) end > > demo.action = function (self) > self.canvas:Activate() > self:draw() > end > > demo.scroll_cb = function (self, op, posx, posy) > self.canvas:Origin(-60*posx, 60*posy) > self:draw() > end > > demo.draw = function (self) > local x, y, w, d = 100, 60, 200, 100 > local cv = self.canvas > local r = d/2 > > cv:Clear() > cv:SetForeground(cd.RED) > cv:Rect(x-1, x+w+1, y-1, y+d+1) > cv:SetForeground(cd.BLUE) > > cv:Begin(cd.PATH) > cv:PathSet(cd.PATH_MOVETO); cv:Vertex(x+r, y) > cv:PathSet(cd.PATH_ARC); cv:Vertex(x+r, y+r); cv:Vertex(d, d); > cv:Vertex(270000, 90000) > cv:PathSet(cd.PATH_LINETO); cv:Vertex(x+w-r, y+d) > cv:PathSet(cd.PATH_ARC); cv:Vertex(x+w-r, y+r); cv:Vertex(d, d); > cv:Vertex(90000, -90000) > cv:PathSet(cd.PATH_CLOSE) > cv:PathSet(cd.PATH_STROKE) > cv:End() > end > > dlg = iup.dialog{demo, title="Canvas Origin Problem", size="300x200"} > dlg:show() > iup.MainLoop () > > > ---------------------------------------------------------------------------- -- > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much > more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > _______________________________________________ > Canvasdraw-users mailing list > Can...@li... > https://lists.sourceforge.net/lists/listinfo/canvasdraw-users |
From: Antonio S. <ant...@gm...> - 2013-01-03 13:11:39
|
Hi, I'll make some tests here. Get back to you soon. Best, Scuri > -----Original Message----- > From: Peter Campbell [mailto:k9...@ya...] > Sent: quarta-feira, 2 de janeiro de 2013 16:05 > To: can...@li... > Subject: [Canvasdraw-users] Problem drawing arcs in a path > > Hi, > > I'm using CD with Lua 5.1 on Windows XP, and I've noticed a problem with the > cd.PATH_ARC option in the canvas:PathSet() function, when the canvas origin is > changed using canvas:Origin(). An example follows to demonstrate the issue. > When the scrollbars are moved the shape drawn by the path functions should > only move, but it is distorted as well. > > Only cd.PATH_ARC seems to have this problem, cd.PATH_CURVETO works OK. > > Thanks, > Ken > > require "iuplua" > require "cdlua" > require "iupluacd" > > -- Lua 5.1 > -- Iup 3.7 > -- Cd 5.6 > > demo = iup.canvas{scrollbar="YES"} > demo.map_cb = function (self) > self.canvas = cd.CreateCanvas(cd.IUP, self) end > > demo.action = function (self) > self.canvas:Activate() > self:draw() > end > > demo.scroll_cb = function (self, op, posx, posy) > self.canvas:Origin(-60*posx, 60*posy) > self:draw() > end > > demo.draw = function (self) > local x, y, w, d = 100, 60, 200, 100 > local cv = self.canvas > local r = d/2 > > cv:Clear() > cv:SetForeground(cd.RED) > cv:Rect(x-1, x+w+1, y-1, y+d+1) > cv:SetForeground(cd.BLUE) > > cv:Begin(cd.PATH) > cv:PathSet(cd.PATH_MOVETO); cv:Vertex(x+r, y) > cv:PathSet(cd.PATH_ARC); cv:Vertex(x+r, y+r); cv:Vertex(d, d); > cv:Vertex(270000, 90000) > cv:PathSet(cd.PATH_LINETO); cv:Vertex(x+w-r, y+d) > cv:PathSet(cd.PATH_ARC); cv:Vertex(x+w-r, y+r); cv:Vertex(d, d); > cv:Vertex(90000, -90000) > cv:PathSet(cd.PATH_CLOSE) > cv:PathSet(cd.PATH_STROKE) > cv:End() > end > > dlg = iup.dialog{demo, title="Canvas Origin Problem", size="300x200"} > dlg:show() > iup.MainLoop () > > > ---------------------------------------------------------------------------- -- > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much > more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > _______________________________________________ > Canvasdraw-users mailing list > Can...@li... > https://lists.sourceforge.net/lists/listinfo/canvasdraw-users |
From: Peter C. <k9...@ya...> - 2013-01-02 18:05:36
|
Hi, I'm using CD with Lua 5.1 on Windows XP, and I've noticed a problem with the cd.PATH_ARC option in the canvas:PathSet() function, when the canvas origin is changed using canvas:Origin(). An example follows to demonstrate the issue. When the scrollbars are moved the shape drawn by the path functions should only move, but it is distorted as well. Only cd.PATH_ARC seems to have this problem, cd.PATH_CURVETO works OK. Thanks, Ken require "iuplua" require "cdlua" require "iupluacd" -- Lua 5.1 -- Iup 3.7 -- Cd 5.6 demo = iup.canvas{scrollbar="YES"} demo.map_cb = function (self) self.canvas = cd.CreateCanvas(cd.IUP, self) end demo.action = function (self) self.canvas:Activate() self:draw() end demo.scroll_cb = function (self, op, posx, posy) self.canvas:Origin(-60*posx, 60*posy) self:draw() end demo.draw = function (self) local x, y, w, d = 100, 60, 200, 100 local cv = self.canvas local r = d/2 cv:Clear() cv:SetForeground(cd.RED) cv:Rect(x-1, x+w+1, y-1, y+d+1) cv:SetForeground(cd.BLUE) cv:Begin(cd.PATH) cv:PathSet(cd.PATH_MOVETO); cv:Vertex(x+r, y) cv:PathSet(cd.PATH_ARC); cv:Vertex(x+r, y+r); cv:Vertex(d, d); cv:Vertex(270000, 90000) cv:PathSet(cd.PATH_LINETO); cv:Vertex(x+w-r, y+d) cv:PathSet(cd.PATH_ARC); cv:Vertex(x+w-r, y+r); cv:Vertex(d, d); cv:Vertex(90000, -90000) cv:PathSet(cd.PATH_CLOSE) cv:PathSet(cd.PATH_STROKE) cv:End() end dlg = iup.dialog{demo, title="Canvas Origin Problem", size="300x200"} dlg:show() iup.MainLoop () |
From: Antonio S. <ant...@gm...> - 2012-05-25 16:57:42
|
Hi All, The 5.5.1 version of the CD library has been released. This is just a bug fix with the following: - Fixed CD_DXF driver. It was generating filled polygons incompatible with AutoCAD - Fixed CD_GL driver initialization. Fixed function cdCanvasClear, and fixed font size, in the same driver. - Improved search for TrueType fonts. Now also look for fonts in the native system using only the font name. On Linux the search is done using the lib FontConfig. This reduces the need for variable CDDIR. You can find the complete list of changes and files for download at: http://www.tecgraf.puc-rio.br/cd/ Best Regards, Antonio Scuri |
From: Antonio S. <sc...@te...> - 2012-01-04 22:01:43
|
Hi All, The 5.5 version of the CD library has been released. We would like to highlight the following features: - support for Lua 5.2 - third party libraries updated to newest versions zlib 1.2.5, PDFlib Lite 7.0.5 and Freetype 2.4.8. You can find the complete list of changes and files for download at: http://www.tecgraf.puc-rio.br/cd/ CD is a platform-independent graphics library. It is implemented in several platforms using native graphics libraries: Microsoft Windows (GDI) and X-Windows (XLIB). Best Regards, Antonio Scuri |
From: Antonio S. <sc...@te...> - 2010-11-14 02:12:34
|
Hi All, The 5.4.1 version of the CD library has been released. This is just a bug fix. You can find the list of changes and files for download at: http://www.tecgraf.puc-rio.br/cd/ Best Regards, Antonio Scuri |
From: Boyko B. <bo...@gm...> - 2010-10-19 19:23:38
|
On 19 October 2010 18:45, Antonio Scuri <sc...@te...> wrote: > ... > http://www.tecgraf.puc-rio.br/~scuri/tmp/cdsvgfix_Linux26g4.tar.gz > > Let me know if it works for you. > ... Yes it does! Great job, thank you! Best regards, Boyko |
From: Antonio S. <sc...@te...> - 2010-10-19 15:45:35
|
Hi, The SVG fix was broken. Try this one: http://www.tecgraf.puc-rio.br/~scuri/tmp/cdsvgfix_Linux26g4.tar.gz Let me know if it works for you. > The on-screen drawing indeed works properly now with contextplus, > but, alas, the PostScript and SVG drivers still output commas > in place of decimal dots. Still did not fix the PS driver. But the idea will be the same. What I did is to call: setlocale(LC_NUMERIC, "C"); in CreateCanvas. And restore the previous locale in KillCanvas. Best, Scuri |
From: Antonio S. <sc...@te...> - 2010-10-15 19:17:04
|
> The on-screen drawing indeed works properly now with contextplus, > but, alas, the PostScript and SVG drivers still output commas > in place of decimal dots. I did change only the SVG driver. I will do some tests here in a non English environment that I have here and let you know what happen. Best, Scuri |
From: Boyko B. <bo...@gm...> - 2010-10-15 18:47:47
|
Hi Antonio, Thank you a lot for being so responsive. The on-screen drawing indeed works properly now with contextplus, but, alas, the PostScript and SVG drivers still output commas in place of decimal dots. Regards, Boyko |
From: Antonio S. <sc...@te...> - 2010-10-15 02:42:35
|
Hi, I found a bug that caused the blank canvas. You can download pre-compiled binaries with all the fixes so far from this link: http://www.tecgraf.puc-rio.br/~scuri/tmp/cd_Linux26g4_fixes.tar.gz The SVG fix is also included. Attached is a sample to test the Cairo fix. I'm working in IUP and as soon as I complete two small tasks, there will be new versions of CD and IUP. Best, scuri > -----Original Message----- > From: Boyko Bantchev [mailto:bo...@gm...] > Sent: quarta-feira, 13 de outubro de 2010 19:18 > To: CD discussion list. > Subject: Re: [Canvasdraw-users] two problems > > Thanks for helping. > > > ... or downloaded pre-compiled binaries? > > Yes. > > I did require"cdluacairo" and called cd.UseContextPlus() > as you suggested, but, unfortunately, still have no success > – now what I get is just a blank canvas. > (If I remove the calls to cd.UseContextPlus(), the drawing > is there, but is jagged, as can be expected.) > > Could you please give a minimal example with an IUPLua > window and a Cairo CD canvas within it, which I could use > as a starting point? > > Thanks again, > Boyko > > ----------------------------------------------------------------------- > ------- > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating > great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Canvasdraw-users mailing list > Can...@li... > https://lists.sourceforge.net/lists/listinfo/canvasdraw-users |
From: Boyko B. <bo...@gm...> - 2010-10-14 05:39:27
|
> With package you downloaded? I am using these: CD: cd-5.4_Linux26g4_lib.tar.gz IUP: iup-3.2_Linux26g4_bin.tar.gz iup-3.2_Linux26g4_lib.tar.gz (with Lua 5.1 as packaged within Ubuntu). Regards, Boyko |
From: Antonio S. <sc...@te...> - 2010-10-13 22:35:04
|
Hi, I'm going to fix the SVG problem and make available a pre-compiled binary so you can test this and the Cairo drawing with the latest version. With package you downloaded? Best, scuri > -----Original Message----- > From: Boyko Bantchev [mailto:bo...@gm...] > Sent: quarta-feira, 13 de outubro de 2010 19:18 > To: CD discussion list. > Subject: Re: [Canvasdraw-users] two problems > > Thanks for helping. > > > ... or downloaded pre-compiled binaries? > > Yes. > > I did require"cdluacairo" and called cd.UseContextPlus() > as you suggested, but, unfortunately, still have no success > – now what I get is just a blank canvas. > (If I remove the calls to cd.UseContextPlus(), the drawing > is there, but is jagged, as can be expected.) > > Could you please give a minimal example with an IUPLua > window and a Cairo CD canvas within it, which I could use > as a starting point? > > Thanks again, > Boyko > > ----------------------------------------------------------------------- > ------- > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating > great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Canvasdraw-users mailing list > Can...@li... > https://lists.sourceforge.net/lists/listinfo/canvasdraw-users |
From: Boyko B. <bo...@gm...> - 2010-10-13 22:17:58
|
Thanks for helping. > ... or downloaded pre-compiled binaries? Yes. I did require"cdluacairo" and called cd.UseContextPlus() as you suggested, but, unfortunately, still have no success – now what I get is just a blank canvas. (If I remove the calls to cd.UseContextPlus(), the drawing is there, but is jagged, as can be expected.) Could you please give a minimal example with an IUPLua window and a Cairo CD canvas within it, which I could use as a starting point? Thanks again, Boyko |
From: Antonio S. <sc...@te...> - 2010-10-13 19:23:22
|
BTW, this should be fixed in the next CD version, so you will do: require"cdluacontexplus" As expected. So in Windows will use GDI+, in Linux will use Cairo, and in other UNICES will use XRender. Best, scuri > -----Original Message----- > From: Antonio Scuri [mailto:sc...@te...] > Sent: quarta-feira, 13 de outubro de 2010 14:55 > To: 'CD discussion list.' > Subject: RE: [Canvasdraw-users] two problems > > Correction, instead of: > > require"cdluacontexplus" > > Use: > > require"cdluacairo" > > Best, > Scuri |
From: Antonio S. <sc...@te...> - 2010-10-13 17:54:53
|
Correction, instead of: require"cdluacontexplus" Use: require"cdluacairo" Best, Scuri |
From: Antonio S. <sc...@te...> - 2010-10-13 17:17:17
|
> One is about plotting on PostScript and SVG canvases. > Sometimes the generated (text) output is syntactically > incorrect: it turns out that all fractional numbers have > commas in place of decimal dots. This must be, I guess, > due to the curent environment's language (locale) settings > getting involved somehow, but that should actually not happen. It is a bug. The SVG specification states that it must be a dot in decimal numbers. Thanks for reporting. This is simple to fix. Did you compiled from source or downloaded pre-compiled binaries? > The other problem is with the newly introduced contextplus > feature. I do “cd.InitContextPlus()” before creating a CD > canvas (within an IUP canvas), with the intent to get a > smoother graphics rendering using Cairo (which I do have > installed). However, no change of context takes place. > Am I missing something? Is there anything else to be done > in order to activate Cairo rendering? Assuming that you are using IUP 3, and loading CD dynamically with require, the call require"cdluacontexplus" will already call cd.InitContextPlus() for you, so there is no need for that. What you need is to call, for example: cd.UseContextPlus(true) canvas = cd.CreateCanvas(xxx) cd.UseContextPlus(false) Best, Scuri |
From: Boyko B. <bo...@gm...> - 2010-10-13 08:50:52
|
Hello, I have two problems to report or ask help for. One is about plotting on PostScript and SVG canvases. Sometimes the generated (text) output is syntactically incorrect: it turns out that all fractional numbers have commas in place of decimal dots. This must be, I guess, due to the curent environment's language (locale) settings getting involved somehow, but that should actually not happen. The other problem is with the newly introduced contextplus feature. I do “cd.InitContextPlus()” before creating a CD canvas (within an IUP canvas), with the intent to get a smoother graphics rendering using Cairo (which I do have installed). However, no change of context takes place. Am I missing something? Is there anything else to be done in order to activate Cairo rendering? I am using Ubuntu and IUPLua, CDLua. Thank you in advance. Regards, Boyko |
From: Antonio S. <sc...@te...> - 2010-06-26 02:12:39
|
Hi All, The 5.4 version of the CD - Canvas Draw graphics toolkit has been released. You can find the list of changes and files for download at: http://www.tecgraf.puc-rio.br/cd/ The most notable new feature is the Cairo context plus driver. It can be used as a context plus driver for GDK providing alpha and anti-aliasing. Cairo has also support for CD_PRINTER in Windows (native dialog) and in UNIX (GTK dialog). Along with additional drivers for SVG, PDF, PS and IMAGERGB not available using context plus. Also CD now has support for creation, stroke and filling of paths in all drivers using Begin/Vertex/End and an additional function PathSet, called for each segment in the path. The new CD_GL driver is implemented using only OpenGL functions, and can provide an alternative for those applications that need to render very large polygons. Text support is provided by the FTGL library using the Freetype library. Finally we added to the documentation a screenshot page illustrating the output produced by all drivers. IMPORTANT: the main library in Linux and BSD is now the GDK base driver. The X11 base driver library was renamed to cdx11 on those systems. Best Regards, Antonio Scuri |