From e84888a16c831288b2da8d61e4f9a50cebba24a3 Mon Sep 17 00:00:00 2001 From: Dmitry Karasik Date: Sun, 24 Nov 2024 14:20:44 +0100 Subject: [PATCH] document color fonts --- Changes | 1 + pod/Prima/Drawable.pod | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/Changes b/Changes index 5fc9da2f..0de1ccb3 100644 --- a/Changes +++ b/Changes @@ -5,6 +5,7 @@ Revision history for Perl module Prima - add Date,Time,KeySelector,FrameSet, and CheckList to VB - s/dragable/draggable/g - Grouped menu items use a distinct radio style check mark bitmap + - Support CPAL/COLR colored fonts 1.74 2024-08-24 - implement antialiased polygon fill in C, use it in the diff --git a/pod/Prima/Drawable.pod b/pod/Prima/Drawable.pod index 7bb79d6d..b0d1f90a 100644 --- a/pod/Prima/Drawable.pod +++ b/pod/Prima/Drawable.pod @@ -627,6 +627,13 @@ Is negative. Pixel width of the underscore line +=item colored + +True if the font has COLR/CPAL information and Prima is compiled with its support, +so that f ex emoji fonts are displayed with full color. + +Same as C + =back =head2 Font ABC metrics @@ -2381,6 +2388,13 @@ alpha bits. See also: C. +=item is_font_colored + +True if the current font has COLR/CPAL information and Prima is compiled with its support, +so that f ex emoji fonts are displayed with full color. + +Same as C + =item render_glyph INDEX, %OPTIONS Returns a representation of a glyph as an outline. The outline is an integer