Git Product home page Git Product logo

obs-text-pango's People

Contributors

codeman38 avatar kilinbox avatar kkartaltepe avatar reboot avatar tt2468 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

obs-text-pango's Issues

Shadow issue

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.

image

Judging from the preview in the properties window for the text source, the text itself also has this issue:

image

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:

image

Thanks in advance.

Some UTF-8 files render incorrectly, or do not render

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:

  1. Download and extract example files: text-pango-sample-files.zip
  2. Create a new Text (Pango) source, tick "read from file", select one of the files

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

"Select font from file" has no effect due to backwards FC_VERSION conditional

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

#if FC_VERSION < 21291

the "select font from file" option is hidden from the UI if FC_VERSION < 21291. This is reasonable, as older fontconfig versions don't support the necessary API calls for this.

However, given that, the conditional in line 33 of text-utilities.h

#if FC_VERSION < 21291

is backwards! This code should only run if FC_VERSION >= 21291.

Allow language selection

Allow users to select language for script for when script doesnt match their locale. E.G. Han unified Chinese characters in Japanese locale.

Emoji Shadows

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.

http support

wrap curl/other http library and let people output text from remote urls

Bug: Incorrect Font Is Used

When selecting a font, the correct font is used when showing the name of the font, however, the preview and actual font rendered for the source are incorrect (Note, too, that the built-in text source works fine).

incorrect font

Custom width equivalent

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.

Mac installation next steps?

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?

Not reading last update to updated text file (i.e. countdown timer)

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

Outlines and Opacity

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.

Feature request: Wrapping at texture size limit

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.)

Compilation undex Ubuntu 19.04

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?

Change emoji font

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.