Skip to content

Rendering: Mispositioned combining marks when base and mark glyphs use different fonts #932

Description

@moi15moi

Screenshots

VSFilter

Image

libass (c425f6d)

Image

Description of the issue

When a combining mark is shaped using a different font than its base glyph, the mark is rendered at an incorrect vertical position. I'm not sure what cause this.

libass version

c425f6d

Is it a regression?

No response

ASS Sample

[Script Info]
; Script generated by Aegisub 9841-feature-2d190fef7
; http://www.aegisub.org/
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: TV.709
PlayResX: 1280
PlayResY: 720

[Aegisub Project Garbage]
Last Style Storage: Default
Video File: ?dummy:24000/1001:40000:1920:1080:255:255:255:
Video AR Value: 1.777778
Video Zoom Percent: 1.187500
Scroll Position: 39

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Abuhmeda Free,100,&H00221D18,&H000000FF,&H00545D85,&H00000000,-1,0,0,0,100,100,0,0,1,2.2,0,2,7,7,33,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.00,0:00:06.17,Default,,0,0,0,,aّ

You will need this font: Abuhmeda Free.zip

Special Fonts

I uploaded or linked to the required font

System Information

OS: Windows

Log

test.c: Available font providers (3): 'None', 'Autodetect', 'DirectWrite'.
libass: libass API version: 0x1704000
libass: libass source: meson, commit: 0.17.4-29-gc425f6d7ec9ca7e5dfa3f8bbed29a6ddbf39a596
libass: Raster: FreeType 2.14.3
libass: Shaper: FriBidi 1.0.16 (SIMPLE) HarfBuzz-ng 14.2.1 (COMPLEX)
libass: Initialized
libass: Using font provider directwrite (with GDI)
libass: File size: 930
libass: [000002CAD54B12F0] Style: Default,Abuhmeda Free,100,&H00221D18,&H000000FF,&H00545D85,&H00000000,-1,0,0,0,100,100,0,0,1,2.2,0,2,7,7,33,1
libass: Added subtitle file: 'C:/Users/moi15moi/Desktop/font/sample/Arabic Font Test - Copie.ass' (2 styles, 1 events)
libass: fontselect: (Abuhmeda Free, 700, 0) -> AbuhmedaFree-Regular, 0, AbuhmedaFree-Regular
libass: Glyph 0x61 not found, selecting one more font for (Abuhmeda Free, 700, 0)
libass: fontselect: Using default font family: (Abuhmeda Free, 700, 0) -> Arial-BoldMT, 0, Arial-BoldMT
libass: fontselect: (Abuhmeda Free, 700, 0) -> Arial-BoldMT, 0, Arial-BoldMT
2 images blended

Additional info

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions