Questions tagged [drawtext]
340 questions
2
votes
2 answers
Add a TextView inside a Custom View that herited View
I would like to know if it is possible to add a textview programmatically in a custom view that herites from View. In this customView, I draw some shapes with a canvas and I need to put some text too. I tried to use drawText but it doesn't offer…

user2508599
- 31
- 4
2
votes
0 answers
DrawText with DT_EXPANDTABS tabs not filled
In my custom control I avoid WM_ERASEBKGND to get rid of flicker. In WM_PAINT handler I first calculate the exact background region and fill it independently. Then I draw text fields with DrawText but when using DT_EXPANDTABS it seems that tab…

bkxp
- 1,115
- 1
- 12
- 20
2
votes
1 answer
Qt - QPainter.DrawText doesnt draw the text
I'm creating an analog clock in Qt-Creator 5, now I want to draw the numbers to the screen, but it doesn't work?
painter.drawText(QPoint(50, 50), "12");
I absolutely don't see the point why it doesn't work. when I replace this line in my code with…

Postback
- 619
- 2
- 9
- 27
2
votes
2 answers
Android: drawText not showing up over draw
This is my first Android App and I'm running into some difficulty with drawText(). I have been self-learning Android programming though Mario Zechner's Beginning Android Games. I am adapting the code he uses for the Mr. Nom game in his book to…

Wayde
- 33
- 5
2
votes
2 answers
Drawtext on surfaceview does only work on emulator but not on device
I use canvas.drawText on a SurfaceView and the output looks correct on the emulator but when I deploy the app to my device (a Samsung Galaxy S3) the text is written from top to bottom like this:
T
E
s
t
It looks like a line-break is added after…

Stepoid
- 521
- 4
- 9
2
votes
1 answer
Canvas drawText draws wrong position
I am using;
mCanvas.drawText(c.getText(), c.getCordX(), c.getCordY(), a);
for draw a text on my canvas object. At Galaxy Nexus text values appears true points but at ASUS transformer tablet, all of them appears false points like images below. Any…

Göksel Güren
- 1,479
- 13
- 21
2
votes
1 answer
[Android]canvas.drawText is very slow while changing text size continuously
I'm trying to scale the text continuously by changing text size. And I implement my own view to drawText on canvas every time the text size changed. But the procedure of invalidate and redraw canvas became very slow which lead to some animation…

Michelle
- 1,097
- 8
- 18
2
votes
1 answer
Combining a movie file with a text file
Current Status: I have a movie I recorded on a microscopy and a .txt file with two columns: time and temperature. This file is synchronous with the video.
I would like to 'edit' the video so there is a text box with the temperature that would update…

Hugo
- 557
- 4
- 13
2
votes
1 answer
ffmpeg multiplexing 4 videos into 1 and drawtext problems
I have four videos that I would like to multiplex into 1 video and put text in the upper left of each quadrant. I can successfully mux the videos such that vid1 is in the upper left, vid2 is in the upper right, vid3 in the lower left, and vid4 in…

user1895639
- 21
- 3
2
votes
1 answer
How does one Read an external applications DrawText drawn text
I have been struggeling a long time with this question: "How does one Read an external applications DrawText drawn text?".
Im coding in C# right now.
It is not possible for me to use Optical Character Recogniniton and i would prefer not to Hook or…

user1593973
- 21
- 3
2
votes
2 answers
Display text in a MFC application
I need to display text in an MFC application. I have a sample text like "Display text in mfc application". Let's assume the client window in which I intend to draw this text is so small(horizontally) that in one line the only text that can fit is…

molu
- 77
- 1
- 11
2
votes
1 answer
How do you apply a Scale Translation to a DrawingContext?
I have a Canvas with a scale translation applied in XAML. Using DrawingContext I draw lines on the Canvas. I now need to add text to the screen. I thought with formatted text I could apply a translation, but neither Formatted Text or…

user38349
- 2,945
- 9
- 36
- 47
2
votes
1 answer
ffmpeg + libavfilter's drawtext doesn't print accented characters
FFMpeg's libavfilter drawtext filter doesn't seem to want to print accented characters like é, and just leaves a space where they should be. This happens both when loading the text from file and when specifying it from the command line:
ffmpeg -i…

dotsam
- 183
- 1
- 1
- 5
1
vote
1 answer
Graphics.DrawString vs TextRenderer.DrawText drawing korean characters
I'm trying to migrate my Graphics.DrawString calls (.NET1) to TextRenderer.DrawText (new in .NET 2.0) to get the advantages of the ClearType rendering.
The problem is that TextRenderer does not print occidental characters correctly (korean,…

Daniel Peñalba
- 30,507
- 32
- 137
- 219
1
vote
1 answer
Managed DirectX9 Drawtext behind object
I use the drawtext method to create labels on a grid. Works perfectly - but they are always in front of the mesh im showing in the grid.
Is there a possibility to render it behind the mesh that its not visible inside the object?
Seems like drawtext…

user1095428
- 71
- 1
- 4