-
Posts
4,239 -
Joined
-
Last visited
-
Days Won
2
Posts posted by Mike Ryan
-
-
I believe he is referring to ThreadsMarker. However, the name itself seems to have no meaning to anything Paint.NET related so I am going to let it slide 8)
-
Sorry guys. I was out on vacation but I AM BACK! And yes, Xpired is correct: he won and now we need a theme
-
Sorry for the delay, all. I have been away on vacation and promised to keep some seperation between my good life (here) and the blegh wedding :?
Anyways, user -Expiration- (aka Xpired) has won!
-
Yes, makes since. image/x-paintnet it is then!
-
Quick question that search did not reveal: does the PDN default filetype have a set MIME Type? For once I have a server that will allow for PDN uploading yet I have found no public resource on the default MIME Type the '.PDN' is associated with.
Thanks in advance!
-
Well, a few days have come and gone. Any ETA of a fix, yet?
-
If you are running in Vista, try running Paint.NET as an administrator (Yes, I know you are on an administrator account, but if you right click on a shortcut or .exe file you should see the option to run as administrator)
-
Really, it doesn't matter much as that wasn't intended to be pure content. I was simply saying in that part of the tutorial that you can use the Key adjustment to burn or dodge an image
-
Don't worry Sabrown, I am sure Tanel, rwp80, nor I are going to get onto you for writing your own version of our plugins
-
And besides, this was made for symbols. Not every font in the whole wide world
-
So I can request this tutorial be locked and trash the upgraded code i was working on?
-
That is not available through IndirectUI.
-
For those interested in a basic tutorial on adding font types, please read this tutorial: viewtopic.php?f=5&t=25502
-
Adding Font Types to WhichSymbol
A Codelab Tutorial for Non Code Lab users
First of all, before we get started I wanted to say that I am not going to use any coding jargon or make references to the coding language used, C#. However, you must have the plugin Code Lab succesfully installed. For more information about how to install plugins, please visit this thread.
Alright, so with that aside let us go ahead and get started. First, let's take a look at the original code, graciously provided by Ego Eram Reputo, which can be found here. Because we are not going to even mess around with all of the code, I am not going to post all of it here. Just the nibbles we will be working with
First part we have to do is edit the 'controls'. These are just some numerical additions and nothing more, take a look:
#region UICode int Amount1=42; // [32,255] Character int Amount2=150; // [8,255] FontSize int Amount3 = 1; // [1,4] Webdings Wingdings Wingdings2 Wingdings3 bool Amount4 = true; // [0,1] Show Entire Font #endregion
Look at line four of that code: it specifies which font we are going to work with. So, the part that contains '[1,4] specifies the range in fonts. So, the only work there is change the number 4 to the number of font types you wish to add. In my case, I am just adding one.
Next, we need to specify the font. Which font are you adding? First, find the true name (the name that is in the list of fonts) of the font you wish to add. In my case, I am adding Carbon Black as I often use it for single letter designs. So, take a look next at this part of the code: Webdings Wingdings Wingdings2 Wingdings3. After the word Wingdings3, add the true name of your font. By personal preference, I have spiffed mine up a bit for general purpose of neatness. Take a look: int Amount3 = 5; // [1,5] 1) Webdings, 2) Wingdings, 3) Wingdings2, 4) Wingdings3, 5) Carbon Black
With that taken care of, it is time to perform the direct code modifications. The first part is we have to add our font to the font lists. Find this part of the code:
Font F1 = new Font("Webdings", Amount2); Font F2 = new Font("Wingdings", Amount2); Font F3 = new Font("Wingdings 2", Amount2); Font F4 = new Font("Wingdings 3", Amount2);
After the fourth line, create a new line and type:
Font F5 = new Font("TRUE NAME", Amount2);
Replace the words TRUE NAME with the true name of your added font type. Now, your code should look similar to mine:
Font F1 = new Font("Webdings", Amount2); Font F2 = new Font("Wingdings", Amount2); Font F3 = new Font("Wingdings 2", Amount2); Font F4 = new Font("Wingdings 3", Amount2); Font F5 = new Font("Carbon Black", Amount2);
Now we have to reapply the previous steps. Excuse the copy and past Find this part of the code:
Font F11 = new Font("Webdings", 16); Font F12 = new Font("Wingdings", 16); Font F13 = new Font("Wingdings 2", 16); Font F14 = new Font("Wingdings 3", 16);
After the fourth line, create a new line and type:
Font F15 = new Font("TRUE NAME", 16);
Replace the words TRUE NAME with the true name of your added font type. Now, your code should look similar to mine:
Font F11 = new Font("Webdings", 16); Font F12 = new Font("Wingdings", 16); Font F13 = new Font("Wingdings 2", 16); Font F14 = new Font("Wingdings 3", 16); Font F15 = new Font("Carbon Black", 16);
Now that we have added our font, it is time to make just two more revisions (Hurrah!). Find the following code:
switch (Amount3) { case 1: symbol = Convert.ToString((char)Amount1); g.DrawString(symbol, F1, B1, selection.Left, selection.Top); break; case 2: symbol = Convert.ToString((char)Amount1); g.DrawString(symbol, F2, B1, selection.Left, selection.Top); break; case 3: symbol = Convert.ToString((char)Amount1); g.DrawString(symbol, F3, B1, selection.Left, selection.Top); break; case 4: symbol = Convert.ToString((char)Amount1); g.DrawString(symbol, F4, B1, selection.Left, selection.Top); break; }
If you looked hard enough, you should have found that there are two sections of code that look just like that, almost. So pay certain attention when finding the code. Alright, after the block that looks like this:
case 4: symbol = Convert.ToString((char)Amount1); g.DrawString(symbol, F4, B1, selection.Left, selection.Top); break;
We are going to add a very similar set of lines. Go ahead and create a new line beneath the above code, and type this:
case 5: symbol = Convert.ToString((char)Amount1); g.DrawString(symbol, F5, B1, selection.Left, selection.Top); break;
Easy, right? Although, let it be known that if you are adding multiple fonts you must type that in multiple times. Simply change the word case 5: to the next number in the series. Do the same for the word F5
Now we just have to reapply. Again, I am going to copy and paste the above and modify it as fit. So I apologize
Find the following code:
switch (Amount3) { case 1: symbol = Convert.ToString((char)(32+(Rank*15)+File)); g.DrawString(symbol, F11, B1, selection.Left+((File+1)*32), selection.Top+((Rank+1)*2*16)); break; case 2: symbol = Convert.ToString((char)(32+(Rank*15)+File)); g.DrawString(symbol, F12, B1, selection.Left+((File+1)*32), selection.Top+((Rank+1)*2*16)); break; case 3: symbol = Convert.ToString((char)(32+(Rank*15)+File)); g.DrawString(symbol, F13, B1, selection.Left+((File+1)*32), selection.Top+((Rank+1)*2*16)); break; case 4: symbol = Convert.ToString((char)(32+(Rank*15)+File)); g.DrawString(symbol, F14, B1, selection.Left+((File+1)*32), selection.Top+((Rank+1)*2*16)); break; }
If you looked hard enough, you should have found that there are two sections of code that look just like that, almost. So pay certain attention when finding the code. Alright, after the block that looks like this:
case 4: symbol = Convert.ToString((char)(32+(Rank*15)+File)); g.DrawString(symbol, F14, B1, selection.Left+((File+1)*32), selection.Top+((Rank+1)*2*16)); break;
We are going to add a very similar set of lines. Go ahead and create a new line beneath the above code, and type this:
case 5: symbol = Convert.ToString((char)(32+(Rank*15)+File)); g.DrawString(symbol, F15, B1, selection.Left+((File+1)*32), selection.Top+((Rank+1)*2*16)); break;
Easy, right? Although, let it be known that if you are adding multiple fonts you must type that in multiple times. Simply change the word case 5: to the next number in the series. Do the same for the word F5
Alright, you are finished! From here, I am going to presume you know how to build the code. If not, I recommend reading this article. If you need any more assistance, please post it in this thread. Happy modding!
-
So, if I understand correctly: I can now play chess through Paint.NET? Awesome.
-
I am not saying roll out every little plugin here. And besides, pyrochild's plugins differ enough to merit multiple roll outs. You wouldn't want to use Smudge and Curves+ in one plugin, yet being able to set the conditions for my custom brushes would be useful. Or if my custom brushes could gradient in color, or mask out the image, or other features like that. If you want to maintain smaller plugins, at least do the power users a favor and bndle it up in one roll out as well.
-
Seriously? Why do you not bundle up some of these brush plugins into your Custom Brushes plugin and roll it out as an advanced plugin? You say 'feature clogged', but things like this, masking, gradient colors, etc... in one plugin would be HUGE.
-
While Color Target is somewhat promising, I think you should try to heavily incorporate some of the technologies I had to 'invent' when developing Color to Alpha: viewtopic.php?f=16&t=25155
If you want some code examples, some of my theories and math, or anything else to bump up Color Target you can PM me
-
For some reason or another Aero appears disabled if Paint.NET is minimized :?
I am blaming it on 3.35 because it was not like that in 3.32.
Hmm, good to go I guess now. It appears fine, for some reason.
-
Actually, Rick, using a non system color would fix my unreported Aero issues I am getting when Paint.NET is minimized
-
You know Rick, I would love a color wheel in the prefences to change this background color. This would make it a lot easier for somebody like me that loves to compare my work against multiple color schemes and the like. That to me would be a solid resolution to this problem and would also develop more benefit for image creation.
-
Actually, I was trying to avoid getting into 3D discussion with that peice, but that is actually me trying to replicated Jake2K's tutorial in a plugin. As well, i was working on some bending to give it a dual appearance. Is it a leaf, or trees? As simple as it may seem, it is a huge test canvas of fun goodies to be looking for
-
@THS: I don't think anybody would mind, but remember it is against the Pictorium rules to post non Paint.NET created work
As well, if some of you all may remember I am on a vacation to Colorado. Yesterday I spent around fifteen hours in the car and had some cool Paint.NET creations, but I like this new Anhelo Designs logo I created. It doesn't fit into the perspective of Anhelo and CMD's take on the logo will remain the default, but here it is anyways!
-
Do you mind if I post a bit of a mini tutorial in here explaining how to add new font types and compile in Code Lab? I know that is the first thing I did with your code for all of my Dafont downloaded dingbats.
11 Healthy Habits of a Paint.NET Artist - A New Habit!
in Beginner Tutorials
Posted
Thank you for the input, Tendercrisp. I have taken your idea and added it into it. Yes, an update!