SlideShare uma empresa Scribd logo
1 de 22
Baixar para ler offline
‫ﺗﺎﯾﭙﻮﮔﺮاﻓﯽ در ﻃﺮاﺣﯽ واﮐﻨﺸﮕﺮا‬
‫ﺳﺎﻻر ﮐﺎﺑﻠﯽ‬
‫‪#RWDConf92 | @Sallar‬‬
‫3102 ,‪December 5th‬‬
‫ﻣﺘﻮن ﺑﺎﯾﺪ ﺧﻮاﻧﺎ ﺑﺎﺷﻨﺪ‬
‫ﻣﺘﻮن ﺧﻮاﻧﺎ‬
‫رﻧﮓ ﻫﺎﯾﯽ اﻧﺘﺨﺎب ﮐﻨﯿﺪ ﮐﻪ ﺧﻮاﻧﺎﯾﯽ ﮐﺎﻓﯽ داﺷﺘﻪ ﺑﺎﺷﻨﺪ و ﭼﺸﻢ را آزار ﻧﺪﻫﻨﺪ.‬

‫ﺧﻮاﻧﺎ‬

‫ﻧﺎﺧﻮاﻧﺎ‬
‫ﻣﺘﻮن ﺧﻮاﻧﺎ‬
‫ﻓﻮﻧﺖ ﻫﺎﯾﯽ اﻧﺘﺨﺎب ﮐﻨﯿﺪ ﮐﻪ ﺧﻮاﻧﺎ و ﻣﺨﺼﻮص اﺳﺘﻔﺎده در وب ﺑﺎﺷﻨﺪ.‬

