nmlgc
d1adddb450
Include the terminating \0 character in string measurements of text sources
...
Apparently, \0 is not always a zero-width character?
Not including it as part of the string measurement may cut off the final word
on the line when using certain fonts together with outlines and wrapping.
Test case:
• Font: M+ 2p black (downloadable at https://mplus-fonts.osdn.jp/mplus-outline-fonts/download/index-en.html#download , "M+ TESTFLIGHT 060" release)
• ☑ Use Outline
• ☑ Use Custom Text Extents
• ☑ Wrap
• ☐ Scroll Mode (doesn't seem to be affected)
• Text: A, 20
2015-10-04 10:11:05 +02:00
HomeWorld
61189f08b2
Update min/max of textsource's extent/font size
2015-01-31 23:00:32 +02:00
palana
f4ed09778e
Add RTL-aware wrappers for DialogBox and CreateDialog
...
This makes previous RTL-changes (except for OBSMessageBox) obsolete
2014-02-26 07:07:13 +01:00
jp9000
f83442633b
Replace MessageBox with wrapper for RTL languages
2014-02-24 18:18:21 -07:00
jp9000
49241dc400
Added ability to use input devices for desktop audio, added a 'point filtering' option to text output source
2013-12-05 17:22:24 -07:00
HomeWorld
a9fc361ab1
Fixed some text output source properties UI elements enable/disable conditions
2013-11-03 19:54:08 +02:00
HomeWorld
05c2a60d4c
Added 'scroll mode' to text source
2013-08-27 09:58:32 +03:00
Richard Stanway
67224f2f06
Fix text outline opacity field enabled state
2013-07-18 01:28:52 -04:00
HomeWorld
59611a4ad9
Changed default text/outline color (to white/black) to avoid confusion when adding a text into an empty scene.
2013-06-08 18:39:17 +03:00
jp9000
5182df6405
made default text size 48
2013-04-22 14:25:24 -07:00
Richard Stanway
9aceaadbcc
Some small code cleanups via static analysis (cppcheck)
2013-04-04 03:20:02 -04:00
Lucas Murray
c7f92f3c99
Remove duplicate switch case from previous merge
2013-03-05 15:53:43 +08:00
Lucas Murray
d8cdc635f3
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
OBS.rc
Source/TextOutputSource.cpp
Source/WindowStuff.cpp
2013-03-05 12:06:41 +08:00
jp9000
490c79a404
manual merge of pull request for issue #126 by lmurry (also known as.. sunforest. ...)
...
fixed a bug with audio sources
added ability to change outline opacity independently of outline
a minor fix to renaming sources/scenes
2013-03-04 10:03:09 -07:00
Lucas Murray
252f122c56
Added ability to change the opacity of text outlines independently of
...
the text itself
2013-03-04 18:19:54 +08:00
jp9000
34f73441b3
finally fixed that utterly stupid size reset thing
2013-02-22 23:42:06 -07:00
jp9000
34ae3ac1de
graphics capture fix just in case injectHelper isn't working
...
also fixed text so that it doesn't use GDI textures, should fix multi-GPU laptop issues
2013-02-19 17:14:40 -07:00
jp9000
2067661142
fixed a code warning
2013-02-10 16:28:24 -07:00
HomeWorld
77d9b81435
It seems that path widen (in DrawOutlineText) causes a huge performance impact when calling DrawPath. Removed.
2013-02-10 20:15:59 +02:00
HomeWorld
d77c316911
Removed a wrong flag from string formatting (that caused text to be clipped when wrapped) + some minor fixes (if mesured text height is smaller than font size use font size ; incorrect padding applied when using outlines and wrapped text)
2013-02-10 16:15:28 +02:00
HomeWorld
d80fcde5d6
Rewritten textoutput source UpdateTexture, it was getting too messy
2013-02-08 01:26:01 +02:00
jp9000
8987f06940
made a minor change in how the sdk stuff is accessed. now requires more recent versions of the windows sdk to compile though, unfortunately
2013-02-04 13:55:44 -07:00
HomeWorld
966e4c48f4
Use a layout rect for measure string if bUseExtents & bWrap are true
2013-02-04 22:05:49 +02:00
jp9000
01e2ff4e3f
increased max texture size for text
2013-02-04 10:48:22 -07:00
HomeWorld
65417edd0e
More fixes to textoutput source part 2.
2013-02-04 15:07:20 +02:00
HomeWorld
ff4ed61ae8
Fixed an ugly crash in textoutput source (invalid path used when calling OSMonitorFileStart)
2013-02-04 14:48:16 +02:00
HomeWorld
2fc93fdfb0
More fixes to textoutput source
2013-02-04 13:56:41 +02:00
HomeWorld
eb0de62b75
Added a fixed horizontal padding for text
2013-02-04 00:46:01 +02:00
HomeWorld
7bee9dabff
Fixed some stupid mistakes (mine)
2013-02-03 23:31:51 +02:00
HomeWorld
1660dbc22f
Small code fix
2013-02-03 20:13:22 +02:00
HomeWorld
0c327003b0
Render background according to text size if text size < minimum texture size
2013-02-03 20:05:16 +02:00
HomeWorld
6a73126a57
Make sure the text is centered if textureSize > font size
2013-02-03 18:14:14 +02:00
HomeWorld
73d84599ca
Fixed text output measure string
2013-02-03 16:30:24 +02:00
HomeWorld
a221d513d3
Avoid multiple gdiplus calls if strCurrentText is 'invalid'
2013-02-03 14:18:43 +02:00
jp9000
68ed796dd5
minor adjustment to the text control code
2013-02-02 12:48:39 -07:00
HomeWorld
f11ccb11df
Glue in textoutputsource bk color/opacity
2013-02-02 21:40:56 +02:00
jp9000
ac1ea04856
Added some background color stuff to the text source, just needs finishing up
2013-02-02 11:56:39 -07:00
HomeWorld
43bd9f6338
Allow a higher range for text scrolling speed (now that we made it texture size independent)
2013-01-27 13:49:42 +02:00
HomeWorld
f5ac858553
Fixed vertical text positioning / made scroll speed texture size independent
2013-01-27 09:16:35 +02:00
HomeWorld
1f21d6a5bc
Fixed some 'little' mistakes in TextOutputSource
2013-01-11 21:05:21 +02:00
Richard Stanway
0898ff7c96
Fix issue with text source if change monitor fails on update
2013-01-11 00:08:54 -05:00
Richard Stanway
0a9e56d31c
Move the file change monitor to OBSApi for use in other sources
2013-01-10 23:25:16 -05:00
Richard Stanway
356f55bfac
Fix file change detection ignoring multiple change events
2013-01-09 20:15:33 -05:00
HomeWorld
a8027b362c
Revert "Check if the desired file selected in config dialog is valid no matter if we use extents or not"
...
This reverts commit 4385395d3779659fe00ee5864d7780de2d5999f6.
2013-01-02 23:07:08 +02:00
HomeWorld
e0a85f8df5
Revert "Revert "Small checks added; removed delayed texture refresh (no need for it)""
...
This reverts commit a5e453383a06b48b7b784960f08400e3580e9ad2.
2013-01-02 23:05:16 +02:00
HomeWorld
a5e453383a
Revert "Small checks added; removed delayed texture refresh (no need for it)"
...
This reverts commit 640e43bd83a8e0ab9d351e172b46021cc4809a12.
2013-01-02 23:04:27 +02:00
HomeWorld
4385395d37
Check if the desired file selected in config dialog is valid no matter if we use extents or not
2013-01-02 22:55:13 +02:00
HomeWorld
640e43bd83
Small checks added; removed delayed texture refresh (no need for it)
2013-01-02 21:39:03 +02:00
HomeWorld
847841941a
Make sure we get notified when file size changes too
2013-01-02 13:22:06 +02:00
HomeWorld
828af6c3e6
Fixed shared access flags usage XFile::Open
2013-01-02 12:54:48 +02:00