, the entire site uses a font: Founders Grotesk. Interestingly, designers use this font of different colors, sizes to create a sense of hierarchy.
Fonts used: Founders Grotesk
9. Run for Ajd
This is a French site, from the font style is really poor readability, but in terms of style and personality, extremely prominent.
Font used: Avenir Book
Sendamessage.to
With just a few steps, you can use this site to send personalize
excellent case, because the selection process of the site's different attributes will be graded, so the color of the pros and cons here is also quantified. So, this part of the article is a selection of 20 top quality websites from the daily one stop in recent months. If you need a ready-made color scheme, use the following options directly.
Créations Namale by Phoenix the Creative Studio
Level by vide Infra
Brdr. Krüger by Relax, we are the good guys
Dre
better to choose a uniform non-liner body.For English, the common Helvetica Neue Family, Arial, Avenir and so on are very suitable fonts, they do well on high-definition screen, they will not let you down. Helvetica is also the font that Apple has been advocating for many years, and they recently changed the OS X system default font to Helvetica font, which echoes the full retina of Apple.In the case of Chinese, the retina screen is shown in boldface
This article collects 25 well-known websites for you (including Google, Yahoo, Twitter, Digg, etc.) logo used in the font, hoping to give you the design to bring more inspiration, click the name of each font, you can enter the font of the download page, but some of the font is to be charged.
twitter– Pico alphabet (Modified)
digg– FFF Forward (Modified)
Cork ' D- triplex
vimeo– Black Rose
grooveshark– FF Nuvo
envato– Agenda Italic
tuts+ network– Lubalin Graph
last.fm
This article introduces the fonts used in 25 well-known websites (including Google, Yahoo, Twitter, Digg, etc.) and has a fee and is free.
This article introduces the fonts used in 25 well-known websites (including Google, Yahoo, Twitter, Digg, etc.) and has a fee and is free.
twitter– Pico alphabet (Modified)
digg– FFF Forward (Modified)
Cork ' D- triplex
vimeo– Black Rose
grooveshark– FF Nuvo
envato– Agenda Italic
tuts+ network– Lubalin Graph
last.fm– National (Mo
{Delete the 7th paragraph position before the beginning of the current paragraph
D d Delete When moving forward
d/t e x t deletes the position of the typeface specified in "T e x T" from the text until the next occurrence of the typeface
The content between the location (but not the typeface)
D FC deletes the position of the character "C" appearing from the
circle style* Cap.round, or square style Cap.square** Setsrokejoin (Paint.join Join);* Set how the shapes are combined when drawing, such as smoothing effects, etc.** Setstrokewidth (float width);* When the brush style is stroke or fill_or_stroke, set the thickness of the brush** Setxfermode (Xfermode xfermode);* Set the process of drawing overlap, such as merging, taking intersection or union, often used to make eraser effect.** 2. Text rendering* Setfakeboldtext (Boolean fakeboldtext);* Simul
brush's graphic style, such as the circle style Cap.round, or square style cap.square
Setsrokejoin (Paint.join Join); set how the shapes are combined, such as smoothing effects, when drawing
setstrokewidth (float width); sets the thickness of the brush when the brush style is stroke or fill_or_stroke
Setxfermode (Xfermode xfermode); sets the way in which graphics overlap, such as merging, intersection, or union, often used to create eraser effects
Text drawing
Setfak
drawing text x axis, can achieve the effect of the text stretching
*
* Settextsize (float textSize);
* Set font size for drawing text
*
* SETTEXTSKEWX (float skewx);
* Set italic text, skewx to oblique radians
*
* Settypeface (Typeface Typeface);
* Set typeface object, that is, font style, including bold, italic and liner body, non-lin
, "Yesterday," "3 hours ago," etc.
XregexpRegular Expressions can be already used in JavaScript with the Regexp object.XregexpAdds more power to Regexp with features that will be part ofBrowsers Of Tomorrow (according to proposals for ecmascript 4-ES4 ).Using the library, Regexp objects can be cached and reused, ModifiersCan be added to existing Regexp objects and more.
Javascript URL LibraryA library for handling and manipulating URLs more easily. It is possibleTo reach every part of a UR
beginning and ending* Stroked lines and paths. The default is butt.*/Public Enum cap
Internal static class: we can see from the code that painting has a lot to do with this fontinfo.
Public static final class fontinfo {Font mfont;Java. AWT. fontmetrics mmetrics;}
There are three constructor types:
Public paint (){This (0 );}
Public paint (INT flags ){Setflags (flags | default_paint_flags );Initfont ();}
Public paint (paint ){Set (paint );Initfont ();}
T
(boolean fakeBoldText)// Set the pseudo-bold textVoidSetLinearText (boolean linearText)// Set linear textPathEffectSetPathEffect (PathEffect effect)// Set the path effectRasterizerSetRasterizer (Rasterizer rasterizer) // sets the grating.ShaderSetShader (Shader shader)// Set the shadow.VoidSetTextAlign (Paint. Align align)// Set text alignmentVoidSetTextScaleX (float scaleX)// Set the text zoom factor, and 1.0f is the originalVoidSetTextSize (float textSize)// Set the font sizeTypefaceSetTypefa
1. Get the color in the configuration file and set the control to this color.Java code
// Obtain the color in the color. xml file.
Int TMP = getresources (). getcolor (R. drawable. Blue); // obtain the color in the configuration file.
Mybutton. settextcolor (TMP );
2. Set the text font in the control.Java code
Mytext. settypeface (typeface. createfromasset (getassets (), "fonts/handmadetypewriter. TTF"); // set the font
Fontbutton. settypeface
First, create an xml file. The resource type is drawble and the root element is shape.
I. Custom draw lines
You can use the textview control in the layout xml file to set the background attributes.
Ii. Custom circle
Use the imageview control in the layout xml file
3. Customize the rectangle
4. Use custom Fonts
Copy the font format file. ttf to the assets Directory, read the font file Typeface. createFromAsset, and set the type setTypeface.
T
// Obtain the public static bitmap scalebitmap (string SRC, int max) of the reduced image {// obtain the height and width of the image bitmapfactory. options = new bitmapfactory. options (); // This setting enables bitmapfactory. the image obtained by decodefile is empty, but the image information is written to options. injustdecodebounds = true; bitmapfactory. decodefile (SRC, options); // to improve the accuracy of the calculation ratio, the original 640 is reduced to 64 max = max/10; int be =
void Setargb (int a, int r, int g, int b) Sets the Paint object color, parameter one is Alpha transparent channelvoid Setalpha (int a) sets Alpha opacity with a range of 0~255void Setantialias (Boolean AA)//whether anti-aliasingvoid setcolor (int color) //Set color, here the Android internal definition has a color class containing some common color definitions . void Setfakeboldtext (Boolean Fakeboldtext) //Set pseudo-bold text void Setlineartext (boolean Lineartext) //Set linear text p
First of all, if the Android internal fonts are not the fonts we need, then we need to import the font files into the Android development project, we will explain in detail in the afternoon:1. We first analyze that I want the font of the text in the TextView control is: Chinese in italics , we found that this is not available within the Android system, so we have to import the italic file ourselves. TTFWe put the font file of Chinese italics into the assets folder, create a new Fonts folder to
[0] = -1;int suffix = 0; suffix int prefix =-1; prefix while (suffix The code is not complex, the whole idea is to t[0]~t[suffix] as a substring, in turn, to find the equivalent of these substrings of the maximum prefix suffix sub-sequence, that is, the value of Next[suffix].It is difficult to understand that there are two places, I marked out with 1 and 2 respectively. We'll see in turn. As shown in the initialization process, prefix points to -1,suffix 0,next[0] =-1.The If condition prefix =
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.