Questions tagged [text-width]
33 questions
1
vote
1 answer
How do I set an unlimited textwidth in Vim?
In Vim, I don't want to have a text width at all. I would like lines to go on forever. I tried set textwidth=0 but fq will still wrap the lines up to a certain number. The only way I can do this now is to set textwidth to a very large (but not too…

Raffi Khatchadourian
- 3,042
- 3
- 31
- 37
1
vote
2 answers
Strange behavior while computing string width in pixels for simulation of word wrap
Trying to get string width in C# to simulate wordwrap and position of text (now written in richTextBox).
Size of richTextBox is 555x454 px and I use monospaced font Courier New 12pt.
I tried TextRenderer.MeasureText() and also…

Gondil
- 787
- 3
- 9
- 28
1
vote
1 answer
vimrc file won't apply textwidth settings
While in a terminal session I can do
:set textwidth=9999
And I receive what I want (which is lines of text which can go to the end of my computer screen)
I created a file called ~/.vimrc which contains the line
set textwidth=9999
And I get no…

Sam
- 1,765
- 11
- 82
- 176
1
vote
5 answers
Unity C# , get text width / font character width
I want to get the width of a text in unity using C# .
Here is what I am trying to do .
int GetWidthOfMessage(string message)
{
int totalLength = 0;
Font font = text.font; //text is my UI text
CharacterInfo characterInfo = new…

user3578286
- 147
- 4
- 10
1
vote
0 answers
vim textwidth stops working during editing session
I've searched the web and stackoverflow and have not seen any mention of this issue. Specifically, when I am editing a text file (insert mode), at some point during the editing session, textwidth stops working and my lines no longer wrap. In every…

Joshua Hewlett
- 165
- 1
- 1
- 7
0
votes
2 answers
Text Width in VB 6
To check the Text Width, how to set the scale mode?
Is it -
Debug.Print .ScaleMode = 1
Or
Me.ScaleMode = 1
Which one does it work?
I test it with below code
Private Sub Command1_Click()
Dim xStr As String
xStr = "W"
With…

soclose
- 2,773
- 12
- 51
- 60
0
votes
0 answers
Fitting a log curve based on size of a text to detect the knee point
I am producing a plot based on the width of a text column to determine the "knee point" based on the curve that is generated. I want more granular numbers so that I can be more specific in the size of the text.
I have tried the…

Ranji Raj
- 778
- 4
- 18
0
votes
0 answers
Is it possible to detect text-width with pure css?
I would like to know how much percent width a sentence (in relation to window width) have.
Example:
Given:
Sentence with 20 letters including white space
Font Arial, font-size 20px
Wanted:
Width of the text (without wrap) in percentage in any…
user3025289
0
votes
3 answers
How to set width of a text character fixed in any device with CSS & HTML
I want to show the text in my text area in any device with the same width in pixels. Means I want to set the charter width in pixels which is unique in any device (Desktop/Mobile).