Skip to main content

Questions tagged [text]

Text is a sequence of printable characters.

text
8,618 questions with no upvoted or accepted answers
14 votes
5 answers
3k views

html 5 input type for alphanumeric on mobile keyboard

We have seen when input type "Text" selected on mobile keyboard it comes up with text, when input type "number" selected on mobile keyboard it comes up with numbers only. And when input type password ...
Touhidul Alam's user avatar
13 votes
0 answers
2k views

Displaying different text on a spinner item than the selected text, android

I have a spinner item, with three elements, say i) A - one ii) B - two iii) C - three. When the user presses the spinner, the drop down box displays these elements, but when one of them is ...
JAco's user avatar
  • 131
11 votes
1 answer
1k views

PPTX Style Inheritance

Does anyone know how character styles are inherited in a pptx file? I know that it goes at least like this: Local Run props (a:rPr) Local Paragraph props (a:pPr/a:defRPr) Shape Paragraph props (a:...
Sir Intellegence-BrainStormexe's user avatar
9 votes
0 answers
9k views

R - How to deal with "invalid input found on input connection" warning while reading in large file?

I have a large (1m+ lines) .txt file I'm reading into R. Each line is an excerpt from a news story that uses the characters from its original source, which is causing problems. Some lines will have ...
Conner M.'s user avatar
  • 2,034
9 votes
1 answer
1k views

TextRenderer: How to measure text as if it was on machine with different Dpi?

I have a C# WinForms application which consists of server and client side. I use TextRenderer.MeasureText(string text, Font font) method to measure text. At some moment I need to measure text on ...
Artem Kachanovskyi's user avatar
9 votes
3 answers
4k views

HTML - How to have paragraph split into equally wide lines?

This is about basic HTML+CSS page rendering. When a paragraph is too long to fit in one line, it occupies as much space as it can, then wraps, and again and so on. I would like the line wrapping of ...
user334639's user avatar
8 votes
0 answers
996 views

Copy text to clipboard from SVG with line breaks

Line breaks in SVG are represented using tspan elements with dy attributes. Like this: <text> <tspan x="10">line 1</tspan> <tspan x="10" dy="15">line 2</tspan&...
Neil Fraser's user avatar
7 votes
0 answers
3k views

Is there any plain text colorizer for VS Code?

I´m looking for a way to colorize plain text files on Visual Studio Code. There is a plugin that does it for Vim, called "txt.vim". txt.vim : Universal syntax script for all txt docs, logs and ...
Márcio Moreira's user avatar
7 votes
0 answers
2k views

Dynamically scale font size to the size of a graph within an image with pyplot (Python)

I'm using pyplot to create a gallery of plotted curves, which are all essentially the same size, but the number of them can change. I was wondering if there was a way to dynamically scale the size of ...
cadams's user avatar
  • 1,385
7 votes
0 answers
976 views

How to draw BiDi text in custom view using StaticLayout

In a custom android View I'm painting several user input texts that may be Bi-Directional. For example Hebrew or Arabic mixed with English text or numbers. To draw the text I basically use the view's ...
Gerrit Beuze's user avatar
7 votes
2 answers
4k views

MongoDB Overflow sort stage on text search

Using MongoDB v2.6, it's not uncommon that if one is sorting a cursor from a large result set to get an overflow. cursor = db.collection.find( { "key" : "value" } ) cursor.sort( { "rank" : 1 } ) // ...
Walt Stoneburner's user avatar
6 votes
1 answer
1k views

Change font size in curved text with PIXI JS

Is there an easy way to change font size in PIXI JS curved text? Text is created through new PIXI.mesh.Rope(pixiText.texture, points). With resize button (check image below) you can change size of ...
Martin Bokša's user avatar
6 votes
0 answers
1k views

python main.py turn to text file in pycharm

I suddenly have a problem with file main.py . I am using pycharm with python version 3.6 from anaconda. I had a full project that run fine and now the 'main.py' became text file. If I open a new ...
anat's user avatar
  • 135
6 votes
0 answers
4k views

How to set gravity center of SpannableStringBuilder?

I'm using two different fonts in one TextView: first is SVG font , second TTF font. To set icon with text to TextView I'm using this: String icon =getContext().getString(iconId);//"&#...
NickUnuchek's user avatar
  • 12.6k
6 votes
1 answer
457 views

Swing text API: Override LabelView with different string length?

I've got a StyledDocument instance that contains, among other things, strings that represent numbers. By overriding the attributes of the string's element, I'm using a custom View for them that I ...
fpw's user avatar
  • 801

15 30 50 per page
1
2 3 4 5
575