kkartaltepe / obs-text-pango Goto Github PK
View Code? Open in Web Editor NEWThis project forked from reboot/obs-text-pango
Text Source using Pango for OBS Studio
License: GNU General Public License v2.0
This project forked from reboot/obs-text-pango
Text Source using Pango for OBS Studio
License: GNU General Public License v2.0
I'm using the latest v1.0 release of the plugin with OBS Studio 26.1.1 (64-bit) on Windows 10, and I'm having a weird issue with shadows. As you can see in the image below, it has a dark outline, for some reason.
Judging from the preview in the properties window for the text source, the text itself also has this issue:
Is there any way to fix this?
This is my current config for the source, using a font from file (since for some reason the installed version of the font isn't applied by the plugin, even if font selector shows me that font without any issues) and reading text from a file:
Thanks in advance.
Alert the user with some text (and potentially figure out how to use more than one texture or some other workaround?)
I use a plugin for foobar2000 to output the title of the currently playing track from foobar2000 to a file, presumably encoded in UTF-8 (65001), and sometimes obs-text-pango doesn't render the text correctly (or at all).
STR:
Expected result:
All text rendered correctly
Actual result:
With some text files, the last character or multiple last characters wouldn't be rendered. Some text files would fail to render completely, and the plugin would throw errors in the obs-studio log.
Additional information:
Reproduced on Windows 7 SP1 and Windows 20 2004, both 64bit, using a pre-release version of obs-studio. Same issues reproduce identically on release versions.
All of this text was rendered correctly by the inbuilt Text(GDI+) plugin, and incorrectly by the inbuilt Text(Treetype 2) plugin.
Enabling Chat Log mode fixes all of the cut-off text issues, but the issue of not rendering anything remains present.
obs-studio log: 2021-07-05 02-50-53.txt
The "select font from file" option in the configuration window is a complete no-op because of conflicting conditionals on what FC_VERSION is supported.
In line 278 of text-pango.c
Line 278 in 8f4775d
However, given that, the conditional in line 33 of text-utilities.h
obs-text-pango/text-utilities.h
Line 33 in 8f4775d
include iconv? or other encoding conversion. (at this point not sure if anything is worth supporting other than UTF-16, JIS, maybe Big5, GB?)
Allow users to select language for script for when script doesnt match their locale. E.G. Han unified Chinese characters in Japanese locale.
Potentially allow disabling shadows on emoji (how to detect in runs?)
or Figure out how to do wipe to single color for shadows and stop using paths.
wrap curl/other http library and let people output text from remote urls
Some users want to center text sources into layouts and then allow dynamic text without the source being rearranged. Currently this can not be done with crop+pad.
I installed pango on mac via brew install pango
, but I don't see a pango text type option in sources in OBS. Are there further steps I need to do?
When reading from a text file that is regularly updated, it shows the 2nd to last update when the program updating the text file stops.
My my case, a countdown timer that updates a text file.
The timer is read correctly all the way until it hits 00:00:00. The text file says 00:00:00 but the Pango source in OBS shows 00:00:01
This does not happen with the built in text source in OBS
OS: Pop!_OS 21.04 (Ubuntu based)
OBS version: 27.0.1
Pango Version: 1.0
When you have non-opaque text, which is usually the case due to anti-aliasing, then when you add an outline the opacity is wiped out due to CAIRO_OPERATOR_SOURCE and text drawn with and without an outline appears vastly different.
Allow quick edit from source toolbar similar to the built-in text source
Currently, text rendering stops at the start of a line that's wider than 4096 pixels. Instead of cutting off the rendering altogether, such long lines should wrap when they hit the 4096 pixel mark.
(This should not preclude #6 being implemented.)
I am trying to compile the plugin under Ubuntu 19.04, but the cmake fails.
If you can, can you please compile standalone .so and publish it in releases?
Hi,
I would like to know if it's possible to change the emoji font, I've been trying to put an other font in obs-studio\data\obs-plugins\text-pango\fonts\emoji
but that doesn't seem to work even by changing the name of the ttf file.
Thanks for your help :)
Resolution seems very low compared to OOTB text, is there a setting for this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.