Questions tagged [text-styling]
139 questions
2
votes
0 answers
IllegalStateException when stringResource() is used while building with Jetpack Compose
Text(buildAnnotatedString {
withStyle(style = SpanStyle(color = Color.Red)) {
append(stringResource(id = R.string.pre_style))
}
append(" ")
…

Varsha Kulkarni
- 1,389
- 2
- 13
- 17
2
votes
1 answer
How to automatically use scrollbar if div is overflowed
I want to have fixed height of div next to picture, but if text is longer than divs size I want to start overflow, how should I do it? I have tried bootstrap class overflow, than something like this but nothing works. Had to remove photo part of…

Thomas231
- 35
- 6
2
votes
2 answers
Get an Icon with subtext and then a list on the same line?
I'm trying to simply make an icon with subtext and then menu options all on the same line. However, it keeps positioning the menu options on a different line.
I.e., my html looks like the following:
Icon(w/subtext)
**space
Test1 Test2 etc...
…

guest554543
- 29
- 4
2
votes
1 answer
Android Spannable: Copy/Cut custom Span in Edittext only Pastes the base class
I am trying to extend some Spans so that they might become compound (to avoid having to set multiple spans on one piece of text), and/or store more information about themselves (like, "types" and "ids", etc.)
Everything works as expected, until I…

Attila Orosz
- 270
- 4
- 14
2
votes
3 answers
Text-overflow ellipsis not effected by position: relative
FIDDLE HERE
I have a image and below I have a span with the imagename.
2
votes
1 answer
Checking the font properties of a text in Java
I am developing an IDE for which I need a help. Suppose you have inserted a JLabel (with a text) in the container. Now, how do I check whether the text of the JLabel is underlined, strikedthrough and sub-(or super-)scripted?
We know that for…

RisingHerc
- 694
- 1
- 9
- 26
2
votes
1 answer
android wear notification with different text styles
On Add a Big View Google show how to make use of BigTextStyle. The screenshot looks very promising:
So I can see a title "Emmet Connolly" which I can set with setContentTitle().
And I can see a bold header "Re: wearables" which I don't know how to…

Kuno
- 3,492
- 2
- 28
- 44
2
votes
0 answers
Rich Text Formatting
I'm trying to find a way to format EditText in an Android app that I'm planning to create.
When I created a example project to do this, all there is are plain text multiline edit text etc. There isn't really a specific EditText for rich text…

Zer0
- 1,002
- 1
- 19
- 40
2
votes
2 answers
Crystal report with HTML content formatting
Is anybody of you worked on HTML data populating into crystal reports?
Am using Visual studio 2010.
I had an XML data coming from DB. Which am able to convert into HTML using XSL. Now my next task is to get it into crystal report.
Any hint will be…

Pavan N
- 255
- 2
- 6
- 21
1
vote
0 answers
React Native Text Trailing Space
I have a simple Text element that loads data from json file,and every thing works fine,
but when i apply styling "justify",i found a big trailing space at the end of the Text and cannot remove it.
i tried trimming {mydata.trim()},
It did not work,or…

Ahmad Dawood
- 25
- 5
1
vote
1 answer
Text Font style not appear
I am developing one application in which comic font are used and that can be fetched from assets folder. Now I would like to make the text bold. So I simply use :
Typeface face=Typeface.createFromAsset(this.getAssets(), "fonts/comic.TTF");
la…

Nikunj Patel
- 21,853
- 23
- 89
- 133
1
vote
1 answer
Image not Vertically Aligned in CSS | HTML & CSS
Image of the Website Footer
body {
background-color: #222;
}
.minimal-footer {
margin-left: 15%;
color: #add8e6;
font-family: 'Roboto Mono', monospace;
list-style: none;
font-size: 11px;
}
.text-wrapper {
list-style:…

Sahib Anand
- 11
- 1
1
vote
3 answers
Apply hyperlink underline style to body only
I was trying to apply the following anchor text underline style to my website but it is getting applied to the header and footer links too.
a {
text-decoration: none;
border-bottom: #EA215A 0.125em solid;
}
How do I apply this style to body…

Pawan Ranta
- 33
- 4
1
vote
1 answer
How can I change font weight in my project which has a default fontFamily for all textviews?
I have a project and in this project I have defined fontFamily to all textviews in the style of AppTheme.
The fontFamily is montserrat but in text views I use montserrat_semibold, montserrat_regular and montserrat_medium.