simmetric Posted March 14, 2017 Author Share Posted March 14, 2017 (edited) @lynxster4 I'll look into it and get back to you. Edit: so far I've found a bug when there's more than one consecutive spaces in the Text field. Is that the case for you? Otherwise could you please post which plugin settings you used? (Text, Fontsize, LetterSpacing, Text aligment, etc.) Edit 2: OK, the bug seems to occur if the area of a line of text is to small (for example because the selection area is too small). This is now fixed. See the update in the opening post. If anyone still experiences issues with the plugin, please don't hesitate to let me know. Edited March 14, 2017 by simmetric 3 Quote Link to comment Share on other sites More sharing options...
lynxster4 Posted March 14, 2017 Share Posted March 14, 2017 11 hours ago, simmetric said: @lynxster4 I'll look into it and get back to you. Edit: so far I've found a bug when there's more than one consecutive spaces in the Text field. Is that the case for you? Otherwise could you please post which plugin settings you used? (Text, Fontsize, LetterSpacing, Text aligment, etc.) Edit 2: OK, the bug seems to occur if the area of a line of text is to small (for example because the selection area is too small). This is now fixed. See the update in the opening post. If anyone still experiences issues with the plugin, please don't hesitate to let me know. Just tested the revised version. Did the same steps as yesterday...it didn't crash...which is good. The only thing I see that is not working properly is the text alignment after you have spaced the letters....like it doesn't recognize that you've expanded the text. Other than that, good job! Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer" Link to comment Share on other sites More sharing options...
simmetric Posted March 15, 2017 Author Share Posted March 15, 2017 12 hours ago, lynxster4 said: Just tested the revised version. Did the same steps as yesterday...it didn't crash...which is good. The only thing I see that is not working properly is the text alignment after you have spaced the letters....like it doesn't recognize that you've expanded the text. Other than that, good job! Could you post a screenshot of the settings you use when this happens? Quote Link to comment Share on other sites More sharing options...
Eli Posted March 16, 2017 Share Posted March 16, 2017 @simmetric The Center alignment is off to the left. There is also a little issue with the Underline and Strikeout options. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted March 16, 2017 Share Posted March 16, 2017 I would recommend tweaking the UI like this: protected override ControlInfo OnCreateConfigUI(PropertyCollection props) { var configUI = CreateDefaultConfigUI(props); configUI.SetPropertyControlValue(Constants.Properties.Text.ToString(), ControlInfoPropertyNames.Multiline, true); configUI.SetPropertyControlValue(Constants.Properties.Bold.ToString(), ControlInfoPropertyNames.DisplayName, "Formatting"); configUI.SetPropertyControlValue(Constants.Properties.Bold.ToString(), ControlInfoPropertyNames.Description, Constants.Properties.Bold.ToString()); configUI.SetPropertyControlValue(Constants.Properties.Italic.ToString(), ControlInfoPropertyNames.DisplayName, string.Empty); configUI.SetPropertyControlValue(Constants.Properties.Italic.ToString(), ControlInfoPropertyNames.Description, Constants.Properties.Italic.ToString()); configUI.SetPropertyControlValue(Constants.Properties.Underline.ToString(), ControlInfoPropertyNames.DisplayName, string.Empty); configUI.SetPropertyControlValue(Constants.Properties.Underline.ToString(), ControlInfoPropertyNames.Description, Constants.Properties.Underline.ToString()); configUI.SetPropertyControlValue(Constants.Properties.Strikeout.ToString(), ControlInfoPropertyNames.DisplayName, string.Empty); configUI.SetPropertyControlValue(Constants.Properties.Strikeout.ToString(), ControlInfoPropertyNames.Description, Constants.Properties.Strikeout.ToString()); configUI.SetPropertyControlValue(Constants.Properties.LetterSpacing.ToString(), ControlInfoPropertyNames.SliderLargeChange, 0.25); configUI.SetPropertyControlValue(Constants.Properties.LetterSpacing.ToString(), ControlInfoPropertyNames.SliderSmallChange, 0.01); configUI.SetPropertyControlValue(Constants.Properties.LetterSpacing.ToString(), ControlInfoPropertyNames.UpDownIncrement, 0.01); configUI.SetPropertyControlValue(Constants.Properties.LineSpacing.ToString(), ControlInfoPropertyNames.SliderLargeChange, 0.25); configUI.SetPropertyControlValue(Constants.Properties.LineSpacing.ToString(), ControlInfoPropertyNames.SliderSmallChange, 0.01); configUI.SetPropertyControlValue(Constants.Properties.LineSpacing.ToString(), ControlInfoPropertyNames.UpDownIncrement, 0.01); return configUI; } 1 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
simmetric Posted March 16, 2017 Author Share Posted March 16, 2017 (edited) Thanks to @Eli's input I was able to fix a few alignment bugs. Also many thanks to @BoltBait for the config UI suggestions, these have been worked into the plugin. The zip file in the first post has been updated. Bugs fixed: - The last line always had a superfluous space at the end (if there's only one line, that's the last) - Alignment to center or right produced inconsistently positioned lines because of a rounding difference between the functions to measure and render text Thanks for bearing with me! 9 hours ago, Eli said: @simmetric The Center alignment is off to the left. There is also a little issue with the Underline and Strikeout options. Could you explain what issue you have with the Underline and Strikeout options? It's not immediately clear from the screenshot. Edited March 16, 2017 by simmetric Quote Link to comment Share on other sites More sharing options...
Djisves Posted March 16, 2017 Share Posted March 16, 2017 I think what Eli identified as issues with the strikeout and underline options can be explained by what simmetric described as "..a superfluous space at the end". Quote Link to comment Share on other sites More sharing options...
Eli Posted March 16, 2017 Share Posted March 16, 2017 The strikeout and underline issues have been corrected in the new version : Quote Link to comment Share on other sites More sharing options...
lynxster4 Posted March 16, 2017 Share Posted March 16, 2017 I've just tested new version. Alignment issues seem to be solved and thank you @Eli for posting image for the issue...I couldn't get to it. But, alas....I've found something else. The AntiAliasLevel slider works at default (2) and 3 and 4. As soon as you slide it (or use 'up' arrow) to 5 it goes in endless green progress loop, and if you think you can fix it by sliding back to 4, it crashes PDN. If you try and adjust the slider (from 2) to more than 5, it crashes immediately. Maybe you could look into it @simmetric. Thank you! Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer" Link to comment Share on other sites More sharing options...
simmetric Posted March 24, 2017 Author Share Posted March 24, 2017 It's been a busy week but I managed to spend some time on the plugin. Several minor crashing bugs were fixed, and support for IsCancelRequested was added. This means the overall user experience should be better and there should be little to no crashes anymore. Antialiased text quality is slightly improved. @lynxster4 I hope this fixes the issues you had. 1 Quote Link to comment Share on other sites More sharing options...
Eli Posted March 26, 2017 Share Posted March 26, 2017 (edited) @simmetric When I move the AntiAliasLevel slider to 6 the effect stops and if I try to bring it down to less than 6 Paint.net crashes. I am posting the error. Otherwise, the effect works with the other AntiAliasLevels (1 to 5). Spoiler File: C:\Program Files\Paint.NET\Effects\SpacedTextPlugin.dll Name: SpacedTextPlugin.SpacedTextEffectsPlugin Version: 0.0.0.0 Author: Copyright: Website: (Not Supplied) Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.OutOfMemoryException: Out of memory. at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData) at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr) at SpacedTextPlugin.SpacedText.DrawLines(List`1 lines, Graphics gr, Font font, Double letterSpacing, Bitmap bm) at SpacedTextPlugin.SpacedText.RenderText(Rectangle bounds) at SpacedTextPlugin.SpacedTextEffectsPlugin.OnSetRenderInfo(PropertyBasedEffectConfigToken newToken, RenderArgs dstArgs, RenderArgs srcArgs) at PaintDotNet.Effects.Effect`1.OnSetRenderInfo(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs) in D:\src\pdn\src\Effects\Effect`1.cs:line 65 at PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction() in D:\src\pdn\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 224 --- End of inner exception stack trace --- at PaintDotNet.Effects.BackgroundEffectRenderer.DrainExceptions() in D:\src\pdn\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 418 at PaintDotNet.Effects.BackgroundEffectRenderer.Abort() in D:\src\pdn\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 373 at PaintDotNet.Effects.BackgroundEffectRenderer.Start() in D:\src\pdn\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 319 at PaintDotNet.Menus.EffectMenuBase.<>c__DisplayClass42_3.<RunEffectImpl>b__2() in D:\src\pdn\src\PaintDotNet\Menus\EffectMenuBase.cs:line 953 Edited March 26, 2017 by Eli 1 Quote Link to comment Share on other sites More sharing options...
xod Posted April 30, 2017 Share Posted April 30, 2017 A very useful plugin, but unfortunately does not display some characters. No support for Unicode? Spoiler Quote Link to comment Share on other sites More sharing options...
ScrapbookWithPDN Posted April 30, 2017 Share Posted April 30, 2017 THIS IS GREAT!!! VERY USEFUL! THANK YOU! Quote Link to comment Share on other sites More sharing options...
simmetric Posted May 5, 2017 Author Share Posted May 5, 2017 On 2017-4-30 at 5:39 PM, xod said: A very useful plugin, but unfortunately does not display some characters. No support for Unicode? Hide contents It should support Unicode. I'll look into this and get back to you over the weekend. 1 Quote Link to comment Share on other sites More sharing options...
simmetric Posted May 8, 2017 Author Share Posted May 8, 2017 @xod: the issue with Unicode characters is fixed. Please note that European languages are fully supported (Cyrillic, Maltese, Romanian, etc.) but Asian and Hebrew characters do not support letter spacing. Without letter spacing: With letter spacing: 4 Quote Link to comment Share on other sites More sharing options...
xod Posted May 8, 2017 Share Posted May 8, 2017 Because I'm dealing with the restoration of some book covers I will use this plugin very often. It is extremely useful to me! Thank you very very much. Quote Link to comment Share on other sites More sharing options...
simmetric Posted May 8, 2017 Author Share Posted May 8, 2017 That's very good to hear, you're welcome! Quote Link to comment Share on other sites More sharing options...
meat Posted May 8, 2017 Share Posted May 8, 2017 after installing and restarting, I don't see the "Text Formations" under Effects. I'm using version 4.0.16 on Windows 10 Quote Link to comment Share on other sites More sharing options...
meat Posted May 8, 2017 Share Posted May 8, 2017 (edited) nevermind. after a couple of reboots it worked. * shrugs * Edited May 8, 2017 by meat accuracy Quote Link to comment Share on other sites More sharing options...
Djisves Posted May 11, 2017 Share Posted May 11, 2017 (edited) On 5/8/2017 at 1:54 PM, simmetric said: ... Please note that European languages are fully supported (Cyrillic, Maltese, Romanian, etc.) ... Can also confirm full support for Greek: Edited October 17, 2020 by Djisves Re-posted missing image on 17/10/2020 Quote Link to comment Share on other sites More sharing options...
simmetric Posted August 3, 2017 Author Share Posted August 3, 2017 (edited) After experimenting with it for a while, I finally got text justification working in a satisfactory way. It only sizes the spaces between words, so the letter spacing setting is respected inside words. The opening post has been updated with a new version of the plugin that offers a Justify option in the Text alignment dropdown. Edited August 4, 2017 by simmetric Clarification 2 3 Quote Link to comment Share on other sites More sharing options...
eggs Posted August 10, 2017 Share Posted August 10, 2017 Hi, I am very new to paint.net and I would like to install this wonderful plugin. Could someone please explain to me how I go about doing this after I downloaded the .zip file from github. Thank you. 1 1 Quote Link to comment Share on other sites More sharing options...
Pixey Posted August 10, 2017 Share Posted August 10, 2017 Hello @eggs and Welcome to the Forum . (I hope you are not living in the UK at the moment - as all the eggs have been recalled.) Here is the information you were looking for. Hope to see you posting your work soon. Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
AndrewDavid Posted August 10, 2017 Share Posted August 10, 2017 1 hour ago, eggs said: Could someone please explain to me how I go about doing this after I downloaded the .zip file from github. This link is for the programmers @eggs. Look above that link and you will see the download for the actual plugin - not the source code. Quote Link to comment Share on other sites More sharing options...
simmetric Posted August 11, 2017 Author Share Posted August 11, 2017 16 hours ago, eggs said: Hi, I am very new to paint.net and I would like to install this wonderful plugin. Could someone please explain to me how I go about doing this after I downloaded the .zip file from github. Thank you. As @AndrewDavid mentioned you're better off with the zip file in the opening post. I'm not sure which zip file you downloaded from Github - I did make some releases which include the zip file you're looking for, but I forgot to do that for the past few versions. So if you downloaded that, then it'll work but it'll be an older version. But more likely you have a zip file with the source code which doesn't run by itself. Just put the files (SpacedTextPlugin.dll and .pdb) in /Program Files/paint.net/Effects/ and start up Paint.NET Thanks for using my plugin! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.