Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
57376613
Commit
57376613
authored
Dec 03, 2007
by
Miller Puckette
Browse files
"negative" font sizes for guis
parent
b783cbfc
Changes
13
Hide whitespace changes
Inline
Side-by-side
src/g_all_guis.c
View file @
57376613
...
...
@@ -446,7 +446,7 @@ void iemgui_label_font(void *x, t_iemgui *iemgui, t_symbol *s, int ac, t_atom *a
f
=
4
;
iemgui
->
x_fontsize
=
f
;
if
(
glist_isvisible
(
iemgui
->
x_glist
))
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s} %d %s}
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s}
-
%d %s}
\n
"
,
glist_getcanvas
(
iemgui
->
x_glist
),
x
,
iemgui
->
x_font
,
iemgui
->
x_fontsize
,
sys_fontweight
);
}
...
...
src/g_bang.c
View file @
57376613
...
...
@@ -55,7 +55,7 @@ void bng_draw_new(t_bng *x, t_glist *glist)
xpos
+
x
->
x_gui
.
x_w
-
1
,
ypos
+
x
->
x_gui
.
x_h
-
1
,
x
->
x_flashed
?
x
->
x_gui
.
x_fcol
:
x
->
x_gui
.
x_bcol
,
x
);
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
canvas
,
xpos
+
x
->
x_gui
.
x_ldx
,
ypos
+
x
->
x_gui
.
x_ldy
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
,
...
...
@@ -116,7 +116,7 @@ void bng_draw_config(t_bng* x, t_glist* glist)
{
t_canvas
*
canvas
=
glist_getcanvas
(
glist
);
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s} %d %s} -fill #%6.6x -text {%s}
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s}
-
%d %s} -fill #%6.6x -text {%s}
\n
"
,
canvas
,
x
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_lcol
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
);
...
...
src/g_graph.c
View file @
57376613
...
...
@@ -741,7 +741,7 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis)
{
i
-=
sys_fontheight
(
glist_getfont
(
x
));
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor nw\
-font {{%s} %d %s} -tags %s
\n
"
,
-font {{%s}
-
%d %s} -tags %s
\n
"
,
(
long
)
glist_getcanvas
(
x
),
x1
,
i
,
arrayname
->
s_name
,
sys_font
,
sys_hostfontsize
(
glist_getfont
(
x
)),
sys_fontweight
,
tag
);
}
...
...
@@ -823,7 +823,7 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis)
/* draw x labels */
for
(
i
=
0
;
i
<
x
->
gl_nxlabels
;
i
++
)
sys_vgui
(
".x%lx.c create text\
%d %d -text {%s} -font {{%s} %d %s} -tags %s
\n
"
,
%d %d -text {%s} -font {{%s}
-
%d %s} -tags %s
\n
"
,
glist_getcanvas
(
x
),
(
int
)
glist_xtopixels
(
x
,
atof
(
x
->
gl_xlabel
[
i
]
->
s_name
)),
(
int
)
glist_ytopixels
(
x
,
x
->
gl_xlabely
),
...
...
@@ -833,7 +833,7 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis)
/* draw y labels */
for
(
i
=
0
;
i
<
x
->
gl_nylabels
;
i
++
)
sys_vgui
(
".x%lx.c create text\
%d %d -text {%s} -font {{%s} %d %s} -tags %s
\n
"
,
%d %d -text {%s} -font {{%s}
-
%d %s} -tags %s
\n
"
,
glist_getcanvas
(
x
),
(
int
)
glist_xtopixels
(
x
,
x
->
gl_ylabelx
),
(
int
)
glist_ytopixels
(
x
,
atof
(
x
->
gl_ylabel
[
i
]
->
s_name
)),
...
...
src/g_hdial.c
View file @
57376613
...
...
@@ -73,7 +73,7 @@ void hradio_draw_new(t_hradio *x, t_glist *glist)
x
->
x_drawn
=
x
->
x_on
;
}
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
canvas
,
xx11b
+
x
->
x_gui
.
x_ldx
,
yy11
+
x
->
x_gui
.
x_ldy
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
...
...
@@ -141,7 +141,7 @@ void hradio_draw_config(t_hradio* x, t_glist* glist)
t_canvas
*
canvas
=
glist_getcanvas
(
glist
);
int
n
=
x
->
x_number
,
i
;
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s} %d %s} -fill #%6.6x -text {%s}
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s}
-
%d %s} -fill #%6.6x -text {%s}
\n
"
,
canvas
,
x
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_lcol
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
);
...
...
src/g_hslider.c
View file @
57376613
...
...
@@ -76,7 +76,7 @@ static void hslider_draw_new(t_hslider *x, t_glist *glist)
canvas
,
r
,
ypos
+
1
,
r
,
ypos
+
x
->
x_gui
.
x_h
,
x
->
x_gui
.
x_fcol
,
x
);
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
canvas
,
xpos
+
x
->
x_gui
.
x_ldx
,
ypos
+
x
->
x_gui
.
x_ldy
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
,
...
...
@@ -137,7 +137,7 @@ static void hslider_draw_config(t_hslider* x,t_glist* glist)
{
t_canvas
*
canvas
=
glist_getcanvas
(
glist
);
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s} %d %s} -fill #%6.6x -text {%s}
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s}
-
%d %s} -fill #%6.6x -text {%s}
\n
"
,
canvas
,
x
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_lcol
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
);
...
...
src/g_mycanvas.c
View file @
57376613
...
...
@@ -44,7 +44,7 @@ void my_canvas_draw_new(t_my_canvas *x, t_glist *glist)
xpos
+
x
->
x_gui
.
x_w
,
ypos
+
x
->
x_gui
.
x_h
,
x
->
x_gui
.
x_bcol
,
x
);
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
canvas
,
xpos
+
x
->
x_gui
.
x_ldx
,
ypos
+
x
->
x_gui
.
x_ldy
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
...
...
@@ -85,7 +85,7 @@ void my_canvas_draw_config(t_my_canvas* x, t_glist* glist)
x
->
x_gui
.
x_bcol
,
x
->
x_gui
.
x_bcol
);
sys_vgui
(
".x%lx.c itemconfigure %lxBASE -outline #%6.6x
\n
"
,
canvas
,
x
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_bcol
);
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s} %d %s} -fill #%6.6x -text {%s}
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s}
-
%d %s} -fill #%6.6x -text {%s}
\n
"
,
canvas
,
x
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_lcol
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
);
...
...
src/g_numbox.c
View file @
57376613
...
...
@@ -195,14 +195,14 @@ static void my_numbox_draw_new(t_my_numbox *x, t_glist *glist)
xpos
,
ypos
+
x
->
x_gui
.
x_h
,
x
->
x_gui
.
x_fcol
,
x
);
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
canvas
,
xpos
+
x
->
x_gui
.
x_ldx
,
ypos
+
x
->
x_gui
.
x_ldy
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_lcol
,
x
);
my_numbox_ftoa
(
x
);
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxNUMBER
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxNUMBER
\n
"
,
canvas
,
xpos
+
half
+
2
,
ypos
+
half
+
d
,
x
->
x_buf
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fcol
,
x
);
...
...
@@ -271,11 +271,11 @@ static void my_numbox_draw_config(t_my_numbox* x,t_glist* glist)
{
t_canvas
*
canvas
=
glist_getcanvas
(
glist
);
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s} %d %s} -fill #%6.6x -text {%s}
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s}
-
%d %s} -fill #%6.6x -text {%s}
\n
"
,
canvas
,
x
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_lcol
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
);
sys_vgui
(
".x%lx.c itemconfigure %lxNUMBER -font {{%s} %d %s} -fill #%6.6x
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxNUMBER -font {{%s}
-
%d %s} -fill #%6.6x
\n
"
,
canvas
,
x
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_fcol
);
sys_vgui
(
".x%lx.c itemconfigure %lxBASE1 -fill #%6.6x
\n
"
,
canvas
,
...
...
src/g_template.c
View file @
57376613
...
...
@@ -2136,7 +2136,7 @@ static void drawnumber_vis(t_gobj *z, t_glist *glist,
drawnumber_sprintf
(
x
,
buf
,
&
at
);
sys_vgui
(
".x%lx.c create text %d %d -anchor nw -fill %s -text {%s}"
,
glist_getcanvas
(
glist
),
xloc
,
yloc
,
colorstring
,
buf
);
sys_vgui
(
" -font {{%s} %d %s}"
,
sys_font
,
sys_vgui
(
" -font {{%s}
-
%d %s}"
,
sys_font
,
sys_hostfontsize
(
glist_getfont
(
glist
)),
sys_fontweight
);
sys_vgui
(
" -tags drawnumber%lx
\n
"
,
data
);
}
...
...
src/g_toggle.c
View file @
57376613
...
...
@@ -61,7 +61,7 @@ void toggle_draw_new(t_toggle *x, t_glist *glist)
canvas
,
xx
+
w
+
1
,
yy
+
x
->
x_gui
.
x_h
-
w
-
1
,
xx
+
x
->
x_gui
.
x_w
-
w
,
yy
+
w
,
w
,
(
x
->
x_on
!=
0
.
0
)
?
x
->
x_gui
.
x_fcol
:
x
->
x_gui
.
x_bcol
,
x
);
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
canvas
,
xx
+
x
->
x_gui
.
x_ldx
,
yy
+
x
->
x_gui
.
x_ldy
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
,
...
...
@@ -121,7 +121,7 @@ void toggle_draw_config(t_toggle* x, t_glist* glist)
{
t_canvas
*
canvas
=
glist_getcanvas
(
glist
);
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s} %d %s} -fill #%6.6x -text {%s}
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s}
-
%d %s} -fill #%6.6x -text {%s}
\n
"
,
canvas
,
x
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_lcol
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
);
...
...
src/g_vdial.c
View file @
57376613
...
...
@@ -75,7 +75,7 @@ void vradio_draw_new(t_vradio *x, t_glist *glist)
x
->
x_drawn
=
x
->
x_on
;
}
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
canvas
,
xx11
+
x
->
x_gui
.
x_ldx
,
yy11b
+
x
->
x_gui
.
x_ldy
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
...
...
@@ -141,7 +141,7 @@ void vradio_draw_config(t_vradio* x, t_glist* glist)
t_canvas
*
canvas
=
glist_getcanvas
(
glist
);
int
n
=
x
->
x_number
,
i
;
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s} %d %s} -fill #%6.6x -text {%s}
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s}
-
%d %s} -fill #%6.6x -text {%s}
\n
"
,
canvas
,
x
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_lcol
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
);
...
...
src/g_vslider.c
View file @
57376613
...
...
@@ -59,7 +59,7 @@ static void vslider_draw_new(t_vslider *x, t_glist *glist)
canvas
,
xpos
+
1
,
r
,
xpos
+
x
->
x_gui
.
x_w
,
r
,
x
->
x_gui
.
x_fcol
,
x
);
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
canvas
,
xpos
+
x
->
x_gui
.
x_ldx
,
ypos
+
x
->
x_gui
.
x_ldy
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
...
...
@@ -123,7 +123,7 @@ static void vslider_draw_config(t_vslider* x,t_glist* glist)
{
t_canvas
*
canvas
=
glist_getcanvas
(
glist
);
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s} %d %s} -fill #%6.6x -text {%s}
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s}
-
%d %s} -fill #%6.6x -text {%s}
\n
"
,
canvas
,
x
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_lcol
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
);
...
...
src/g_vumeter.c
View file @
57376613
...
...
@@ -116,7 +116,7 @@ static void vu_draw_new(t_vu *x, t_glist *glist)
canvas
,
quad1
,
yyy
,
quad3
,
yyy
,
x
->
x_led_size
,
iemgui_color_hex
[
led_col
],
x
,
i
);
if
(((
i
+
2
)
&
3
)
&&
(
x
->
x_scale
))
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxSCALE%d
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxSCALE%d
\n
"
,
canvas
,
end
,
yyy
+
k3
,
iemgui_vu_scale_str
[
i
],
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_lcol
,
x
,
i
);
...
...
@@ -126,7 +126,7 @@ static void vu_draw_new(t_vu *x, t_glist *glist)
i
=
IEM_VU_STEPS
+
1
;
yyy
=
k4
+
k1
*
(
k2
-
i
);
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxSCALE%d
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxSCALE%d
\n
"
,
canvas
,
end
,
yyy
+
k3
,
iemgui_vu_scale_str
[
i
],
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_lcol
,
x
,
i
);
...
...
@@ -138,7 +138,7 @@ static void vu_draw_new(t_vu *x, t_glist *glist)
canvas
,
mid
,
ypos
+
10
,
mid
,
ypos
+
10
,
x
->
x_led_size
,
x
->
x_gui
.
x_bcol
,
x
);
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxLABEL
\n
"
,
canvas
,
xpos
+
x
->
x_gui
.
x_ldx
,
ypos
+
x
->
x_gui
.
x_ldy
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
...
...
@@ -277,7 +277,7 @@ static void vu_draw_config(t_vu* x, t_glist* glist)
sys_vgui
(
".x%lx.c itemconfigure %lxRLED%d -width %d
\n
"
,
canvas
,
x
,
i
,
x
->
x_led_size
);
if
(((
i
+
2
)
&
3
)
&&
(
x
->
x_scale
))
sys_vgui
(
".x%lx.c itemconfigure %lxSCALE%d -text {%s} -font {{%s} %d %s} -fill #%6.6x
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxSCALE%d -text {%s} -font {{%s}
-
%d %s} -fill #%6.6x
\n
"
,
canvas
,
x
,
i
,
iemgui_vu_scale_str
[
i
],
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_lcol
);
...
...
@@ -285,12 +285,12 @@ static void vu_draw_config(t_vu* x, t_glist* glist)
if
(
x
->
x_scale
)
{
i
=
IEM_VU_STEPS
+
1
;
sys_vgui
(
".x%lx.c itemconfigure %lxSCALE%d -text {%s} -font {{%s} %d %s} -fill #%6.6x
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxSCALE%d -text {%s} -font {{%s}
-
%d %s} -fill #%6.6x
\n
"
,
canvas
,
x
,
i
,
iemgui_vu_scale_str
[
i
],
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_lcol
);
}
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s} %d %s} -fill #%6.6x -text {%s}
\n
"
,
sys_vgui
(
".x%lx.c itemconfigure %lxLABEL -font {{%s}
-
%d %s} -fill #%6.6x -text {%s}
\n
"
,
canvas
,
x
,
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_fsf
.
x_selected
?
IEM_GUI_COLOR_SELECTED
:
x
->
x_gui
.
x_lcol
,
strcmp
(
x
->
x_gui
.
x_lab
->
s_name
,
"empty"
)
?
x
->
x_gui
.
x_lab
->
s_name
:
""
);
...
...
@@ -481,7 +481,7 @@ static void vu_scale(t_vu *x, t_floatarg fscale)
yyy
=
k4
+
k1
*
(
k2
-
i
);
if
((
i
+
2
)
&
3
)
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxSCALE%d
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxSCALE%d
\n
"
,
canvas
,
end
,
yyy
+
k3
,
iemgui_vu_scale_str
[
i
],
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
x
->
x_gui
.
x_lcol
,
x
,
i
);
...
...
@@ -489,7 +489,7 @@ static void vu_scale(t_vu *x, t_floatarg fscale)
i
=
IEM_VU_STEPS
+
1
;
yyy
=
k4
+
k1
*
(
k2
-
i
);
sys_vgui
(
".x%lx.c create text %d %d -text {%s} -anchor w \
-font {{%s} %d %s} -fill #%6.6x -tags %lxSCALE%d
\n
"
,
-font {{%s}
-
%d %s} -fill #%6.6x -tags %lxSCALE%d
\n
"
,
canvas
,
end
,
yyy
+
k3
,
iemgui_vu_scale_str
[
i
],
x
->
x_gui
.
x_font
,
x
->
x_gui
.
x_fontsize
,
sys_fontweight
,
sys_fontweight
,
x
->
x_gui
.
x_lcol
,
x
,
i
);
...
...
src/u_main.tk
View file @
57376613
...
...
@@ -16,7 +16,7 @@ if { $tcl_platform(platform) == "windows" } {
set
pd_nt
1
set
defaultFontFamily
{
Bitstream
Vera
Sans
Mono
}
set
defaultFontWeight
normal
font
create
menuFont
-
family
Tahoma
-
size
11
font
create
menuFont
-
family
Tahoma
-
size
-
11
}
elseif
{
$
tcl_platform
(
os
)
==
"Darwin"
}
{
set
pd_nt
2
set
defaultFontFamily
Monaco
...
...
@@ -34,12 +34,12 @@ if { $tcl_platform(platform) == "windows" } {
#
tk
scaling
1
#
this
font
is
for
the
Pd
Window
console
text
font
create
console_font
-
family
$
defaultFontFamily
-
size
12
\
font
create
console_font
-
family
$
defaultFontFamily
-
size
-
12
\
-
weight
$
defaultFontWeight
#
this
font
is
for
text
in
Pd
windows
font
create
text_font
-
family
{
Times
}
-
size
14
-
weight
normal
font
create
text_font
-
family
{
Times
}
-
size
-
14
-
weight
normal
#
for
text
in
Properties
Panels
and
other
panes
font
create
highlight_font
-
family
$
defaultFontFamily
-
size
14
-
weight
bold
font
create
highlight_font
-
family
$
defaultFontFamily
-
size
-
14
-
weight
bold
#
end
Pd
-
extended
font
hacks
-----------------------------
...
...
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