according to the original code
●
Segmentation mark
Set placement of words, paintings, tables, etc.
●
No discount
Make text not detour for too long
●
Suggested line breaks
Default line position
Font mark
●
Aggravated tone
Generate Bold and Bold font Effects
●
Bold mark
Generate a bold font Effect
●
Highlight
Italics appear in the font
display effect is the same as that of bold, while 100 ~ 400 intuitively, it is the same as normal.
Italic text
The italic of the text is controlled by font-style in CSS. If italic is used, italic is used and normal is used. Let's take a look at the sample code and running effect:
The running effect is as follows:
U
Common css property records and css attributes
Common CSS attributes:
Font attributes:( Font)Size font-size: x-large; (Extra large) xx-small; (very small) generally cannot be used in Chinese, as long as the value is used, unit: PX, PDStyle font-style: oblique; (italic) italic; (italic) normal; (normal)Line-height: normal; (normal) Unit: PX, PD, EMFont-weight: bol
". */ public TypefaceSpan(String family) { mFamily = family; }
SpannableStringBuilder ssb = new SpannableStringBuilder(content);ssb.setSpan(new TypefaceSpan("serif"), start, start + sub.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);contentTV.setText(ssb);
TextAppearanceSpan
Function: Set text font, text style (bold, italic, and so on), text color status, Text underline color status, and so on.
Three construction methods of TextAppearan
Http://blog.chinaunix.net/uid-26926660-id-3325421.html
I. Background
Try to make it easier.
II. Analysis2.1.Font position in the file system:
/System/fonts/where TTF files are font files for the font files under the source code/frameworks/data/fonts/
DroidSans-Bold.ttf bold unlined font (Latin letters, etc)
Droidsans. TTF regular unlined fonts (Latin letters, etc)
Droidsansfallback. TTF regular unlined font (Chinese characters, etc)
Droidsansmono. TTF-wide unlined font (Latin letters, etc)
Droi
Roman", Times,serif;}P.sansserif{font-family:Arial,helvetica,sans-serif;}style>Head>Body>H1>CSS font-familyH1>Pclass= "Serif">The font for this paragraph is times New RomanP>Pclass= "Sansserif">The font for this paragraph is Arial.P>Body>HTML>Font style properties for specifying italic textThis property has a value of three:1. Normal-Normal display text2. Italic-text displayed in
() method. The following events trigger
1.DataBinding Event Trigger
2. Data binding to data-bound controls
3.DataBound Event Trigger
Typically after 1,2,3 data will populate the data control with events immediately, we can also customize event handling to determine whether the data has been populated into the control and adjust the display format as we need it. We can do an example. We'll create a DetailsView to list the general information for a product, and when the UnitPrice is over $75.
composed of only one word, it is not enclosed in double quotes, such as: (Arial);under the Windows Chinese version of the operating system, the Chinese default font is Arial or the new song body, the English font default is.
4, the text bold Font-weight:bolder (thicker)/bold (bold)/normal (general)/100-900;DescriptionIn the CSS specification, the font thickness is divided into 9 levels, respectively, 100--900, of which 100 corresponds to the lightest font deformation, and 900 for the heavie
* Sorting: Chinese name + English name +unicode+unicode 2Windows platformNew Fine Ming body pmingliu \65b0\7ec6\660e\4f53 new Fine Ming bodyFine Ming body MingLiU \7ec6\660e\4f53 Fine Ming BodyStandard italic DFKAI-SB \6807\6977\4f53 standard italicBlackbody Simhei \9ed1\4f53 blackbodySong Body SimSun \5b8b\4f53 song bodyNew song body Nsimsun \65b0\5b8b\4f53 new song BodyImitation Fangsong \4eff\5b8b ImitationItalic Kaiti \6977\4f53 ItalicImitation _g
① linear gradient: background:linear-gradient (to top,green,red,.. )
Among them, to top: from the bottom to the top, indicating direction, you can also take values: to bottom, or with degrees: such as 45deg (ie 45 degrees)
Repeating gradients: repeating-linear-gradient (to Top,green 10%, Red 15%,blue 20%)
Where it represents green to the red gradient region, and 15–20% represents red to the blue gradient region
② Radial Gradient:
Syntax: background:r
; Colon is separated by a colon; semicolon is separated by semicolons; If you select Other, a text box is added to the Drop-down box to fill in the symbol that separates the data.Table width is the width of the table that is generated after the data is imported. If fit to data is selected, the table width is adapted as much as possible to the arrangement of the original data file data.If you select Set, you set the width of the table, and then fill in the value, followed by the Drop-down selecti
that the sub-element a of UL inherits the property value from the parent element (if no inherit,a value is used, it becomes 0.75*0.7em, causing too small*/ul a{font-size:Inherit;}Four, font properties
font-style
italic, normal, oblique font-weight
Defines the thickness of the text 100, 、...、 900, lighter, normal, bold , bolder
font-variant
Convert to small capital letters
One";Src:url ("Http://xxxxxxxxxx/xxx.woff"),Src:url ("Http://xxxxxxxxxx/xxx.ttf");}H1 {Font-family: "Emblema one", Sans-serif;}Fontsquirrel provides web font hosting services;The Font-size property controls the font size by using pixel px, percent% (relative to parent element), EM (relative to parent element), keyword Four ways to specify font size, for example:Body {FONT-SIZE:14PX (150%, 1.2em, small)}keywords, mainly using small and medimu, you can generally specify it as the font size in the
example, a classification name, a technical term, a slang in a foreign language, an idea. Or the Italic layout.
It can be noted from the specification that elements B and I will be given true semantics. More predictable attention should be paid to the different use of B, I, strong, and em.
Reference: http://www.planabc.net/2008/03/14/html5_ B _and_ I _tags_read_semantic/
It should be said that in the default HTML style table definition, B and stron
button.
Caption: The table title, which is a simple description of the table.
Center: Center the specified text and image.
Cite: Indicates the citation in italic.
Code: Indicates the sample code.
Col: Describes the default attribute of a column-based table.
Colgroup: Describes the default attributes of one or more columns in the table.
Comment: Indicates invisible comments. Prevent the contained text or HTML source code from being parsed and displaye
Font properties: (font)size {font-size:x-large;} (Extra-Large) xx-small; (very small) general Chinese can not be used, as long as the value is possible, units: PX, PDstyle {Font-style:oblique;} (oblique body) italic; (italic) normal; (normal)Row height {line-height:normal;} (normal) units: PX, PD, EMthickness {font-weight:bold;} (in bold) lighter; (fine body) normal; (normal)Variant {font-variant:small-caps
: SimSun New Arial: Nsimsun Imitation: Fangsong Italic: Kaiti Imitation _gb2312:fangsong_gb2312 Italic _gb2312:kaiti_gb2312 Microsoft Elegance blackbody: Microsoft Yahei Some of the things that can be produced by office:Official script: LisuYoung Circle: YouyuanChinese fine Black: StxiheiChinese Italic: StkaitiXXFarEastFont-Arial: StsongXXFarEastFont-Sung:
provide properties and methods for some of the font-related columns. ¯ Constructor Public Font (String name,int style,int size); Name: Specifies the font name (Arial, italic, etc.). You can use the Getavailablefontfamilyname () method provided in the Graphicsenvironment class to get the names of the various available fonts); style: Make the appearance of the font (public static properties: Bold (Bold), ITALIC
3. Text operations in GDI +
Using system. drawing;
Using system. Drawing. drawing2d;
Using system. Drawing. text;
Private void button#click (Object sender, eventargs E)
{
Graphics G = This. creategraphics ();
G. fillrectangle (brushes. White, this. clientrectangle );
Fontfamily FF = new fontfamily ("Times New Roman ");
Font F = new font (FF, 12 );
String S = "heigth:" + F. height;
Sizef Sf = G. measurestring (S, F, int32.maxvalue, stringformat. generictypographic );
Rectan
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.