Typography for Responsive Design or RWD Typography
Hello Friends,
As we all know that, Responsive Design is a very popular technique and most using concept in web design. A responsive design giving us a flexible layout by adjusting images and the other sections. But what about typography of a web page? Shouldn't we need font automatically adjust as per the different resolutions and device orientation.
So Today I am sharing some method to help us to achieve a more readable typography regardless of device orientation or different resolution.
What is Typography?
" Typography is the art and technique of arranging type to make written language readable and appealing. The arrangement of type involves selecting typefaces, point size, line length, line-spacing (leading), letter-spacing (tracking), and adjusting the space within letters pairs."
-Wikipedia
Basically the creation of Responsive Web Design centered on 2 key techniques.
Fluid Grids
Adaptive Layouts
Unfortunately, these 2 techniques only helps to maintain the scaling and size of the specific design content like images, layout and videos to fit with the device or orientation. But when we move on to 'typography' of any design, it will not change. so to resolve the typography responsive problem, there are few methods we can adopt.
Responsive Typography Methods -
Fluid Typography With CSS3 Elements
Responsive typography with REMs
Modern Scaling for Web Typography
In this blog, I'll talk about Fluid Typography through CSS3 Elements. I'll cover entire points related to this method.
1. Fluid Typography through CSS3 Elements
The first method to implement typography is CSS3 Element. CSS3 new feature helps to set the font style, type, size proportionally to the device size or screen orientation. There are few elements which comes in this categories.
By Using Readable Font Face
This method is approaching CSS font family element by adding web based fonts to make content more
elegant and readable. This approach is based on CSS3 @font-face element which add custom web fonts, those
are not a common system fonts.
A great font-face make text more readable and clean, which make the proper visualization of content in any device size.
To implement the font-face, we need to generate a proper kit of Font-face with at least three font files such as- eot, woff, and truetype. It is require because of the diversity of font formats support by the browsers.
We can use online tool to generate this kits. One of the popular Font-face kit generator is Font Squirrels Font-Face Generator.
Using CSS View-port Units
CSS3 introduced one more new kind of typography units. We can achieve responsive typography by using 'view-port CSS units': vw, vh, vmax, and vmin.
Unit
Description
vw
stands for view-port width
vh
Stands for view-port height
vmin
equal to the smaller of 'vw' or 'vh'
vmax
Equal to the larger of 'vw' or 'vh'
"The view-port percentage lengths are relative to the size of the initial containing block. When the height or width of the initial containing block is changed, they are scaled accordingly."
1vw = Equal to 1% of the width of the initial containing block. 1vh = Equal to 1% of the height of the initial containing block. 1vmin = Equal to the smaller of vw or vh 1vmax = Equal to the larger of vw or vh.
In this session, we covered the overview of Typography and details relevant points of Fluid Typography through CSS3 Elements. In next session, we talk about another methods of Responsive typography.
0 Comment(s)