Skip to content

Commit db929f3

Browse files
committed
fix font
1 parent 00e17bd commit db929f3

5 files changed

Lines changed: 8 additions & 16 deletions

File tree

Animation1.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@
3434
.labeledInput {
3535
margin-left: 5px;
3636
}
37-
span {
37+
#toolBar span {
3838
color: white;
39-
font-family: Arial Black;
39+
font-family: Arial, sans-serif;
40+
font-weight: 900;
4041
font-size: 13px;
4142
}
4243
#speedBox {

CapitalTycoon.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
.labeledInput {
3434
margin-left: 5px;
3535
}
36-
span {
37-
color: white;
38-
font-family: Arial Black;
39-
font-size: 13px;
40-
}
4136
</style>
4237
</head>
4338
<body>

TheBallGame.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131
.labeledInput {
3232
margin-left: 5px;
3333
}
34-
span {
35-
color: white;
36-
font-family: Arial Black;
37-
font-size: 13px;
38-
}
3934
iframe {
4035
top: 0px;
4136
left: 0px;

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
<meta name="keywords" content="HTML pages, Páginas HTML, JS pages, Páginas JS, Jogo da Bolinha, The Ball Game, JavaScript Animations, JavaScript Games, Animações JavaScript, Jogos JavaScript, html js comxa com">
88
<link rel="icon" href="resources/HTML5.png"/>
99

10-
<style> /*NPP_COLLAPSE_IT*/
10+
<style>
1111
* {
1212
text-align: center;
13+
font-family: Arial, sans-serif;
1314
}
1415
body {
1516
background-color: #d7d7d7;
@@ -37,7 +38,7 @@ <h1 id="subtitle">Bem vindo a esta página!</h1>
3738
<p class="links"><a id="Animation 1_html" href="Animation1.html">Animação 1</a></p>
3839
<p class="links"><a id="Animation 2_html" href="Animation2.html">Animação 2</a></p>
3940
<p class="links"><a id="Ball Game_html" href="TheBallGame.html">Jogo da Bolinha</a></p>
40-
<p class="links"><a id="CapitalTycoon_html" href="CapitalTycoon.html">Monopólio</a></p>
41+
<p class="links"><a id="CapitalTycoon_html" href="CapitalTycoon.html">Capital Tycoon</a></p>
4142
<script type="module" src="src/index/entrypoint.ts"></script>
4243
</body>
4344
</html>

src/JSTools.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class Label extends Control {
326326
this.color = "white";
327327
this.outlineColor = transparent;
328328
this.textHeight = 30;
329-
this.fontFamily = "Tahoma";
329+
this.fontFamily = "Arial";
330330
this.xAlign = xAlign; //Horizontal Aligning
331331
this.yAlign = "middle"; //Vertical Aligning
332332
}
@@ -342,7 +342,7 @@ class Label extends Control {
342342
ctx.textBaseline = this.yAlign;
343343
ctx.strokeStyle = this.outlineColor;
344344
ctx.lineWidth = this.outlineWidth;
345-
ctx.font = "bold " + this.textHeight + "px " + this.fontFamily;
345+
ctx.font = "bold " + this.textHeight + "px " + this.fontFamily + ", Arial, sans-serif";
346346
}
347347
}
348348
/**

0 commit comments

Comments
 (0)