Questions tagged [text]

Text is a sequence of printable characters.

Text is a sequence of printable characters.

Text can be unformatted (plain) or formatted (rich).

The most common character codes used for representing text are Unicode and ASCII:

  • ASCII is a character code and an encoding.
  • Unicode is a complex standard, with multiple encodings, the most common of which is UTF-8.
31743 questions
7
votes
4 answers

How to set style or font to text of a TextView in android?

I want to set style or font to the text in a TextView like the image shown below:
The iCoder
  • 1,414
  • 3
  • 19
  • 39
7
votes
2 answers

Center text on Canvas?

Can someone please give me an example on how to center text on a JavaFX 2 Canvas? GraphicsContext has some functions like setTextAlign, but I am not sure on how to use all those methods and which of them I really need. I want to center my text…
stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270
7
votes
1 answer

How align text in table to the left?

Good day. Code: What class in bootstrap.css would align text in
Pays to the left? If may give me link on full description format text in…
Leo Loki
  • 2,457
  • 6
  • 24
  • 29
7
votes
11 answers

Where should I put miscellaneous functions in a .NET project?

I found myself having to remove the first line of a string quite often while working on a text parser in C#. I put together a simple function to do that for me, but coming from a PHP background, I have no idea where to put it since I can't define a…
Butterfly
7
votes
6 answers

Why do plain-text technical articles often enclose terms within backticks and single quotes?

I like to save local copies of useful text-heavy pages from the web so I can practice improving their appearance by modifying the markup to include CSS. I've noticed that some text on the pages is often delimited by ` and '. Is there a good reason…
pavium
  • 14,808
  • 4
  • 33
  • 50
7
votes
1 answer

CSS: Change font color based on current color

I'm trying to find css that will allow me to change the color of text depending on the current color of the text. Here is the HTML (not HTML5) I'm trying to change: 2
dlshriver
  • 156
  • 1
  • 15
7
votes
1 answer

Change text height and width separately when drawing with canvas

I want to know if there is any way to modify text height and width separately when drawing with canvas. To set text size you can simply do paint.setTextSize(x);but it change text size in X and Y and I need to change text size in X and Y separately…
Andres
  • 6,080
  • 13
  • 60
  • 110
7
votes
3 answers

Read one-line text file, split to array

I'm reading a long line of info from a text file that looks exactly like this: Sebastien 5000\\Loic 5000\\Shubhashisshh 5000\\Thibaullt 5000\\Caroo 5000\\Blabla 5000\\Okayyy 5000\\SebCed 5000\\abusee 5000\\omg 5000\\ It's supposed to be high scores…
user1895293
  • 115
  • 1
  • 13
7
votes
2 answers

Shortest way to read Textfile to String

Possible Duplicate: What is the best way to slurp a file into a std::string in c++? I assumed there would be a question like this already, but I couldn't find one. So here goes my question. What is the shortest way to read a whole text file into…
danijar
  • 32,406
  • 45
  • 166
  • 297
7
votes
2 answers

Automatically read chat text from Minecraft

In Minecraft I was hoping to find a way to read the chat automatically like pictured below In order to record transactions made in the virtual shop into a PostgreSQL database. Preferably using Python. I do not own the Minecraft server. My plan is…
user1867827
  • 81
  • 1
  • 1
  • 4
7
votes
2 answers

Checking if word exists in a text file c++

I need to check if a word exists in a dictionary text file, I think I could use strcmp, but I don't actually know how to get a line of text from the document. Here's my current code I'm stuck on. #include "includes.h" #include #include…
Glen654
  • 1,102
  • 3
  • 14
  • 18
7
votes
1 answer

PDFBox - getting words locations (and not only characters')

Is it possible to get the locations of words using PDFBox, similar to "processTextPosition"? It seems that processTextPosition is called on single characters only, and the code that merges them into words is part of PDFTextStripper (in the…
user964797
  • 231
  • 3
  • 6
7
votes
1 answer

Create a halo around text in Python using PIL?

I'm watermarking some pictures using PIL and I'm having a hard time reading some of the text (black text on dark background). I can't just change text color since I've got a wide array of background colors. Is there any way to add a halo effect…
user1607225
  • 71
  • 1
  • 3
7
votes
3 answers

CSS code to margin space above text Only without effecting the background?

I have a class that has both a background image and text. I'm trying to figure out a way to manipulate the space above the Text Only, using the "margin" tag will change the position of the entire thing (image + text). I need to control the text…
user1594603
  • 171
  • 2
  • 5
  • 11
7
votes
2 answers

Reduce text padding inside a Button

Is ist possible to reduce the text padding inside a normal Android Button a bit, in order to reduce the button´s width? Of course the whole text should be still visible.
anonymous
  • 1,141
  • 3
  • 11
  • 20