Normal text:

With discretionary ligatures enabled:

グラム

When writing mode is vertical, vertical glyph used:

グラム