File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 33 * @license MIT
44 */
55
6- import { isFirefox } from 'common/Platform' ;
6+ import { isFirefox , isLegacyEdge } from 'common/Platform' ;
77
88export const INVERTED_DEFAULT_COLOR = 257 ;
99export const DIM_OPACITY = 0.5 ;
10- // The text baseline is set conditionally by browser. Using 'ideographic' for Firefox would
10+ // The text baseline is set conditionally by browser. Using 'ideographic' for Firefox or Legacy Edge would
1111// result in truncated text (Issue 3353). Using 'bottom' for Chrome would result in slightly
1212// unaligned Powerline fonts (PR 3356#issuecomment-850928179).
13- export const TEXT_BASELINE : CanvasTextBaseline = isFirefox ? 'bottom' : 'ideographic' ;
13+ export const TEXT_BASELINE : CanvasTextBaseline = isFirefox || isLegacyEdge ? 'bottom' : 'ideographic' ;
1414
1515export const CHAR_ATLAS_CELL_SPACING = 1 ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const userAgent = (isNode) ? 'node' : navigator.userAgent;
1818const platform = ( isNode ) ? 'node' : navigator . platform ;
1919
2020export const isFirefox = userAgent . includes ( 'Firefox' ) ;
21+ export const isLegacyEdge = userAgent . includes ( 'Edge' ) ;
2122export const isSafari = / ^ ( (? ! c h r o m e | a n d r o i d ) .) * s a f a r i / i. test ( userAgent ) ;
2223
2324// Find the users platform. We use this to interpret the meta key
You can’t perform that action at this time.
0 commit comments