Skip to content

subtitle font size is changing depending on video resolution height #4314

Description

@lzongor

Describe the bug

Since the new subtitle handling implementation I noticed that I have to keep adjusting the subtitle size and it is mostly related to the aspect ratio of the media.

I did a quick check in the codebase and I think the issue is in the following line:
mExoPlayerView.getSubtitleView().setFractionalTextSize(0.0533f * userPreferences.get(UserPreferences.Companion.getSubtitlesTextSize()));

From the documentation of setFractionalTextSize:
fun setFractionalTextSize(fractionOfHeight: Float): Unit

  • Sets the text size to be a fraction of the view's remaining height after its top and bottom padding have been subtracted

My understanding from this is that the when the media height changes the subtitle size will be different. Using a constant here to calculate the text size may not be the solution.

Logs

No response

Application version

0.18.2

Where did you install the app from?

None

Device information

CCwGTV

Android version

Android TV 12

Jellyfin server version

10.10.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions