summaryrefslogtreecommitdiffstats
path: root/documentation/themes/themes-fonts.asciidoc
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2015-12-03 14:59:05 +0000
committerVaadin Code Review <review@vaadin.com>2015-12-03 14:59:12 +0000
commit2af72ba9636bec70046394c41744f89ce4572e35 (patch)
treeccb3dc2d2239585f8c3f79eb5f131ff61ca9ce86 /documentation/themes/themes-fonts.asciidoc
parent8aa5fabe89f2967e966a64842a608eceaf80d08f (diff)
downloadvaadin-framework-2af72ba9636bec70046394c41744f89ce4572e35.tar.gz
vaadin-framework-2af72ba9636bec70046394c41744f89ce4572e35.zip
Revert "Merge branch 'documentation'"7.6.0.beta2
This reverts commit f6874bde3d945c8b2d1b5c17ab50e2d0f1f8ff00. Change-Id: I67ee1c30ba3e3bcc3c43a1dd2e73a822791514bf
Diffstat (limited to 'documentation/themes/themes-fonts.asciidoc')
-rw-r--r--documentation/themes/themes-fonts.asciidoc85
1 files changed, 0 insertions, 85 deletions
diff --git a/documentation/themes/themes-fonts.asciidoc b/documentation/themes/themes-fonts.asciidoc
deleted file mode 100644
index 741fb00a72..0000000000
--- a/documentation/themes/themes-fonts.asciidoc
+++ /dev/null
@@ -1,85 +0,0 @@
----
-title: Custom Fonts
-order: 9
-layout: page
----
-
-[[themes.fonts]]
-= Custom Fonts
-
-In addition to using the built-in fonts of the browser and the web fonts
-included in the Vaadin themes, you can use custom web fonts.
-
-[[themes.fonts.loading]]
-== Loading Local Fonts
-
-You can load locally served web fonts with the [literal]#++font++# mixin as
-follows:
-
-
-----
-@include font(MyFontFamily,
- '../../mytheme/fonts/myfontfamily');
-----
-
-The statement must be given in the [filename]#styles.scss# file __outside__ the
-[literal]#++.mytheme {}++# block.
-
-The first parameter is the name of the font family, which is used to identify
-the font. If the font family name contains spaces, you need to use single or
-double quotes around the name.
-
-The second parameter is the base name of the font files without an extension,
-including a relative path. Notice that the path is relative to the base theme,
-where the mixin is defined, not the used theme. We recommend placing custom font
-files under a [filename]#fonts# folder in a theme.
-
-Not all browsers support any single font file format, so the base name is
-appended with [filename]#.ttf#, [filename]#.eot#, [filename]#.woff#, or
-[filename]#.svg# suffix for the font file suitable for a user's browser.
-
-
-[[themes.fonts.webfonts]]
-== Loading Web Fonts
-
-You can load externally served web fonts such as Google Fonts simply by
-specifying the loading stylesheet for the UI with the [classname]#@StyleSheet#
-annotation.
-
-For example, to load the "Cabin Sketch" font from Google Fonts:
-
-[subs="normal"]
-----
-@StyleSheet({"[replaceable]#http://fonts.googleapis.com/css?family=Cabin+Sketch#"})
-public class MyUI extends UI {
- ...
-----
-ifdef::web[]
-Note that such web fonts served from a domain different from the Vaadin
-application currently link:https://dev.vaadin.com/ticket/16249[do not work
-together with] responsive themes, as described in
-<<dummy/../../../framework/themes/themes-responsive#themes.responsive,"Responsive
-Themes">>. The problem occurs only in Firefox. A SecurityError is shown in the
-debug window.
-endif::web[]
-
-
-[[themes.fonts.using]]
-== Using Custom Fonts
-
-After loaded, you can use a custom font, or actually font family, by its name in
-CSS and otherwise.
-
-
-----
-.mystyle {
- font-family: MyFontFamily;
-}
-----
-
-Again, if the font family name contains spaces, you need to use single or double
-quotes around the name.
-
-
-
-