Skip to content
Snippets Groups Projects
Commit dbbca80b authored by jojohoch's avatar jojohoch
Browse files

Add a Unicode font to display squares, bars, and dots

parent a857334c
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 1 deletion
Editor Editor
====== ======
1.24.0 1.24.0
- - Show arrow for slider in number line mode - Show arrow for slider in number line mode
- Add a Unicode font to display squares, bars, and dots
1.23.0 1.23.0
- Fix setting of the default z-index for frames - Fix setting of the default z-index for frames
......
...@@ -2,6 +2,7 @@ Player ...@@ -2,6 +2,7 @@ Player
====== ======
1.18.0 1.18.0
- Show arrow for slider in number line mode - Show arrow for slider in number line mode
- Add a Unicode font to display squares, bars, and dots
1.17.0 1.17.0
- Add animation for fixed virtual keyboard - Add animation for fixed virtual keyboard
......
File added
@font-face {
font-family: 'Roboto'; /* Extend the Roboto font family */
src: url(fonts/noto-sans-symbols-2-v13-symbols-regular.woff2) format('woff2');
unicode-range: U+2B1C, U+2758, U+2219; /* Square, Dot, Point*/
}
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
<link rel="stylesheet" href="editor.css"> <link rel="stylesheet" href="editor.css">
<link href="editor/assets/roboto.css" rel="stylesheet"> <link href="editor/assets/roboto.css" rel="stylesheet">
<link href="editor/assets/ptsans.css" rel="stylesheet"> <link href="editor/assets/ptsans.css" rel="stylesheet">
<link href="editor/assets/notoSansSymbols2.css" rel="stylesheet">
<link href="editor/assets/material-icons.css" rel="stylesheet"> <link href="editor/assets/material-icons.css" rel="stylesheet">
</head> </head>
<body> <body>
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="assets/roboto.css" rel="stylesheet"> <link href="assets/roboto.css" rel="stylesheet">
<link href="assets/ptsans.css" rel="stylesheet"> <link href="assets/ptsans.css" rel="stylesheet">
<link href="assets/notoSansSymbols2.css" rel="stylesheet">
<link href="assets/material-icons.css" rel="stylesheet"> <link href="assets/material-icons.css" rel="stylesheet">
</head> </head>
<body> <body>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
mat-mini-fab mat-mini-fab
class="key" class="key"
[class.fixed-keyboard-key]="position === 'right'" [class.fixed-keyboard-key]="position === 'right'"
[style.font-weight]="preset==='squareDashDot' ? 400: null"
[class.not-last-key]="!last" [class.not-last-key]="!last"
[class.oval-floating-keyboard-key]="oval && position === 'floating'" [class.oval-floating-keyboard-key]="oval && position === 'floating'"
[class.oval-fixed-keyboard-key]="oval && position !== 'floating'" [class.oval-fixed-keyboard-key]="oval && position !== 'floating'"
......
import { import {
Component, EventEmitter, Input, Output Component, EventEmitter, Input, Output
} from '@angular/core'; } from '@angular/core';
import { InputAssistancePreset } from '../../../../../common/models/uI-element';
@Component({ @Component({
selector: 'app-key', selector: 'app-key',
...@@ -12,6 +13,7 @@ export class KeyComponent { ...@@ -12,6 +13,7 @@ export class KeyComponent {
@Input() oval!: boolean; @Input() oval!: boolean;
@Input() position!: 'floating' | 'right'; @Input() position!: 'floating' | 'right';
@Input() last!: boolean; @Input() last!: boolean;
@Input() preset!: InputAssistancePreset;
@Output() enterKey = new EventEmitter<string>(); @Output() enterKey = new EventEmitter<string>();
} }
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<ng-container *ngFor="let key of row; let lastRowKey = last"> <ng-container *ngFor="let key of row; let lastRowKey = last">
<app-key <app-key
[key]="key" [key]="key"
[preset]="preset"
[last]="!last && lastRowKey" [last]="!last && lastRowKey"
[position]="position" [position]="position"
(enterKey)="enterKey.emit($event)"> (enterKey)="enterKey.emit($event)">
......
File added
@font-face {
font-family: 'Roboto'; /* Extend the Roboto font family */
src: url(fonts/noto-sans-symbols-2-v13-symbols-regular.woff2) format('woff2');
unicode-range: U+2B1C, U+2758, U+2219; /* Square, Dot, Point*/
}
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
<link rel="stylesheet" href="player.css"> <link rel="stylesheet" href="player.css">
<link href="player/assets/roboto.css" rel="stylesheet"> <link href="player/assets/roboto.css" rel="stylesheet">
<link href="player/assets/ptsans.css" rel="stylesheet"> <link href="player/assets/ptsans.css" rel="stylesheet">
<link href="player/assets/notoSansSymbols2.css" rel="stylesheet">
<link href="player/assets/material-icons.css" rel="stylesheet"> <link href="player/assets/material-icons.css" rel="stylesheet">
</head> </head>
<body> <body>
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="assets/roboto.css" rel="stylesheet"> <link href="assets/roboto.css" rel="stylesheet">
<link href="assets/ptsans.css" rel="stylesheet"> <link href="assets/ptsans.css" rel="stylesheet">
<link href="assets/notoSansSymbols2.css" rel="stylesheet">
<link href="assets/material-icons.css" rel="stylesheet"> <link href="assets/material-icons.css" rel="stylesheet">
</head> </head>
<body> <body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment