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
e84fd4c8
Commit
e84fd4c8
authored
May 20, 2016
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plc HelpText object pdf text size fix
parent
ae7ad342
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
xtt/lib/flow/src/flow_annot.cpp
xtt/lib/flow/src/flow_annot.cpp
+24
-20
No files found.
xtt/lib/flow/src/flow_annot.cpp
View file @
e84fd4c8
...
...
@@ -77,6 +77,7 @@ void FlowAnnot::print( void *pos, void *node, int highlight)
(
text_size
+
4
)
-
4
);
double
size
=
8.0
+
6.0
/
3
*
idx
;
double
x
;
double
print_zoom_factor
=
312
;
if
(
size
<=
0
)
return
;
...
...
@@ -162,24 +163,25 @@ void FlowAnnot::print( void *pos, void *node, int highlight)
switch
(
ctx
->
current_print
->
type
())
{
case
print_eType_Pdf
:
{
ctx
->
fdraw
->
get_text_extent
(
ctx
,
"Ag"
,
2
,
flow_eDrawType_TextHelveticaBold
,
h1_size
,
&
z_width
,
&
z_height
,
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
(
12
+
2
*
h1_size
));
float
k
=
-
2.5
*
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
;
print_zoom_factor
/
ctx
->
base_zoom_factor
*
(
12
+
2
*
h1_size
));
float
k
=
-
2.5
*
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
*
ctx
->
print_zoom_factor
/
print_zoom_factor
;
size
=
0.85
*
z_height
;
break
;
}
default:
ctx
->
fdraw
->
get_text_extent
(
ctx
,
"Ag"
,
2
,
flow_eDrawType_TextHelveticaBold
,
h1_size
,
&
z_width
,
&
z_height
,
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
(
12
+
2
*
h1_size
));
float
k
=
-
2.5
*
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
;
size
=
8.0
+
48.0
/
3
*
idx
;
}
float
k
=
-
2.5
*
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
;
if
(
line_cnt
>
0
)
y_offs
+=
z_height
;
else
y_offs
+=
z_height
/
3
;
size
=
8.0
+
48.0
/
3
*
idx
;
ctx
->
current_print
->
text
(
z_x
,
z_y
+
y_offs
,
&
line
[
4
],
len
-
4
,
flow_eDrawType_TextHelveticaBold
,
size
,
line_cnt
);
}
...
...
@@ -188,24 +190,25 @@ void FlowAnnot::print( void *pos, void *node, int highlight)
switch
(
ctx
->
current_print
->
type
())
{
case
print_eType_Pdf
:
{
ctx
->
fdraw
->
get_text_extent
(
ctx
,
"Ag"
,
2
,
flow_eDrawType_TextHelveticaBold
,
h2_size
,
&
z_width
,
&
z_height
,
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
(
12
+
2
*
h2_size
));
float
k
=
-
2.5
*
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
print_zoom_factor
/
ctx
->
base_zoom_factor
*
(
12
+
2
*
h2_size
));
float
k
=
(
-
2.5
*
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
)
*
ctx
->
print_zoom_factor
/
print_zoom_factor
;
z_height
*=
k
;
size
=
0.85
*
z_height
;
break
;
}
default:
ctx
->
fdraw
->
get_text_extent
(
ctx
,
"Ag"
,
2
,
flow_eDrawType_TextHelveticaBold
,
h2_size
,
&
z_width
,
&
z_height
,
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
(
12
+
2
*
h2_size
));
float
k
=
-
2.5
*
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
;
size
=
8.0
+
20.0
/
3
*
idx
;
}
float
k
=
-
2.5
*
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
;
if
(
line_cnt
>
0
)
y_offs
+=
z_height
;
else
y_offs
+=
z_height
/
3
;
size
=
8.0
+
20.0
/
3
*
idx
;
ctx
->
current_print
->
text
(
z_x
,
z_y
+
y_offs
,
&
line
[
4
],
len
-
4
,
flow_eDrawType_TextHelveticaBold
,
size
,
line_cnt
);
}
...
...
@@ -213,24 +216,25 @@ void FlowAnnot::print( void *pos, void *node, int highlight)
switch
(
ctx
->
current_print
->
type
())
{
case
print_eType_Pdf
:
{
ctx
->
fdraw
->
get_text_extent
(
ctx
,
"Ag"
,
2
,
flow_eDrawType_TextHelveticaBold
,
text_size
,
&
z_width
,
&
z_height
,
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
(
12
+
2
*
text_size
));
float
k
=
-
2.5
*
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
;
print_zoom_factor
/
ctx
->
base_zoom_factor
*
(
12
+
2
*
text_size
));
float
k
=
-
2.5
*
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
*
ctx
->
print_zoom_factor
/
print_zoom_factor
;
size
=
0.85
*
z_height
;
break
;
}
default:
ctx
->
fdraw
->
get_text_extent
(
ctx
,
"Ag"
,
2
,
flow_eDrawType_TextHelveticaBold
,
text_size
,
&
z_width
,
&
z_height
,
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
(
12
+
2
*
text_size
));
float
k
=
-
2.5
*
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
;
size
=
8.0
+
6.0
/
3
*
idx
;
}
float
k
=
-
2.5
*
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
;
if
(
line_cnt
>
0
)
y_offs
+=
z_height
;
else
y_offs
+=
z_height
/
3
;
size
=
8.0
+
6.0
/
3
*
idx
;
ctx
->
current_print
->
text
(
z_x
,
z_y
+
y_offs
,
&
line
[
3
],
len
-
3
,
flow_eDrawType_TextHelveticaBold
,
size
,
line_cnt
);
...
...
@@ -253,9 +257,9 @@ void FlowAnnot::print( void *pos, void *node, int highlight)
switch
(
ctx
->
current_print
->
type
())
{
case
print_eType_Pdf
:
{
ctx
->
fdraw
->
get_text_extent
(
ctx
,
"Ag"
,
2
,
flow_eDrawType_TextHelvetica
,
text_size
,
&
z_width
,
&
z_height
,
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
(
12
+
2
*
text_size
));
float
k
=
-
2.5
*
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
;
print_zoom_factor
/
ctx
->
base_zoom_factor
*
(
12
+
2
*
text_size
));
float
k
=
-
2.5
*
print_zoom_factor
/
ctx
->
base_zoom_factor
+
2.62
;
z_height
*=
k
*
ctx
->
print_zoom_factor
/
print_zoom_factor
;
break
;
}
default:
...
...
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