Questions tagged [drawtext]
340 questions
2
votes
1 answer
DrawText Strange behavior
I want to draw a second string adjacent to first string on the screen canvass. The starting point of the second string should be the width of the first string.I used paint.measuretext() method of Android. But it returns the width which is lesser…

AndosBerry
- 145
- 1
- 12
2
votes
1 answer
How do I drawtext superscript -1 (unicode)?
Unfortunately, I need to directly drawText on a button and I have to put -1 superscript on it.
Problem is that drawText prints small square instead of '\u207b' or ⁻ while it correctly prints '\u00b9' or ¹. I suspect drawText does not recognize…

Tae-Sung Shin
- 20,215
- 33
- 138
- 240
2
votes
1 answer
DrawThemeTextEx and clipped glow
Using this complete example I could draw text on Aero Glass. The rendering is perfectly fine, but there is a visual problem: the glow is clipped on the text-alignment side.
FYI, text format is defined like this:
Dim uFormat As Integer =…

Velcro
- 546
- 1
- 8
- 27
2
votes
0 answers
How to locate letters with DrawText() in MFC?
DrawText automatically breaks line when inputting text.
In single line I can use GetOutputTextExtent to locate a single letter. But with automatic line break I can't get the exact text of a single line. So I can't locate a letter (to be exact where…

mathddsccc
- 41
- 2
2
votes
1 answer
How to drawtext with a color gradient fill with ffmpeg (ffmpeg-python)? and then mix with music?
I'd like to achieve this result (to place a text with gradint or whatever picture-fill on top of a video):
So I decided to make a picture of gradient:
and then with chroma-key technique transform it to this (with transparent background):
and then…

Roman March
- 71
- 9
2
votes
1 answer
C# Win7 and Win2019 Convert text to image gives blur, not clear
I have a C# programm, that convert Text to Image by using GDI+ method Graphics.DrawString
On my machine with Windows 7 it works good
see example image here:
But on the Windows Server 2019 it creates blurry, not clear image
see example image…

Du10
- 67
- 5
2
votes
1 answer
android (Advanced)Saving a Bitmap Canvas with DrawText but textsize calculation needed
I have a Canvas that i draw text on.
(this is quite advanced i think hope you can follow me)
See attached image below.
The functionality is that I can tap on the screen to change the textsize.
Tap left screen = smaller Font.
Tap right Screen =…

Erik
- 5,039
- 10
- 63
- 119
2
votes
1 answer
How to increase line-height of text using drawtext with FFMPEG?
I'm using the current code to create a video with some text of several lines. When executed I'm receiving a video with the text joined vertically because of lacking space. How do I do to add line-height space?
ffmpeg -i videoInput.mp4 \
-vf…

Romualdo Arrechea Hernández
- 409
- 1
- 6
- 16
2
votes
1 answer
Using an IF-Statement inside a drawtext (FFMPEG)
I'm currently trying to implement a timer on a video with FFMPEG, so it should start at 00.00 and start timing after a number of frames and stop timing again after a set amount of frames. So the timer should work like this:
00:00 00:00 00.00 (start…

MonsterDruide1
- 347
- 3
- 15
2
votes
2 answers
ExtTextOut not displaying subscript characters
I'm attempting to render the following text using the ExtTextOut function with the Courier New font:
C₁C₂C²C³
The superscript characters show up fine, but the subscript characters show up as blocks. If I use the DrawText function, then the…

flashk
- 2,451
- 2
- 20
- 31
2
votes
1 answer
MFC, Drawing text in memory context (printing)
I got stuck with a problem - I need to create a bitmap in memory, draw some text i it and save it as a BMP file and then print out the bitmap with physical printer. I can do this drawing in the dialog window context - it works fine. But when I try…

user10723347
- 21
- 1
2
votes
1 answer
UWP Win2D draw text with specified width? Is it possible?
I like to draw text "Hello Test Text" with specific 'Width' of the string bound in UWP app with Win2D.
Here is why I need:

Sky Kim
- 159
- 10
2
votes
1 answer
Qt 5.6, how to draw text with a different fill and outline colours
I'm using Qt5.6, I am drawing text on a video window, however sometimes the text is not very readable due to the video content in the window. I'm current drawing the text on the painter context with the 'drawText' method. Whilst I can set the pen…

SPlatten
- 5,334
- 11
- 57
- 128
2
votes
1 answer
Show Filename in Video (fmpeg - drawtext)
right now, I want to add the filename of a video as text in the video itself. So if the video is in the file 'video2.mp4', there should be 'video2' written in the center of the video. How can I do this with drawtext?

Niklas Wünsche
- 101
- 1
- 8
2
votes
0 answers
ffmpeg- is there any limitation on number of drawtext filter used in a single command?
i have to write different text on a number of images. The final filter command is quite large (> 500 draw text filters in a single command). I am writing this to a text file and using filter_complex_script to read it.
If the number of frames and…

hack
- 1,403
- 2
- 14
- 20