Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
f49901f2
Commit
f49901f2
authored
Dec 02, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrections of text height
parent
ab2de6c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
xtt/lib/glow/gtk/glow_draw_gtk.cpp
xtt/lib/glow/gtk/glow_draw_gtk.cpp
+4
-4
No files found.
xtt/lib/glow/gtk/glow_draw_gtk.cpp
View file @
f49901f2
/*
* Proview $Id: glow_draw_gtk.cpp,v 1.1
8 2008-12-01 16:32:4
0 claes Exp $
* Proview $Id: glow_draw_gtk.cpp,v 1.1
9 2008-12-02 15:11:0
0 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -2548,7 +2548,7 @@ int GlowDrawGtk::print( char *filename, double x0, double x1, int end)
if
(
new_file
)
{
ps
->
fp
<<
"%!PS-Adobe-2.0 EPSF-1.2"
<<
endl
<<
"%%Creator: Proview $Id: glow_draw_gtk.cpp,v 1.1
8 2008-12-01 16:32:4
0 claes Exp $ Glow"
<<
endl
<<
"%%Creator: Proview $Id: glow_draw_gtk.cpp,v 1.1
9 2008-12-02 15:11:0
0 claes Exp $ Glow"
<<
endl
<<
"%%EndComments"
<<
endl
<<
endl
;
}
else
...
...
@@ -3356,7 +3356,7 @@ int GlowDrawGtk::gradient_fill_polyline( GlowWind *wind, glow_sPointX *points, i
#define FONTSTR "Lucida Sans"
#define FONT_SCALE 0.7
#define FONT_DESCENT 0.2
#define FONT_DESCENT 0.2
2
static
char
*
font_string
(
int
font_idx
,
int
font_type
,
double
size
)
{
...
...
@@ -3440,7 +3440,7 @@ int GlowDrawGtk::text_pango( GlowWind *wind, int x, int y, char *text, int len,
int
width
,
height
;
pango_layout_get_size
(
layout
,
&
width
,
&
height
);
height
*=
0.9
;
pango_renderer_draw_layout
(
pr
,
layout
,
PANGO_SCALE
*
x
,
PANGO_SCALE
*
y
-
0.85
*
height
);
pango_renderer_draw_layout
(
pr
,
layout
,
PANGO_SCALE
*
x
,
PANGO_SCALE
*
y
-
(
1.0
-
FONT_DESCENT
)
*
height
);
g_object_unref
(
layout
);
g_object_unref
(
pctx
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment