|
Post by bigbass on Jan 26, 2018 19:53:04 GMT 1
Hey vovchik of course friend but where to get started? I found this link sourceforge.net/p/rfltk/code/HEAD/tree/fl_html_label/Then reversed engineered the idea so I could have some source code to test with It seems that (the author) doesn't like to post a source code demo here is a stand alone demo the reason being is I will need to sort out how to get a clean compile with a small test demo first Joe PRAGMA INCLUDE <FL/Fl.H> PRAGMA INCLUDE <FL/Fl_Window.H> PRAGMA INCLUDE <FL/Fl_Box.H> PRAGMA INCLUDE fl_html_label.cxx PRAGMA INCLUDE fl_html_label.h PRAGMA LDFLAGS -lfltk -lfltk_images -L. -lbacon++ PRAGMA COMPILER g++ PRAGMA OPTIONS -Wno-write-strings -Wno-pointer-arith OPTION PARSE FALSE
DECLARE win TYPE Fl_Window* DECLARE box TYPE Fl_Box*
win = new Fl_Window(340,180,"HTML LABEL TEST!") box = new Fl_Box(20,40,300,100) box->box(FL_GLEAM_UP_BOX) box->labeltype(FL_HTML_LABEL) box->label("<h1>This is my first<font color=""#00FF00"">HTML</font> label!</h1>") box->labelfont(FL_BOLD+FL_ITALIC) box->labelsize(36) box->labeltype(FL_SHADOW_LABEL) box->color( FL_BLUE) box->align( FL_ALIGN_CENTER) box->labeltype(FL_HTML_LABEL) box->labelsize(30) box->labelcolor(FL_DARK_RED) win->end() win->show(argc, argv) Fl::run()
here I made a c++ demo since there wasn't one on the web site #include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/Fl_Box.H> #include "fl_html_label.h" #include "fl_html_label.cxx"
int main(int argc, char **argv) { Fl_Window *window = new Fl_Window(340,180,"HTML LABEL TEST!"); Fl_Box *box = new Fl_Box(20,40,300,100); box->box(FL_GLEAM_UP_BOX); box->labeltype(FL_HTML_LABEL); box->label("<h1>This is my first<font color=""#00FF00"">HTML</font> label!</h1>"); box->labelfont(FL_BOLD+FL_ITALIC); box->labelsize(36); box->labeltype(FL_SHADOW_LABEL); box->color( FL_BLUE); box->align( FL_ALIGN_CENTER); box->labeltype(FL_HTML_LABEL); box->labelsize(30); box->labelcolor(FL_DARK_RED); window->end(); window->show(argc, argv); return Fl::run(); }
|
|
|
Post by vovchik on Jan 26, 2018 21:41:14 GMT 1
Dear Joe, Yes, the author weirdly did not post a demo in the directory - so for my hug-fltk, I had to do the same thing you did - reverse engineer and studny the code and readme. I managed to include that html-label stuff within hug-fltk with a simple USEH/ENDUSEC at the beginning. That modified hug is already in the TEXT_SVG hug-fltk demo above. And we can use it (asa labeltype) and modify all the little bits. I am now trying to get alignment of svg text and autosizing working for the TEXT_SVG bit. After that, I can turn to rotation, which is always heaps of fun. With kind regards, vovchik
|
|
|
Post by bigbass on Jan 27, 2018 6:26:08 GMT 1
Hey vovchik I wanted to post this in a message but we cant attach you need to see this the left original the right I copied the line twice svgtext2 = TEXT_SVG("Wow!", "Sans", 60, 400, 1, 1, "gold", "orange", 0.98, 0) ATTACH(svgtext2, 55, 110) svgtext3 = TEXT_SVG("Wow!", "Sans", 60, 400, 1, 1, "gold", "orange", 0.98, 0)
so something is odd with the MY TEST line oh------ I see now why I always boot clean and you have that hippie font Better to remove new fonts from the test demo I would just do away with that line MY TEST for now svgtext2 = TEXT_SVG("MY TEST", "1960sHippie", 60, 400, 1, 1, "gold", "orange", 0.98, 0) P.S Thank you for all your advancements I Know you dont need this but just in case someone else needs it I posted the c++ source code I wrote to test the html label in the post above Joe
|
|
|
Post by vovchik on Jan 27, 2018 11:40:12 GMT 1
Dear Joe (and all), Here is TEXT_SVG again, with a few little changes. I left in that Hippie font in because it shows, unlike the standard Sans or Serif fonts, what that filter can actually do (creates a molten metal effect). The second and third demos show all 10 of the effects available (I will review them and make some changes, since I have some 100 of those effects I used in a GTK prog I did called TXT2SVG and want to choose the best ones). An effect index of zero passed as an argument just displays the normal font without effects, but if the fill is "none" and the stroke is, for example "red" or "#FF0000", you will get a red outline. With kind regards, vovchik Attachments:
svg-text.tar.gz (38.64 KB)
|
|
|
Post by bigbass on Jan 27, 2018 16:07:08 GMT 1
Hello vovchik Good Morning Yesterday I was tired and forgot to install the hippie font (forgive me ) however we still could use at least one hello world demo with out fonts for testing only Two of your demos look beautiful and perfect as I expected you always show that you have a fine talent for art ! I did install the font today and we have an odd problem that I have not tried to debug yet it may be a 64 bit thing I am overlooking but anyway I am the tester for today offering some feedback
|
|
|
Post by vovchik on Jan 27, 2018 16:54:10 GMT 1
Dear Joe, I had a similar effect (bad) when I failed to dimension the array of Fl_Boxes* properly at the top. Can you try the attached with the existing hug-fltk.bac? I am also wondering about that problem. And thanks for testing. Odd things and bugs crop up and have to be eliminated/squashed. And two heads are better than one. With kind regards, vovchik Attachments:text-svg1b.bac.tar.gz (3.92 KB)
|
|
|
Post by bigbass on Jan 27, 2018 19:24:02 GMT 1
Hey vovchik
Good news the problem is solved it was an alignment /math problem just change some numbers and all is fine
*This is your demo only math changes window size and attach
I will delete the images to save space after you see them
We can get this done faster with two or more people thinking I used your very first demo that had the error for me on page 5 and tested a before and after the fix
Joe
' TEXTSVG(txt, font, height, weight, stroke-width, filter-effect, color1, color2, opacity, rotation)
INCLUDE hug-fltk.bac
DECLARE win TYPE Fl_Double_Window* DECLARE box, svgtext1, svgtext2, svgtext3 TYPE Fl_Box* DECLARE bg$ TYPE STRING DECLARE bg_img TYPE Fl_RGB_Image* bg$ = "<svg width='290' height='290' viewBox='0 0 300 300'>" \ " <defs>" \ " <linearGradient id='lg1' x1='0%' y1='0%' x2='0%' y2='100%' " \ " spreadMethod='pad'>" \ " <stop offset='0%' stop-color='#17150E' stop-opacity='1'/>" \ " <stop offset='100%' stop-color='#F4F2EB' stop-opacity='1'/>" \ " </linearGradient>" \ " <pattern id='smallGrid' width='10' height='10' patternUnits='userSpaceOnUse'>" \ " <path d='M 10 0 L 0 0 0 10' fill='none' stroke='gray' stroke-width='0.5'/>" \ " </pattern>" \ " <pattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'>" \ " <rect width='100' height='100' fill='url(#smallGrid)'/>" \ " <path d='M 100 0 L 0 0 0 100' fill='none' stroke='gray' stroke-width='2'/>" \ " </pattern>" \ " </defs>" \ "<rect x='0' y='0' width='100%' height='100%' " \ "style='fill:url(#lg1); stroke: #000000; stroke-width: 5; " \ " stroke-opacity: .6'/>" \ "<rect width='100%' height='100%' fill='url(#grid)' />" \ "</svg>" bg_img = SVG2IMG(bg$)
' ------------------ FUNCTION FIX_CHARS$(STRING org_string$) ' ------------------ LOCAL old$, new$ TYPE STRING LOCAL i TYPE int old$ = "&|<|>|'|\"|&|" new$ = "&|<|>|'|"|" FOR i = 1 TO 5 org_string$ = REPLACE$(org_string$, TOKEN$(old$, i, "|"), \ CHOP$(TOKEN$(new$, i, "|"))) NEXT i RETURN org_string$ END FUNCTION
' ------------------ FUNCTION TEXT_SVG(STRING Title$, STRING font$, float size, int weight, \ float sw, int filter, STRING col1$, STRING col2$, float op, float rot) TYPE Fl_Widget* ' ------------------ ' e.g. TEXT_SVG("TEST", "Sans", 15, 400, 3, 0, "red", white", 0.8, 0) LOCAL hugbox TYPE Fl_Box* LOCAL box_img TYPE Fl_RGB_Image* LOCAL farray$[11], svg_box$, filter$ TYPE STRING LOCAL oldfont, newfont TYPE Fl_Font LOCAL oldsize, newsize TYPE int LOCAL fh, fw TYPE double ' save old font oldfont = fl_font() oldsize = fl_size() newfont = GETFONT(font$) fl_font(newfont, size) fh = fl_height(newfont, size) PRINT "-------------------------" PRINT "SVG and bounding box info" PRINT "-------------------------" PRINT "Height of ", font$, " at size ", size, ": ", fh fw = fl_width((char*)Title$, LEN(Title$)) PRINT "Width of string with ", font$, " at size ", size, ": ", fw farray$[0] = "" ' Relief farray$[1] = CONCAT$(" <filter id='f1'>" & NL$ & \ " <!-- Relief -->"& NL$ & \ " <feGaussianBlur in='SourceAlpha' stdDeviation='3' result='blur'/>" & NL$ & \ " <feOffset dx='4%' dy='4%' in='blur' result='offsetBlur'/>" & NL$ & \ " <feSpecularLighting specularConstant='1%' in='blur' surfaceScale='5%' " & NL$ & \ " lighting-color='ivory' result='specOut' specularExponent='10%'>" & NL$ & \ " <fePointLight x='-5000%' y='-10000%' z='20000%'/>" & NL$ & \ " </feSpecularLighting>" & NL$ & \ " <feComposite in='specOut' operator='in' in2='SourceAlpha' result='specOut'/>" & NL$ & \ " <feComposite in='SourceGraphic' operator='arithmetic'" & NL$ & \ " k1='0.4' k2='0.7' k3='0.95' k4='0.0'" & NL$ & \ " in2='specOut' result='litPaint'/>" & NL$ & \ " <feMerge>" & NL$ & \ " <feMergeNode in='offsetBlur'/>" & NL$ & \ " <feMergeNode in='litPaint'/>" & NL$ & \ " </feMerge>" & NL$ & \ " </filter>" & NL$ & \ " <linearGradient id='lg1'>" & NL$ & \ " <stop offset='0' style='stop-color:#767676;stop-opacity:1;'/>" & NL$ & \ " <stop style='stop-color:darkorange;stop-opacity:1;' offset='0'/>" & NL$ & \ " <stop style='stop-color:red;stop-opacity:1;' offset='0.5'/>" & NL$ & \ " <stop style='stop-color:darkorange;stop-opacity:1;' offset='1'/>" & NL$ & \ " </linearGradient>" & NL$) ' SimpleBlur farray$[2] = CONCAT$(" <filter id='f1' x='-30%' y='-30%' width='160%' height='160%'>" & NL$ & \ " <!-- SimpleBlur -->"& NL$ & \ " <feGaussianBlur stdDeviation='3 3' result='glow'/>" & NL$ & \ " <feMerge>" & NL$ & \ " <feMergeNode in='glow' />" & NL$ & \ " <feMergeNode in='glow' />" & NL$ & \ " <feMergeNode in='glow' />" & NL$ & \ " </feMerge>" & NL$ & \ " </filter>" & NL$) ' DropShadow farray$[3] = CONCAT$(" <filter id='f1'>" & NL$ & \ " <!-- DropShadow -->"& NL$ & \ " <!-- Get the element's graphic, through the SourceGraphic" & NL$ & \ " keyword in the 'in' attribute, apply a blur filter, and" & NL$ & \ " name the output using the 'result' attribute -->" & NL$ & \ " <feGaussianBlur in='SourceGraphic' stdDeviation='7' result='shadow' />" & NL$ & \ " <!-- Get the previous output, shift its position, and output" & NL$ & \ " with the same name -->" & NL$ & \ " <feOffset in='shadow' dx='3' dy='4' result='shadow' />" & NL$ & \ " <!-- Darken the result of the previous filters -->" & NL$ & \ " <feColorMatrix in='shadow' mode='matrix' " & NL$ & \ " values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0' result='shadow' />" & NL$ & \ " <!-- Put the original graphics atop the shadow we made -->" & NL$ & \ " <feBlend in='SourceGraphic' in2='shadow' />" & NL$ & \ " </filter>" & NL$) ' Squiggly farray$[4] = CONCAT$(" <filter id='f1'>" & NL$ & \ " <!-- Squiggly - 4 -->"& NL$ & \ " <feTurbulence baseFrequency='0.02' numOctaves='3' result='noise' seed='2'/>" & NL$ & \ " <feDisplacementMap in='SourceGraphic' in2='noise' scale='10' />" & NL$ & \ " </filter>" & NL$) ' Shine farray$[5] = CONCAT$(" <filter id='f1'>" & NL$ & \ " <!-- Shine -->"& NL$ & \ " <feGaussianBlur in='SourceGraphic' stdDeviation='2' result='blur'/>" & NL$ & \ " <feColorMatrix values=' 1.5 0 0 0.5 0 " & NL$ & \ " 0 1.5 0 0.5 0 " & NL$ & \ " 0 0 1.5 0.5 0 " & NL$ & \ " 0 0 0 1 -0.5'/>" & NL$ & \ " <feOffset dx='-2.5' dy='-1.5'/>" & NL$ & \ " <feComponentTransfer result='highlight'>" & NL$ & \ " <feFuncA type='linear' aplitude='2'/>" & NL$ & \ " </feComponentTransfer>" & NL$ & \ " <feComposite in='blur' in2='highlight'" & NL$ & \ " operator='arithmetic'" & NL$ & \ " k1='0' k2='1' k3='1' k4='0'/>" & NL$ & \ " <feComposite in2='SourceGraphic' operator='atop'/>" & NL$ & \ " </filter>" & NL$) ' OutlineBlur farray$[6] = CONCAT$(" <filter id='f1'>" & NL$ & \ " <!-- OutlineBlur -->"& NL$ & \ " <feFlood id='outline-color' flood-color='mycol' result='base' />" & NL$ & \ " <feMorphology result='bigger' in='SourceGraphic' operator='dilate' radius='2'/>" & NL$ & \ " <feColorMatrix result='mask' in='bigger' type='matrix'" & NL$ & \ " values='0 0 0 0 0" & NL$ & \ " 0 0 0 0 0" & NL$ & \ " 0 0 0 0 0" & NL$ & \ " 0 0 0 1 0' />" & NL$ & \ " <feComposite result='drop' in='base' in2='mask' operator='in' />" & NL$ & \ " <feGaussianBlur result='blur' in='drop' stdDeviation='5' />" & NL$ & \ " <feBlend in='SourceGraphic' in2='blur' mode='normal' />" & NL$ & \ " </filter>" & NL$) ' OutlineWhite farray$[7] = CONCAT$(" <filter id='f1'>" & NL$ & \ " <!-- OutlineWhite -->"& NL$ & \ " <feMorphology in='SourceAlpha' operator='dilate' radius='2' result='outline' />" & NL$ & \ " <feFlood flood-color='white' result='chroma'/>" & NL$ & \ " <feComposite in='chroma' in2='outline' operator='in' result='glow' />" & NL$ & \ " <feMerge>" & NL$ & \ " <feMergeNode in='glow' />" & NL$ & \ " <feMergeNode in='SourceGraphic' />" & NL$ & \ " </feMerge>" & NL$ & \ " </filter>" & NL$) ' OutlineBlack farray$[8] = CONCAT$(" <filter id='f1'>" & NL$ & \ " <!-- OutlineBlack -->"& NL$ & \ " <feMorphology in='SourceAlpha' operator='dilate' radius='2' result='outline' />" & NL$ & \ " <feFlood flood-color='black' result='chroma'/>" & NL$ & \ " <feComposite in='chroma' in2='outline' operator='in' result='glow' />" & NL$ & \ " <feMerge>" & NL$ & \ " <feMergeNode in='glow' />" & NL$ & \ " <feMergeNode in='SourceGraphic' />" & NL$ & \ " </feMerge>" & NL$ & \ " </filter>" & NL$) ' Solidify farray$[9] = CONCAT$(" <filter id='f1'>" & NL$ & \ " <!-- Solidify -->"& NL$ & \ " <feGaussianBlur in='SourceAlpha' stdDeviation='4' result='blur'/>" & NL$ & \ " <feOffset in='blur' dx='4' dy='4' result='offsetBlur'/>" & NL$ & \ " <feSpecularLighting in='blur' surfaceScale='5' specularConstant='1' " & NL$ & \ " specularExponent='10' lighting-color='white' result='specOut'>" & NL$ & \ " <fePointLight x='-5000' y='-10000' z='20000'/>" & NL$ & \ " </feSpecularLighting>" & NL$ & \ " <feComposite in='specOut' in2='SourceAlpha' operator='in' result='specOut'/>" & NL$ & \ " <feComposite in='SourceGraphic' in2='specOut' operator='arithmetic' " & NL$ & \ " k1='0' k2='1' k3='1' k4='0' result='litPaint'/>" & NL$ & \ " <feMerge>" & NL$ & \ " <feMergeNode in='offsetBlur'/>" & NL$ & \ " <feMergeNode in='litPaint'/>" & NL$ & \ " </feMerge>" & NL$ & \ " </filter>" & NL$) ' DiffusionGlow farray$[10] = CONCAT$(" <filter id='f1' x='-30%' y='-30%' width='160%' height='160%'>" & NL$ & \ " <!-- DiffusionGlow -->"& NL$ & \ " <feGaussianBlur stdDeviation='3 3' result='glow'/>" & NL$ & \ " <feMerge>" & NL$ & \ " <feMergeNode in='glow'/>" & NL$ & \ " <feMergeNode in='glow'/>" & NL$ & \ " <feMergeNode in='glow'/>" & NL$ & \ " </feMerge>" & NL$ & \ " </filter>" & NL$) ' prototype svg box svg_box$ = "<svg width='xSW' height='xSH' opacity='xOpacity'>" & NL$ \ "xFilter" \ " <rect x='0' y='0' width='100%' height='100%'" & NL$ \ " fill='none' stroke='none'/>" & NL$ \ " <text filter='url(#f1)' x='0' y='82%' " & NL$ \ " fill='xFill' stroke='xStroke' stroke-width='xSwidth' " & NL$ \ " font-family='xFont' font-size='xSize' font-weight='xWeight'>" & NL$ \ "xText</text>" & NL$ \ "</svg>" svg_box$ = REPLACE$(svg_box$, "xFilter", farray$[filter]) 'svg_box$ = REPLACE$(svg_box$, "xSW", STR$(size * LEN(Title$) * 1.3)) 'svg_box$ = REPLACE$(svg_box$, "xSH", STR$(size * 1.8)) svg_box$ = REPLACE$(svg_box$, "xSW", STR$(fw * 1.2)) svg_box$ = REPLACE$(svg_box$, "xSH", STR$(fh * 1.1)) 'svg_box$ = REPLACE$(svg_box$, "xSW", "125%") 'svg_box$ = REPLACE$(svg_box$, "xSH", "110%") svg_box$ = REPLACE$(svg_box$, "xFill", col1$) svg_box$ = REPLACE$(svg_box$, "xStroke", col2$) svg_box$ = REPLACE$(svg_box$, "xSwidth", STR$(sw)) svg_box$ = REPLACE$(svg_box$, "xWeight", STR$(weight)) svg_box$ = REPLACE$(svg_box$, "xSize", STR$(size)) svg_box$ = REPLACE$(svg_box$, "xOpacity", STR$(op)) svg_box$ = REPLACE$(svg_box$, "xFont", font$) ' svgs do not like certain chars, so fix them so that they work Title$ = FIX_CHARS$(Title$) svg_box$ = REPLACE$(svg_box$, "xText", Title$) box_img = IMAGE_RGB(RSVG2BUF(svg_box$), dim.width, dim.height, depth) hugbox = new Fl_Box(0, 0, dim.width, dim.height, "") SETPROPERTY(hugbox, box, FL_NO_BOX) SETPROPERTY(hugbox, align, FL_ALIGN_LEFT|FL_ALIGN_IMAGE_BACKDROP|hugbox->align()) SETPROPERTY(hugbox, image, box_img) PRINT svg_box$ SETFONT(oldfont, oldsize) RETURN hugbox END FUNCTION
' global FLTK settings VISUAL(FL_RGB8) STYLE("gleam") INITFONTS() SETFONT(FL_HELVETICA, "DejaVu Sans") win = WINDOW("SVG Text", 500, 500) SETPROPERTY(win, box, FL_GLEAM_UP_BOX) SETPROPERTY(win, color, FL_DARK_RED) box = BOX("", 490, 490) SETPROPERTY(box, box, FL_NO_BOX) SETPROPERTY(box, image, bg_img) SETPROPERTY(box, align, \ FL_ALIGN_IMAGE_BACKDROP|box->align()) ATTACH(box, 5, 5) ' TEXTSVG(txt, font, height, weight, stroke-width, filter-effect, color1, color2, opacity, rotation) ' returns a Fl_Box type svgtext1 = TEXT_SVG("TEST", "Serif", 80, 600, 1.5, 9, "pink", "red", 0.94, 0) ATTACH(svgtext1, 130, 100) svgtext2 = TEXT_SVG("MY TEST", "1960sHippie", 60, 400, 1, 1, "gold", "orange", 0.98, 0) ATTACH(svgtext2, 130, 200) svgtext3 = TEXT_SVG("Wow!", "Sans", 60, 400, 1, 1, "gold", "orange", 0.98, 0) ATTACH(svgtext3, 130, 300) SHOW(win) DISPLAY()
|
|
|
Post by vovchik on Jan 27, 2018 23:45:58 GMT 1
Dear Joe, The problem in that example above might be that I made a mistake in returning Fl_Widget* from the function TEXT_SVG. It should return Fl_Box*, I think. If you change that in the first line of TEXT_SVG, does it work? Otherwise I can't really understand yet why the prog would dislike certain window and box sizes and like others. Scratching my head... With kind regards, vovchik PS. Also, change the type returned from BOX in hug-fltk.bac from Fl_Widget* to Fl_Box*. I think that may be the source of the bug. Me bad, I seems, but you identified the bug.
|
|
|
Post by bigbass on Jan 28, 2018 5:51:25 GMT 1
Hello vovchik
I was able to pin point where the trouble is in only one demo I will try the others tomorrow and see if if we can confirm with more examples
win = WINDOW("SVG Text", 370, 370)
box = BOX("", 310, 310)
if you make make the window at the least 60 greater than the box size the error goes away I tested values of 10 until the error went away so its safe to say if you give a grace value of plus 60 to the window size or take away 60 from the box size all will display nicely
the ATTACH was just to center the already working text display but doesnt affect the error
good news its not in your code or in fltk-hug I imagine its somewhere in the size of formula in the html lable include file but not really a problem if you are aware of this and adjust the sizes
we could test in pure c++ first and do away with many possible causes I will try that also
Joe
|
|
|
Post by vovchik on Jan 28, 2018 11:29:41 GMT 1
Dear Joe (and all), That is a weird problem. All the demos work for me. I have attached an archive with the latest TEXT_SVG and hug-fltk.bac. Please have a look and compile. If the problem persists, I will really start scratching my head. Perhaps Peter could also compile and see what happens, since he has a 64-bit system. With kind regards, vovchik Attachments:svg-text-src.tar.gz (36.93 KB)
|
|
|
Post by bigbass on Jan 28, 2018 17:59:25 GMT 1
Hey vovchik sorry to say that your new fixes didnt remove the error (sombody else can confirm on 64 bit the resize line added will show it works ) win->resizable(box) I can confirm that it is a size problem with no other edits to your code add it here at the last few lines of code using text-svg-b1.bacNEXT ii win->resizable(box) SHOW(win) DISPLAY()
if you add the resizable line and drag out the image to this size it then works now we just need to solve this a better way P.S vovchick you could use win->resizable(win) and resize the box smaller until you see the error happen Joe
|
|
|
Post by vovchik on Jan 28, 2018 18:26:59 GMT 1
Dear Joe (and all), Yikes! And thanks for continued testing. I wonder what is causing that problem. For further testing purposes, I removed that function (TEXT_SVG) from each of the demos and have it as a separate include, so we only have to change things in one place for testing purposes. Perhaps Peter or Alex can offer some insights. It works for me on Mint 17 (32-bit) and PI3 Raspbian. With kind regards, vovchik Attachments:text-svg-src.tar.gz (17.93 KB)
|
|
|
Post by Pjot on Jan 28, 2018 19:05:09 GMT 1
Hey guys, The scrambling also happens on my 64bit system (Linux Mint 18.2 64bit with XFCE). However, when I uninstall the FLTK library from the Mint repo (this is 'libfltk1.3' which actually is version 1.3.3) and then install libfltk1.3.4 from the source at the FLTK.org website, then after recompilation all demos from vovchik work perfectly fine. See screenshot below. There are approx. 200 lines of bugfixes between FLTK 1.3.3 and 1.3.4 so hopefully Mint starts using the new release shortly... HTH Peter Attachments:
|
|
|
Post by vovchik on Jan 28, 2018 19:21:56 GMT 1
Dear Peter,
Thanks very much for determining the cause of Joe's fractured display. I have been doing everything using fltk 1.3.4 and, obviously, could not reproduce that problem but was scratching my head, as was Joe. You solved it!
With thanks again and kind regards, vovchik
|
|
|
Post by bigbass on Jan 28, 2018 22:47:48 GMT 1
Hello Guys
Until today I have been using the latest official debs since I boot clean and have a script to keep me up to date and if I have some type of problem it is easier see all of what I have installed
I will use fltk 1.3.4 if thats what will work however I had been using the latest offical deb and have not encountered any problems so the good news is we tested on two versions and only had this one problem so we maintained compatibility minus these bugs that were fixed in the later version
alls well that ends well
P.S Thanks Peter for your fix and feedback Joe
|
|