Comments (4)
LCUI loads the font file specified by src
in @font-face
, but does not register the font with a new font-family
in the font library. Therefore, you need to use the default font family name in the font file.
Lines 1079 to 1098 in ae7d27c
from lcui.
@lc-soft thanks! Does this mean we only can have one font for our application ui?
Can you explain what you mean from :
> Therefore, you need to use the default word family name in the font file.
Let's say I have Impact.ttf and Roboto.ttf is it possible to use them both in same ui page? if yes how?
from lcui.
Oh now I get it, the font name inside the font file!
Some other note if someone seek for same thing, in html/css font path should be releative to css file but in lcui it should be relative to app/exe file.
/* Bold */
@font-face
{
src: url("app_Data/font.ttf");
}
/* Light */
@font-face
{
src: url("app_Data/font2.ttf");
}
from lcui.
Same source works in firefox :
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="app_data\style.css">
</head>
<body>
<ui>
<div type="textview" class="header_text">Hello World!</div>
</ui>
</body>
</html>
from lcui.
Related Issues (20)
- Modal Window Still Clickable HOT 3
- Text input not working for keys, which are symbol on Shift hold (such as $ or £) HOT 2
- TextEdit 删除文字BUG
- GPU Backend HOT 2
- 老哥,LCUI好像没办法创建多窗口? HOT 2
- 主页上的例子直接编译好多都编译不过去,老哥不改改嘛? HOT 1
- 默认的例子最大化后再最小化,控件都没了。 HOT 1
- Keyboard Input Doesn't Work (Windows x64) HOT 6
- 请问支持C++吗 HOT 1
- C++ 相关问题 HOT 2
- File Dialog? HOT 1
- textedit相关问题 HOT 4
- 静态库错误 HOT 6
- 希望可以添加对android的支持 HOT 1
- Failed to build on MSYS2 MINGW64 HOT 1
- Please add cmake based build script HOT 1
- Make documentation page open source, for translation HOT 1
- 请问哪里能下载比v0.12.4更早版本的源代码? HOT 1
- 希望能够支持 mac 平台(M1 OR INTEL) HOT 1
- 尝试用 ziglang toolchain 编译LCUI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lcui.