Skip to content

Commit

Permalink
modify font type and font size for state label text
Browse files Browse the repository at this point in the history
Signed-off-by: maria-ericsson <maria.chowdhury@ericsson.com>

modify font type and font size for state label text

Signed-off-by: maria-ericsson <maria.chowdhury@ericsson.com>
  • Loading branch information
maria-ericsson authored and bhufmann committed Nov 24, 2020
1 parent 35a92bf commit 7054195
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion timeline-chart/src/time-graph-font-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class FontController {
private fontColorMap: Map<number, string>;
private defaultFontName: string = "LabelFont8White";

constructor(fontFamily: string = "\"Lucida Console\", Monaco, monospace") {
constructor(fontFamily: string = "Verdana") {
this.fontFamily = fontFamily;
this.fontNameMap = new Map<number, Map<string, string>>();
this.fontColorMap = new Map<number, string>();
Expand Down Expand Up @@ -62,6 +62,8 @@ export class FontController {

let fontName: string | undefined;
if (size) {
const MIN_FONT_SIZE = 6;
size = Math.max(size, MIN_FONT_SIZE);
if (!this.fontNameMap.has(size)) {
this.updateFontNameMap(size);
}
Expand Down

0 comments on commit 7054195

Please sign in to comment.