Gimp.TextLayer – gimp-3.0 Reference Manual
Packages
gimp-3.0
Gimp
TextLayer
get_by_id
TextLayer
get_antialias
get_base_direction
get_color
get_font
get_font_size
get_hint_style
get_indent
get_justification
get_kerning
get_language
get_letter_spacing
get_line_spacing
get_markup
get_outline
get_outline_antialias
get_outline_cap_style
get_outline_color
get_outline_dash_offset
get_outline_direction
get_outline_join_style
get_outline_miter_limit
get_outline_width
get_text
resize
set_antialias
set_base_direction
set_color
set_font
set_font_size
set_hint_style
set_indent
set_justification
set_kerning
set_language
set_letter_spacing
set_line_spacing
set_markup
set_outline
set_outline_antialias
set_outline_cap_style
set_outline_color
set_outline_dash_offset
set_outline_direction
set_outline_join_style
set_outline_miter_limit
set_outline_width
set_text
TextLayer
Object Hierarchy:
Description:
[
CCode
( type_id =
"gimp_text_layer_get_type ()"
) ]
public
class
TextLayer
:
Layer
,
Rasterizable
Functions for querying and manipulating text layers.
Namespace:
Gimp
Package:
gimp-3.0
Content:
Static methods:
public
static
unowned
TextLayer
?
get_by_id
(
int32
layer_id)
Returns a
TextLayer
representing
layer_id
.
Creation methods:
public
TextLayer
(
Image
image,
string
text,
Font
font,
double
size,
Unit
unit)
Creates a new text layer.
Methods:
public
bool
get_antialias
()
Check if antialiasing is used in the text layer.
public
TextDirection
get_base_direction
()
Get the base direction used for rendering the text layer.
public
Color
get_color
()
Get the color of the text in a text layer.
public
unowned
Font
get_font
()
Get the font from a text layer as string.
public
double
get_font_size
(
out
unowned
Unit
unit)
Get the font size from a text layer.
public
TextHintStyle
get_hint_style
()
Get information about hinting in the specified text layer.
public
double
get_indent
()
Get the line indentation of text layer.
public
TextJustification
get_justification
()
Get the text justification information of the text layer.
public
bool
get_kerning
()
Check if kerning is used in the text layer.
public
string
get_language
()
Get the language used in the text layer.
public
double
get_letter_spacing
()
Get the letter spacing used in a text layer.
public
double
get_line_spacing
()
Get the spacing between lines of text.
public
string
get_markup
()
Get the markup from a text layer as string.
public
TextOutline
get_outline
()
Get the outline type from a text layer.
public
bool
get_outline_antialias
()
Get the outline antialias setting from a text layer.
public
CapStyle
get_outline_cap_style
()
Get the outline cap style from a text layer.
public
Color
get_outline_color
()
Get the color of the text outline in a text layer.
public
double
get_outline_dash_offset
()
Get the outline dash offset from a text layer.
public
TextOutlineDirection
get_outline_direction
()
Get the outline direction from a text layer.
public
JoinStyle
get_outline_join_style
()
Get the outline join style from a text layer.
public
double
get_outline_miter_limit
()
Get the outline miter limit from a text layer.
public
double
get_outline_width
(
out
unowned
Unit
outline_unit)
Get the outline width from a text layer.
public
string
get_text
()
Get the text from a text layer as string.
public
bool
resize
(
double
width,
double
height)
Resize the box of a text layer.
public
bool
set_antialias
(
bool
antialias)
Enable/disable anti-aliasing in a text layer.
public
bool
set_base_direction
(
TextDirection
direction)
Set the base direction in the text layer.
public
bool
set_color
(
Color
color)
Set the color of the text in the text layer.
public
bool
set_font
(
Font
font)
Set the font of a text layer.
public
bool
set_font_size
(
double
font_size,
Unit
unit)
Set the font size.
public
bool
set_hint_style
(
TextHintStyle
style)
Control how font outlines are hinted in a text layer.
public
bool
set_indent
(
double
indent)
Set the indentation of the first line in a text layer.
public
bool
set_justification
(
TextJustification
justify)
Set the justification of the text in a text layer.
public
bool
set_kerning
(
bool
kerning)
Enable/disable kerning in a text layer.
public
bool
set_language
(
string
language)
Set the language of the text layer.
public
bool
set_letter_spacing
(
double
letter_spacing)
Adjust the letter spacing in a text layer.
public
bool
set_line_spacing
(
double
line_spacing)
Adjust the line spacing in a text layer.
public
bool
set_markup
(
string
markup)
Set the markup for a text layer from a string.
public
bool
set_outline
(
TextOutline
outline)
Set the outline type for the text layer.
public
bool
set_outline_antialias
(
bool
outline_antialias)
Set the outline antialias setting from a text layer.
public
bool
set_outline_cap_style
(
CapStyle
outline_cap_style)
Set the outline cap style for the text layer.
public
bool
set_outline_color
(
Color
color)
Set the color of the text outline in the text layer.
public
bool
set_outline_dash_offset
(
double
outline_dash_offset)
Set the outline dash offset from a text layer.
public
bool
set_outline_direction
(
TextOutlineDirection
outline_direction)
Set the outline direction for the text layer.
public
bool
set_outline_join_style
(
JoinStyle
outline_join_style)
Set the outline join style for the text layer.
public
bool
set_outline_miter_limit
(
double
outline_miter_limit)
Set the outline miter limit from a text layer.
public
bool
set_outline_width
(
double
outline_width,
Unit
outline_unit)
Set the outline width from a text layer.
public
bool
set_text
(
string
text)
Set the text of a text layer.
Inherited Members:
All known members inherited from class Gimp.Layer
add_alpha
add_mask
copy
create_mask
flatten
from_mask
get_apply_mask
get_blend_space
get_by_id
get_composite_mode
get_composite_space
get_edit_mask
get_lock_alpha
get_mask
get_mode
get_opacity
get_show_mask
is_floating_sel
remove_mask
resize
resize_to_image_size
scale
set_apply_mask
set_blend_space
set_composite_mode
set_composite_space
set_edit_mask
set_lock_alpha
set_mode
set_offsets
set_opacity
set_show_mask
All known members inherited from class Gimp.Drawable
append_filter
brightness_contrast
color_balance
colorize_hsl
curves_explicit
curves_spline
desaturate
edit_bucket_fill
edit_clear
edit_fill
edit_gradient_fill
edit_stroke_item
edit_stroke_selection
equalize
extract_component
fill
foreground_extract
free_shadow
get_bpp
get_buffer
get_by_id
get_filters
get_format
get_height
get_offsets
get_pixel
get_shadow_buffer
get_sub_thumbnail
get_sub_thumbnail_data
get_thumbnail
get_thumbnail_data
get_thumbnail_format
get_width
has_alpha
histogram
hue_saturation
invert
is_gray
is_indexed
is_rgb
levels
levels_stretch
mask_bounds
mask_intersect
merge_filter
merge_filters
merge_shadow
offset
posterize
set_pixel
shadows_highlights
threshold
type
type_with_alpha
update
All known members inherited from class Gimp.Item
@delete
attach_parasite
detach_parasite
get_by_id
get_children
get_color_tag
get_expanded
get_id
get_image
get_lock_content
get_lock_position
get_lock_visibility
get_name
get_parasite
get_parasite_list
get_parent
get_tattoo
get_visible
id
id_is_channel
id_is_drawable
id_is_group_layer
id_is_layer
id_is_layer_mask
id_is_link_layer
id_is_path
id_is_selection
id_is_text_layer
id_is_valid
id_is_vector_layer
is_channel
is_drawable
is_group
is_group_layer
is_layer
is_layer_mask
is_link_layer
is_path
is_selection
is_text_layer
is_valid
is_vector_layer
set_color_tag
set_expanded
set_lock_content
set_lock_position
set_lock_visibility
set_name
set_tattoo
set_visible
transform_2d
transform_flip
transform_flip_simple
transform_matrix
transform_perspective
transform_rotate
transform_rotate_simple
transform_scale
transform_shear
transform_translate
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gimp.Rasterizable
is_rasterized
rasterize
restore