‫ﻋﻠﻢ ﻧﻮر اﺳﺖ و ﺟﻬﻞ ﺗﺎرﯾﮑﯽ.‬
‫ﻋﻠﻢ ﻧﻮر اﺳﺖ و ﺟﻬﻞ ﺗﺎرﯾﮑﯽ.‬
‫ﻋﻠﻢ ﻧﻮر اﺳﺖ و ﺟﻬﻞ ﺗﺎرﯾﮑﯽ.‬
‫ﻋ0ﻢ .ﻮر ا+ﺖ و ('ﻞ %رﯾ"‬
‫ﯽ.‬
‫اﻧﺘﺨﺎب اﻧﺪازه ﻗﻠﻢ‬
‫اﻧﺘﺨﺎب اﻧﺪازه ﻗﻠﻢ‬
‫اﻧﺪازه ﻗﻠﻢ اﺻﻠﯽ ﺻﻔﺤﻪ را ﺑﻪ ﺟﺎی ﭘﯿﮑﺴﻞ ﺑﺮ اﺳﺎس درﺻﺪ ﺗﻌﯿﯿﻦ ﮐﻨﯿﺪ.‬

‫{‪html‬‬
‫;%001 :‪font-size‬‬
‫}‬
‫ﻣﺮورﮔﺮﻫﺎ ﻫﻤﯿﺸﻪ ﺑﻪ ﺻﻮرت ﭘﯿﺶ ﻓﺮض اﻧﺪازه ﻗﻠﻢ ﺻﻔﺤﺎت را ﺗﻌﯿﯿﻦ ﻣﯿﮑﻨﻨﺪ و‬
‫اﯾﻦ اﻧﺪازه را ﻣﯿﺸﻮد ﺗﻐﯿﯿﺮ داد.‬
‫اﻧﺘﺨﺎب اﻧﺪازه ﻗﻠﻢ‬
‫اﻧﺪازه ارﺗﻔﺎع ﺧﻄﻮط را ﯾﮏ ﺑﺎر و ﺑﺪون واﺣﺪ ﺗﻌﺮﯾﻒ ﮐﻨﯿﺪ.‬

‫{‪html‬‬
‫;%001 :‪font-size‬‬
‫;5.1 :‪line-height‬‬
‫}‬
‫ﻣﻌﻤﻮﻻ ارﺗﻔﺎع ﺧﻄﻮط ۵٫۱ ﺑﺮاﺑﺮ ﺳﺎﯾﺰ ﻗﻠﻢ ﺟﺎری و ﯾﺎ ﺑﺮ اﺳﺎس ﻧﺴﺒﺖ ﻃﻼﯾﯽ‬
‫اﻧﺘﺨﺎب ﻣﯿﺸﻮد.‬
‫اﻧﺘﺨﺎب اﻧﺪازه ﻗﻠﻢ‬
‫ﺑﺮای ﺗﻌﺮﯾﻒ اﻧﺪازه ﻗﻠﻢ در ﺻﻔﺤﻪ، ﺑﻪ ﺟﺎی ﭘﯿﮑﺴﻞ از واﺣﺪﻫﺎی زﯾﺮ اﺳﺘﻔﺎده ﮐﻨﯿﺪ:‬

‫‪em / rem‬‬
‫‪vw / vh‬‬
‫%‬
‫اﻧﺘﺨﺎب اﻧﺪازه ﻗﻠﻢ‬
‫ﻫﺮ واﺣﺪ ‪ em‬ﺑﻪ اﻧﺪازه اﺑﻌﺎد ﺣﺮف ‪ M‬ﺑﺰرگ در ﻋﻨﺼﺮ واﻟﺪ اﺳﺖ.‬

‫‪M‬‬

‫اﮔﺮ ﺳﺎﯾﺰ ﻗﻠﻢ ﻋﻨﺼﺮ واﻟﺪ ﺗﻌﯿﯿﻦ ﻧﺸﺪه ﺑﺎﺷﺪ، از ﻋﻨﺼﺮ واﻟﺪ آن ﻋﻨﺼﺮ‬
‫ﻣﺤﺎﺳﺒﻪ ﻣﯿﺸﻮد.‬
‫واﺣﺪ ‪ ،rem‬ﺑﻪ اﻧﺪازه واﺣﺪ ‪ em‬اﺳﺖ وﻟﯽ روی رﯾﺸﻪ ای ﺗﺮﯾﻦ ﻋﻨﺼﺮی‬
‫ﮐﻪ ﺳﺎﯾﺰ ﻗﻠﻢ آن ﺗﻌﯿﯿﻦ ﺷﺪه اﺳﺖ. ﻣﺜﻼ ‪.html‬‬
html{
font: 100%/1.5 "Helvetica Neue", sans-serif;
}
!
div{
font-size: 1.2em; // 16 x 1.2 = 19.2px;
}
!
div p{
font-size: 1.4em; // 19.2 x 1.2 = 26.88px;
}
!
div span{
font-size: 1rem; // 16 x 1 = 16px;
}
!
div small{
font-size: 0.8rem; // 16 x 0.8 = 12.8px;
}
‫اﻧﺘﺨﺎب اﻧﺪازه ﻗﻠﻢ‬
!‫ )و واﺣﺪﻫﺎی ﻣﺮﺗﺒﻂ( ﻣﯽ ﺗﻮاﻧﯿﺪ ﻫﻤﻪ ﺟﺎ اﺳﺘﻔﺎده ﮐﻨﯿﺪ‬em ‫از واﺣﺪ‬

.box{
border-radius: 1em;
height: 10em;
width: 30em;
padding: 0.2em 0 5em;
font-size: 3rem;
line-height: 2em;
}
‫اﻧﺘﺨﺎب اﻧﺪازه ﻗﻠﻢ‬
‫اﻧﺪازه ﻗﻠﻢ را ﻃﻮری ﺗﻌﯿﯿﻦ ﮐﻨﯿﺪ ﮐﻪ در ﻫﺮ ﺧﻂ ﺑﻪ ﻃﻮر ﻣﯿﺎﻧﮕﯿﻦ ﺑﯿﻦ‬
‫۵۴ ﺗﺎ ۵۷ ﺣﺮف وﺟﻮد داﺷﺘﻪ ﺑﺎﺷﺪ.‬
‫اﻧﺘﺨﺎب اﻧﺪازه ﻗﻠﻢ‬
‫ﺳﺎﯾﺰ ﻣﺘﻮن را ﺑﺮ اﺳﺎس اﻫﻤﯿﺖ آن ﻫﺎ و ﺑﺮ اﺳﺎس ﯾﮏ ﺳﯿﺴﺘﻢ ﻣﻘﯿﺎس اﻧﺘﺨﺎب ﮐﻨﯿﺪ.‬

‫ﻧﺴﺒﺖ ﻃﻼﯾﯽ‬
‫57889330816.1‬
‫اﻧﺘﺨﺎب اﻧﺪازه ﻗﻠﻢ‬
‫ﻧﺴﺒﺖ ﻃﻼﯾﯽ ﯾﮑﯽ از ﺑﻬﺘﺮﯾﻦ ﺳﯿﺴﺘﻢ ﻫﺎی اﻧﺘﺨﺎب ﻣﻘﯿﺎس اﺳﺖ.‬

‫‪type-scale.com‬‬
‫ﺗﺎﯾﭙﻮﮔﺮاﻓﯽ رﯾﺴﭙﺎﻧﺴﯿﻮ‬
‫ﺗﺎﯾﭙﻮﮔﺮاﻓﯽ رﯾﺴﭙﺎﻧﺴﯿﻮ‬
‫ﺑﺎ اﺳﺘﻔﺎده از ﻣﺪﯾﺎ ﮐﻮِﯾﺮی ﺳﺎﯾﺰ ﻗﻠﻢ رﯾﺸﻪ ای ﺗﺮﯾﻦ ﻋﻨﺼﺮ را ﺗﻐﯿﯿﺮ دﻫﯿﺪ.‬

‫{)‪media all and (max-width: 800px‬‬
‫{‪html‬‬
‫;%09 :‪font-size‬‬
‫}‬
‫}‬
‫ﻫﻨﮕﺎم ﺗﻌﺮﯾﻒ ﻣﺪﯾﺎ ﮐﻮِﯾﺮی ﻫﺎ از واﺣﺪ ‪ em‬ﺑﻪ ﺟﺎی ﭘﯿﮑﺴﻞ اﺳﺘﻔﺎده ﮐﻨﯿﺪ.‬
‫ﺗﺎﯾﭙﻮﮔﺮاﻓﯽ رﯾﺴﭙﺎﻧﺴﯿﻮ‬
‫ﯾﺎ ﺳﺎﯾﺰ ﻣﱳ ﻋﻨﺎﺻﺮ ﻣﺨﺘﻠﻒ را ﺟﺪاﮔﺎﻧﻪ و ﺑﺮ اﺳﺎس ﻧﯿﺎز ﺗﻐﯿﯿﺮ دﻫﯿﺪ.‬

‫{)‪media all and (max-width: 800px‬‬
‫{1‪h‬‬
‫;‪font-size: 2em‬‬
‫}‬
‫}‬
‫ﺗﺎﯾﭙﻮﮔﺮاﻓﯽ رﯾﺴﭙﺎﻧﺴﯿﻮ‬
‫ﻫﻨﮕﺎم ﺗﻌﺮﯾﻒ ﻣﺪﯾﺎ ﮐﻮِﯾﺮی ﻫﺎ ﺑﻪ ﺟﺎی ﭘﯿﮑﺴﻞ از ‪ em‬اﺳﺘﻔﺎده ﮐﻨﯿﺪ.‬

‫{)‪media all and (max-width: 50em‬‬
‫{1‪h‬‬
‫;‪font-size: 2em‬‬
‫}‬
‫}‬
‫واﺣﺪ ‪ em‬ﺑﺮ اﺳﺎس ﺳﺎﯾﺰ ﻓﻮﻧﺖ ﭘﯿﺶ ﻓﺮض ﻣﺮورﮔﺮ ﻋﻤﻞ ﻣﯿﮑﻨﺪ.‬
‫ﺗﺎﯾﭙﻮﮔﺮاﻓﯽ رﯾﺴﭙﺎﻧﺴﯿﻮ‬
‫واﺣﺪ ‪ em‬را ﭼﻄﻮر ﻣﺤﺎﺳﺒﻪ ﮐﻨﯿﻢ؟‬

‫‪px ÷ 16 = em‬‬
‫‪800px ÷ 16px = 50em‬‬
.box{
font-size: 1.5em;
line-height: 1.4;
width: 30em; //480px
}
!
@media all and (max-width: 30em)
{
.box{
font-size: 1.4em;
line-height: 1.3;
width: 20em; //320px
}
}
FitTextJs.com
SimpleFocus.com/flowtype
Type-Scale.com
@SALLAR
SALLAR.ME
SALLAR.KABOLI@GMAIL.COM

Mais conteúdo relacionado

Destaque

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Destaque (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Web Typography / RWD Conference Iran 2013 (In Farsi)