Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
saeed
odb_view
Commits
aaabe394
Commit
aaabe394
authored
Oct 04, 2019
by
saeed
Browse files
smaller font is chosen
parent
6a09c2f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
renderer.c
View file @
aaabe394
...
...
@@ -80,7 +80,7 @@ static struct Vis init_x(int w, int h){
result
.
win
=
XCreateWindow
(
result
.
dsp
,
RootWindow
(
result
.
dsp
,
result
.
screen_num
),
0
,
0
,
w
,
h
,
0
,
result
.
depth
,
InputOutput
,
result
.
visual
,
CWBackPixel
|
CWBorderPixel
|
CWOverrideRedirect
,
&
attributes
);
XSelectInput
(
result
.
dsp
,
result
.
win
,
ExposureMask
|
KeyPressMask
|
ButtonPressMask
|
StructureNotifyMask
|
PointerMotionMask
|
FocusChangeMask
);
char
*
fontname
=
"lucidasanstypewriter-bold-1
8
"
;
char
*
fontname
=
"lucidasanstypewriter-bold-1
2
"
;
result
.
fontinfo
=
XLoadQueryFont
(
result
.
dsp
,
fontname
);
if
(
!
result
.
fontinfo
)
{
fprintf
(
stderr
,
"unable to load font %s: using fixed
\n
"
,
fontname
);
...
...
@@ -416,7 +416,7 @@ static void odbinfo_onotherwindow(struct Vis *vis, struct odbinfo *odbinfo){
XSetForeground
(
vis
->
dsp
,
vis
->
gc
,
0x0
);
float
spacing
=
0
.
0
6
0
;
float
spacing
=
0
.
0
35
0
;
int
nb
=
1
;
int
indent
=
20
;
...
...
Write
Preview
Supports
Markdown
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