obsproject / obsproject/obs-studio
'Text (FreeType 2)' element only reading first line of file (when 'Read from file' is checked)
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 76.4k
- Forks
- 10.2k
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 12
Description
Operating System Info
Ubuntu 22.04
Other OS
No response
OBS Studio Version
28.0.3
OBS Studio Version (Other)
No response
OBS Studio Log URL
https://obsproject.com/logs/VJ5xkLXGk9ICAlaP
OBS Studio Crash Log URL
No response
Expected Behavior
Expected behavior: Each line of the text file would be read, and a multi-line string would be shown.
Current Behavior
Only the first line of the text file is read, and other lines aren't shown. See screenshot:

To summarize:
- I have 'Text(FreeType 2)' set to read a text file. The text file has 4 lines. Only the first line of the file is being rendered.
Steps to Reproduce
- Create a text file with multiple lines of text.
- Create a 'Text (FreeType 2)' source element
- Check "Read from file", and in the 'Text File' field, select your multi-line file.
- Observe that only one line of output is shown, regardless of how many lines your actual file has.
...
Anything else we should know?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in OBS Studio 28.0.3 using a text file with four lines and a “Text (FreeType 2)” source with “Read from file” enabled. Trace the source's file-reading and rendering path; done means all lines are read and displayed as a multi-line string.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100