[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] sdf abaef98 7/9: [graph] Add function to pass custom c
From: |
Werner LEMBERG |
Subject: |
[freetype2-demos] sdf abaef98 7/9: [graph] Add function to pass custom color for writing headers. |
Date: |
Tue, 22 Dec 2020 12:07:37 -0500 (EST) |
branch: sdf
commit abaef98bb914021fa49d09f025517fca85b79854
Author: Anuj Verma <anujv@iitbhilai.ac.in>
Commit: Werner Lemberg <wl@gnu.org>
[graph] Add function to pass custom color for writing headers.
* graph/grfont.h, graph/grfont.c (grGotobitmapColor): New function.
---
ChangeLog | 6 ++++++
graph/grfont.c | 12 ++++++++++++
graph/grfont.h | 7 +++++++
3 files changed, 25 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 34a0607..2ceef34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2020-08-22 Anuj Verma <anujv@iitbhilai.ac.in>
+ [graph] Add function to pass custom color for writing headers.
+
+ * graph/grfont.h, graph/grfont.c (grGotobitmapColor): New function.
+
+2020-08-22 Anuj Verma <anujv@iitbhilai.ac.in>
+
[ftsdf] Add main function.
* src/ftsdf.c (main): New function.
diff --git a/graph/grfont.c b/graph/grfont.c
index 9000f50..e92a05c 100644
--- a/graph/grfont.c
+++ b/graph/grfont.c
@@ -599,6 +599,18 @@
void
+ grGotobitmapColor( grBitmap* bitmap,
+ int r,
+ int g,
+ int b,
+ int a )
+ {
+ gr_text_bitmap = bitmap;
+ gr_color = grFindColor( bitmap, r, g, b, a );
+ }
+
+
+ void
grSetMargin( int right,
int top )
{
diff --git a/graph/grfont.h b/graph/grfont.h
index ae7cc61..e0b72fb 100644
--- a/graph/grfont.h
+++ b/graph/grfont.h
@@ -10,6 +10,13 @@
grGotobitmap( grBitmap* bitmap );
void
+ grGotobitmapColor( grBitmap* bitmap,
+ int r,
+ int g,
+ int b,
+ int a );
+
+ void
grSetMargin( int right,
int top );
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] sdf abaef98 7/9: [graph] Add function to pass custom color for writing headers.,
Werner LEMBERG <=