Vertical Gauge done but now vertical Text orientation Possible?

Now that i can draw vertical gauges.. well i need to set the text accordingly.. HP/MP/TP are short enough to not need that change..
but for min/max with more than 2 digits it could be a problem..

Does anyone knows how to rotate text orientation or display the min/max numbers digit on top another ?
I managed to slice the value digits into separate var then draw text containing each on top another with lineheight * x..
bust it looks bad lol..
450/450

4
5
0
/
4
5
0

even reducing the space between digits it still takes a lot of space..
maybe reducing font could help..

but best solution would be to have vertical text...
This could help you.
Yes..

But somehow i cant make it work in my .js file..
whats needed there to make it work ?

nevermind.. i typed .text and not .Text...
Ok.. it works like on your video

var basictext = new PIXI.Text("text");
SceneManager._scene.addChild(basictext);

But using it like this shows nothing..
var basictext = new PIXI.Text("text");
this.drawText(basictextrot, x, y, 44);

does it need to be converted into something first ?
Obviously it will not show anything if you use it like
var basictext = new PIXI.Text("text");
this.drawText(basictextrot, x, y, 44);
Simply put, drawText is a function that has to do with how MV handles text by default, which is not how PIXI handles text. So in order to handle the PIXI.Text you need to add it as a child of something. SceneManager._scene.addChild (text). Or in your particular case you may want to substitute this.drawText for this.addChild (basictext).
OK but in my case i needed something like this drawText(PIXI.Text, x, y, maxwidth)

to replace the HP text gauge of every member in the party..

i create party member background image using sprites and using addChild to display them..

is PIXI.Text like handling a sprite rather than a text ?
OK but in my case i needed something like this drawText(PIXI.Text, x, y, maxwidth)
You needed? I thought you needed something that would help you turn the text 90 degrees 😛
But now seriously. MV text is a bitmap with some predefined functions. In particular this is what drawText is.
Code:
Bitmap.prototype.drawText = function(text, x, y, maxWidth, lineHeight, align) {
    // Note: Firefox has a bug with textBaseline: Bug 737852
    //       So we use 'alphabetic' here.
    if (text !== undefined) {
        var tx = x;
        var ty = y + lineHeight - (lineHeight - this.fontSize * 0.7) / 2;
        var context = this._context;
        var alpha = context.globalAlpha;
        maxWidth = maxWidth || 0xffffffff;
        if (align === 'center') {
            tx += maxWidth / 2;
        }
        if (align === 'right') {
            tx += maxWidth;
        }
        context.save();
        context.font = this._makeFontNameText();
        context.textAlign = align;
        context.textBaseline = 'alphabetic';
        context.globalAlpha = 1;
        this._drawTextOutline(text, tx, ty, maxWidth);
        context.globalAlpha = alpha;
        this._drawTextBody(text, tx, ty, maxWidth);
        context.restore();
        this._setDirty();
    }
};
However, PIXI.Text is not a prototype of bitmap. PIXI.Text, just like every other PIXI renderable object, is on its own and every sprite etc. is derived from PIXI, not the other way around (with the exceptions of MV text, which is done in a very weird way).
In practice it means that drawText is a feature exclusive to MV text and PIXI.Text doesn't have it.
If you want to see if you can rotate text by default, maybe you can try to log it in console (var foo = this.drawText (...)) and see if you can rotate it somewhat.
Ok,,

Thank you for clearing this for me..
and yeah iv never see any text rotated 90 degrees in MV..

So i guess ill settle for this..
not sure ill add / max values.. ill see how it goes..
Ohh lol..

you cant rotate the text.. but you can rotate the window...

so with a separate window containing the gauges you can have that result..

Original thread: https://forums.rpgmakerweb.com/threads/vertical-gauge-done-but-now-vertical-text-orientation-possible.89691/