![letterspace different chrome safari letterspace different chrome safari](https://thumbs.dreamstime.com/b/purple-colored-circle-logo-vector-illustration-emblem-abstract-blue-figurine-inside-93775770.jpg)
if ( this.localStyleID != style.styleID)Ĭonst measured = asureText( this._text || ' ', this._style, this._style.wordWrap, this.canvas) Ĭonst maxLineWidth = measured.maxLineWidth Ĭonst fontProperties = measured.fontProperties Note: The onfocusout event may not work as expected in Chrome, Safari and Opera 15+ using. Even if you accidentally open a link in Safari, theres a quick way to jump the tab right into Chrome. However, there is a way you can work around this to open up links in Chrome instead. */ public updateText(respectDirty: boolean): void The main difference is that the onblur event does not bubble. When you tap on a URL link in a text, email, or wherever, your iPhones default reaction will be to open it up in Safari, and theres no way to change this in the settings. * respectDirty - Whether to abort updating the text if the Text isn't dirty and the function is called. * and then shared across multiple Sprites. * but it can be used called externally, for example from this class to 'pre-generate' the texture from a piece of text,
![letterspace different chrome safari letterspace different chrome safari](https://i.stack.imgur.com/pVESF.jpg)
* By default this is used internally to ensure the texture is correct before rendering, * Renders text to its canvas, and updates its texture. But, in Chrome and Firefox, there is a huge space showing below the menu bar. * Used to workaround a GC issues with Safari |TextStyle, canvas?: HTMLCanvasElement)Ĭanvas = document.createElement( 'canvas') I created a menu to link to my different portfolio categories. * element (`true`) or uses the constructor argument (`false`). * Keep track if this Text object created it's own canvas * Private listener to track style changes. * This is set to automatically match the renderer resolution by default, but can be overridden by setting manually. * The resolution / device pixel ratio of the canvas. ** The canvas 2d context that everything is drawn with. ** The canvas element that everything is drawn to. */ public static nextLineHeightBehavior = false * In the next major release, we'll enable this by default. * A value of `false` will use the legacy behavior and not change the baseline of the first line. * make sure the first baseline is offset by the `lineHeight` value if it is greater than `fontSize`. * New behavior for `lineHeight` that's meant to mimic HTML text.