Skip to content

Commit

Permalink
v0.0.2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
cuinjune committed Jan 14, 2021
1 parent 72fe82e commit 21a670f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1750,13 +1750,13 @@ function pd_fontsize_to_gui_fontsize(fontsize) {
function gui_text_text(data, line_index) {
const left_margin = 2;
const fmap = font_height_map();
const font_height = fmap[fontSize] * (line_index + 1) * 0.9; // note: modified
const font_height = fmap[fontSize] * (line_index + 1);
return {
transform: `translate(${left_margin - 0.5})`,
x: data.x_pos,
y: data.y_pos + font_height + gobj_font_y_kludge(fontSize),
"shape-rendering": "crispEdges",
"font-size": pd_fontsize_to_gui_fontsize(fontSize) * 0.9 + "px", // note: modified
"font-size": pd_fontsize_to_gui_fontsize(fontSize) + "px",
"font-weight": "normal",
id: `${data.id}_text_${line_index}`,
class: "unclickable"
Expand Down

0 comments on commit 21a670f

Please sign in to comment.