--- title: Roundtrip tagline: typography date: 2020-11-05 00:00:00 +100 description: > The character font serves as one of the most crucial branding elements for any business. Typography matters for any media presenting text. The text will take on an important role of acting not only as plain text but will also serve as something like images. categories: [ Roundtrip ] tags: [ Introduction, Module, Typography ] fab_menu_id: page_ctrl_simple permalink: /pages/public/learn/roundtrip/typography/ regenerate: false resources: [ animate ] resource_options: - attic: padding_top: 400 padding_bottom: 50 opacity: 0.3 slides: - url: /assets/images/pages/roundtrip/typography-1920x1280-bw.jpg alt: Photo by Alice Donovan Rousel on Unsplash preload: 0 transitionDuration: fast resolutionRefreshRate: 500 badge: type: unsplash author: Alice Donovan Rousel href: https://unsplash.com/@alicekat/portfolio --- // Page Initializer // ============================================================================= // Enable the Liquid Preprocessor :page-liquid: // Set (local) page attributes here // ----------------------------------------------------------------------------- // :page--attr: :images-dir: {imagesdir}/pages/roundtrip/100_present_images // Load Liquid procedures // ----------------------------------------------------------------------------- {% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%} // Load page attributes // ----------------------------------------------------------------------------- {% include {{load_attributes}} scope="all" %} // Page content // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Include sub-documents (if any) // ----------------------------------------------------------------------------- == Typography The character font serves as one of the most crucial branding elements for any business. Typography matters for any media presenting text. The text will take on an important role of acting as plain text but will also serve as something like images. == Responsive Text Sadly, one common flaw is seen in many templates and frameworks: a lack of support for genuinely responsive text. While elements on a page resize fluidly, the text still resizes on a fixed basis. To avoid this issue, especially for heavily text-focused pages, J1 Template supports styles that fluidly scale text size and line height to optimize readability for the user. Below you find an example of how text behaves if defined on a fixed basis - what you'll see quite often. Change the size of your Browser Window to see what will happen in terms of responsiveness. ++++

The Extremes of Good and Evil

Cicero, Paragraph 1.10.32 · Translation by H. Rackham, Issue 1914 - De Finibus

But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness.

No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure.

To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?

++++ To see Responsive Text `r-text` in action, use the button above to toggle on and off Responsive Text to see the difference! == Scaling Responsive Text The responsive text comes in five different scale factors in a range from 100 to 500. Scaling `r-text` gives you the flexibility to use `r-text` everywhere. Or you can offer different text sizes of your Web for visitors having visual handicaps or reading disabilities. To see `r-text` scaling in action, click on the button above to resize the text from `r-text` level 300 to 500 back and forth. Resize your Browser and watch the size of this text body change to see the responsiveness in action. ++++

The Extremes of Good and Evil

Cicero, Paragraph 1.10.32 · Translation by H. Rackham, Issue 1914 - De Finibus

On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain.

These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business is will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.

++++ == Scale factors As mentioned, `r-text` comes in five levels of size. The base of `r-text` is the Fibonacci numbers extracted from the Fibonacci series. These numbers are the most popular division ratios in typography. When speaking of the golden ratio (1: 1.618) in typography and graphic design, the Fibonacci numbers are usually the base. The Fibonacci series is translated into CSS Media queries and scales a base font in size accordingly. Further, the resulting font scale series have multipliers (scale factors) ranging from 0.5 (50%) up to 1.0 (100%) of the base. That way, five series are available by the five scale factors. See the following table how `r-text` scales. [cols="3,2,7a", options="header", role="rtable"] |=============================================================================== |Property | Factor |Example text |`r-text-100` |0.5 | [role="r-text-100"] But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. |`r-text-200` |0.7 | [role="r-text-200"] But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. |`r-text-300` |0.8 | [role="r-text-300"] But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. |`r-text-400` |0.9 | [role="r-text-400"] But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. |`r-text-500` |1.0 | [role="r-text-500"] But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. |=============================================================================== == What next Have you enjoyed playing with the text? We hope so. But even more, J1 can do for your web pages. With the examples on that page, icons support the meaning of what was grouped as text. J1 Template supports popular icons font sets like: * Material Design Icons * FontAwesome Icons V5 * Iconify Would you like to learn more about icons? The next example page focus on what's possible using link:{url-roundtrip--icon-fonts}[icon fonts, {browser-window--new}].