| Welcome, Guest |
You have to register before you can post on our site.
|
|
|
| Questions about how to use API gimp_layer_new() |
|
Posted by: arya - 10-26-2021, 11:59 AM - Forum: Scripting questions
- Replies (3)
|
 |
When I read the API document of gimp_layer_new(), I'm curious about what are explicit procedure calls in the below quote.
Quote: Other attributes such as layer mask modes, and offsets should be set with explicit procedure calls.
So I looked into gimp source code for this API usage example and find they don't set the mask mode or offset before adding this layer to the image using gimp_image_insert_layer().
Code:
layer = gimp_layer_new (image, _("Background"),
img_a->columns, img_a->rows,
image_type,
100,
gimp_image_get_default_new_layer_mode (image));
gimp_image_insert_layer (image, layer, NULL, 0);
I have the same confusion for gimp_layer_group_new() but I find the code file above calls gimp_layer_set_mode(), gimp_layer_set_opacity() and other APIs as required in the quote below.
Quote:Attributes such as layer mode and opacity should be set with explicit procedure calls.
So the questions are: what is the explicit meaning of the two quotes? which APIs should we call and how? Must we call these APIs?
Thank you very much!
|
|
|
| where/how to install "Text Outliner" plugin |
|
Posted by: deonholt - 10-26-2021, 11:47 AM - Forum: Windows
- Replies (2)
|
 |
Hi. I am a brand new GIMP user for about 2 days now and I have already learned a lot, thanks to excellent YT tutorials.
Windows 10 Pro 64-bit; GIMP 2.10.28
I need to install this plugin:
https://github.com/apocalyptech/gimp-text-outline
I downloaded the [color=var(--color-fg-muted)][color=var(--color-fg-default)]text-outline.py[/color][/color] file. I copied it to:
C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins
I put in the root folder and restarted GIMP. But, the plugin does not show show under filters, decor where it is supposed to be. I am sure I did not copy it to the right place.
Can someone please advise:
1. If I did it correctly, and
2. where to put the file for the plugin.
Thanks very much.
|
|
|
| Stop Loading Windows Fonts. |
|
Posted by: jerryemerydelacruz - 10-24-2021, 01:48 AM - Forum: General questions
- No Replies
|
 |
Is there a way to prevent Gimp from loading the fonts in the Windows>Fonts folder? I have removed all the font paths from Preferences but Gimp still reads the Windows fonts.
(10-24-2021, 01:48 AM)jerryemerydelacruz Wrote: Is there a way to prevent Gimp from loading the fonts in the Windows>Fonts folder? I have removed all the font paths from Preferences but Gimp still reads the Windows fonts.
I changed the permissions of the fonts.conf file in Program Files>Gimp2/etc/fonts. Opened the file with Notepad and removed the line <dir>WINDOWSFONTDIR</dir>. I then copied a ttf font to the Program Files>Gimp 2>share>gimp>2.0>fonts folder and restarted Gimp.
|
|
|
|