Insert chinese font using css?
How do insert default chinese font into my website using css, and what are the web-safe chinese font available?
let say I have my dafault english font set like this
body{
font-family:Arial, Helvetica, sans-serif;
where do I add in the chinese font?
I try doing like this
body{
font-family:Arial, "黑体" ,Helvetica, sans-serif;
But it doesnt seem to be working...
It is because you did not specify the charset=utf-8
try inserting this line between the head section:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
and I also notice you did not declare your doctypes properly, which you will also include this line(if youare using transition):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
so overall your code will be like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>About</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="outer">
<div id="wrapper">
<div id="banner">
<h1 id="chi1">首頁</h1>
<h1 id="eng1">Welcome</h1>
</div>
<div id="topnav">
<ul id="left">
<li><a href="home.html">HOME</a></li>
<li><a href="about.html">ABOUT</a></li>
<li><a href="events.html">EVENTS</a></li>
<li><a href="pictures.html">PICTURES</a></li>
<li><a href="media.html">MEDIA</a></li>
<li><a href="contact.html">CONTACT</a></li>
</ul>
<ul id="right">
<li><a href="home.html">首頁</a></li>
<li><a href="about.html">有關</a></li>
<li><a href="events.html">事件</a></li>
<li><a href="pictures.html">照片</a></li>
<li><a href="media.html">媒體</a></li>
<li><a href="contact.html">連絡</a></li>
</ul>
</div>
Similar Messages
-
How to insert chinese fonts in AI and PS? they recognize only some of them
How to insert chinese fonts in AI and PS? they recognize only some of them
Since you do not spell out program names, I can't suggest a program forum... but you can find by using the link below
This forum is actually about the Cloud, not about using individual programs
Once your program downloads and installs with no errors, you need the program forum
If you start at the Forums Index http://forums.adobe.com/index.jspa
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll -
Inserting Chinese character using sqlplus
I am not able to insert Chinese character using sqlplus .
Am getting disconnected when trying to insert.
with no error
message coming
is disconnected form oracle enterpise 10.2.0.2.0 with .. mining..
Please help.sql is simple insert statement
insert into t5(txt) values ('中中 中 中 中 中 中 中 中 中 ');
os is AIX
I wonder when i using sql developer I am able to insert.
regarding environmental variable , I am not setting any variable regarding NLS.
I simply connect sqlplus username/password
when I execute following statement
sqlplus disconnect without giving any error.
question is why sql developer is able able to insert and sqlplus not
Thanks for reply -
Embedding fonts//using css
do you know how to use the embed fonts feature and css? or anti-alias the text that is styled using css?
i have tried to set:
titlefield.embedFonts = true;
titlefield.stylesheet = sheet;
but it does not work. if i comment out the embedFonts the css works fine but the text is very aliased. but as3 does not support the embed font property within css.
i appreciate any help!!you need to embed, at least, one font in your library: click the upper right of your library panel, click new font, select a font, tick the characters you want to embed, assign a name, click the actionscript tab and tick export for actionscript and assign a class name, eg YourFont.
you can then use:
var yf:Font = new YourFont();
var yfO:Object = {fontFamily:yf.fontName};
var ss:StyleSheet = new StyleSheet()
ss.setStyle(".yourfont", yfO);
var tf:TextField = new TextField();
tf.autoSize = TextFieldAutoSize.LEFT;
tf.styleSheet = ss;
addChild(tf);
tf.embedFonts = true;
tf.htmlText = "<span class='yourfont'>your text in YourFont</span> "; -
Hi
I am printing statement of account in chinese font using T.code f.27. I can see chinese address in print preview. But i can not see chinese letters in Hard copy.
F.27 t.code calling driver program(zprog). If i print the samr using program no issue. I can see chinese letters in hard copy.
Pls help me out.
Regards
KumarSince the chinese fonts are correctly printed using print prgram but not wih Tcode F.27
It seems that the sap script in chinese font is not getting executed.
Activate the sap script debugger, se 71 -> utilites -> activate debugger.
Then execute tcode F.27, check the language in which SAP script is called. I believe it would be English.
Most cases, sap scripts are called in the logon langauge / or based on the some condition.
Problem might reslolve if the sap script is called in chinese language.
Reward if useful. -
Hi
I am printing statement of account in chinese font using T.code f.27. I can see chinese address in print preview. But i can not see chinese letters in Hard copy.
F.27 t.code calling driver program(zprog). If i print the samr using program no issue. I can see chinese letters in hard copy.
Pls help me out
Regards
KumarHave you tried posting this question on the i18n forum?
http://forum.java.sun.com/forum.jspa?forumID=16 -
How to insert chinese characters in a table use FDK?
Hello~~
I am expecting to insert chinese characters in an XML file's table.
I'm using FDK7.2, if i use:
F_ApiAddText(docId, &tRange.beg, "asdf");
The English letters "asdf" can be insert correctly in the right place,
But, if insert chinese characters like this:
F_ApiAddText(docId, &tRange.beg, "人们");
No characters insert.
How can i solve this problem?
Please advise
Thanks
zhaopengZhaopeng,
Which encoding are you using for the Chinese characters? FrameMaker 7.2 does not support Unicode or UTF-8. I have not done this before, but I guess you need to supply the characters in Big5 resp. GBK encoding, see
http://help.adobe.com/en_US/FrameMaker/8.0/chinese_korean.pdf
[Ignore the 8.0 in the URL, the document talks about FrameMaker 7]
You also may have to make sure the paragraph format at your text location uses a Chinese font before inserting characters.
- Michael -
Why do my CSS files open in Chinese font?
My .css files have started opening in a Chinese font, in red.
If I open the files in BBEdit, they're fine. But opening them in
Dreamweaver always gets Chinese. I've tried making a new .css file
in BBEdit and then opening it in Dreamweaver, and it still opens in
Chinese. I've checked the font listing in Preferences and all seems
well. What is happening and how can I fix it?Problem solved. Not knowing Chinese, I had to go back and
open the file in BBEdit, then change the charset back to utf8 (it
had somehow reset to utf-16). -
I know a font that it is not installed in the system can be used the following way
BufferedInputStream bis = null;
try {
bis = new java.io.BufferedInputStream(new java.io.FileInputStream("C:\\ProggyTiny.ttf"));
final Font font = Font.createFont(Font.TRUETYPE_FONT, bis);
font.deriveFont(Font.PLAIN, 12);
// Now you can do jLabel.setFont(font); or something like this
} catch (Exception e) {
e.printStackTrace();
} finally {
try {if (bis!=null) bis.close(); } catch (Exception e) {}
}But I'm using a JTextPane in order to show some HTML content. The html code is styled using CSS. How can I use a current font in a CSS rule?OK,
I have given up messing with stylesheets, trying display:
block, inline, different ways of formatting the XML, messing with
XML.ignoreWhiteSpace, and XML.prettyPrinting etc.
I went down the route of encodeURI, using a RegExp to strip
out all tabs, linefeeds and carriage returns. This now gives
consistent results for all situations, even embedded and none
embedded fonts.
e.g.
_text:String = TEXT FROM XML, HTML TEXT etc
var st:String = encodeURI(_text);
var pattern:RegExp = /(%09)+|(%0A)+|(%0D)+/g;
st = st.replace(pattern, "");
st = decodeURI(st);
YOUTEXTFIELD.htmlText = st;
The <p> tags still behave as a <br/> tag, but you
can add an extra <br/> to simulate a paragraph.
Here is the example again with the updates,
Hope this helps someone -
Customizing Font Size of Date Navigator Header Using CSS
Hi All,
Can anyone offer any advice on how I'd change the font-size of the Date Navigator Header (i.e. May 2010, June 2010, etc)?
I've tried the good ol' CSS hack underneath the "Font Color of Date Navigator Header" and despite it working during preview, it doesn't come through when I save it.
This is what I've entered:
#000;padding:7px;font-weight:bold;font-size:medium
What am I doing wrong?
Is it because there are too many arguments?
Where else could I modify this?
Thanks,
Bim.Hello Bim,
I am not sure about your requirement using CSS. But, one way of changing the "Font Color of Date Navigator Header" is through editing the properties of your current theme in "Portal theme editor". For portal theme editor, logon to portal and navigate to System Administration>Portal Display>Theme Editor--> Click on the theme that is currently active.
Now, navigate to "Date Navigator" under Complex Elements and change the required properties. I hope this helps you. Let me know if you need any other information.
Regards,
Gopal. -
Which font and how to add a chinese font into font book that can be used in CS6 programs
I am wondering which chinese fonts are useable for Mac OS X. Which to buy and how to use. Should I use Font Pack or other programs to get the font to be used. Any advice is useful. Thank you
Are you planning on using the Chinese language in Illustrator? Or, do you just want a Chinese looking font, but using the English language? I use Font Agent Pro for font management. It allows you to install the font, view it and print a sample. You can look for Chinese looking fonts online ( i.e., myfonts.com ). As far as Chinese fonts themselves, I have no clue.
-
Change Header Font Color Using CSS doesn't effect
Hi guys,
I tried to set the header forecolor in "red" using CSS but no effect.
Any alternative solution?
Thanks.
CrizCriz,
We cannot use the color names in CSS you have to use predefined names
For Red Header use OraErrorHeader, for more font styles check.
http://download.oracle.com/tech/blaf/specs/textstandards.html
Thanks,
With regards,
Kali.
OSSI. -
hi
I have my Database with UTF-8 characterset.
I have sql file that contains data in chinese characters.
I need to run this sql and insert data into my database tables.
The sql file is simple text file saved in UTF-8 encoding.
Do I need to install chinese font on my machine to be able to run the sql successfully?
My nls_lang setting is AMERICAN_AMERICA.UTF8.
kelvinWhat is your operating system characterset? What is your database's operating system? What version of Oracle do you use?
-
NOT using css in dreamweaver 8
How can i get dreamweaver to NOT use css in a simply HTM
page?
I need it do create a HTM page where the font, colour, size,
etc is .
Like
font color="#FFFFFF"
face="Verdana"><strong> My Test Goes Here
</strong></font
I'm creating html mail shots and need the code this way.
Thanks
AndyThanks dave
Thanks for that, i was looking everywhere :-)
Andy
"David Powers" <[email protected]> wrote in message
news:f2ugqr$kog$[email protected]..
> Andy wrote:
>> How can i get dreamweaver to NOT use css in a simply
HTM page?
>
> There are two ways:
>
> * Use the Font tag editor on the Text tab of the Insert
bar.
> * Open the Preferences panel (Edit menu on Windows,
Dreamweaver menu on a
> Mac), select the General category, and deselect Use CSS
instead of HTML
> tags.
>
> --
> David Powers, Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of
ED)
> Author, "PHP Solutions" (friends of ED)
>
http://foundationphp.com/ -
Chinese font characters disappearing in CS6
I need to redesign an InDesign file that is in Chinese and originally created in CS5. When I open the document in CS6 some characters disappear (no pink box). When I substitute the font with another Simplified Chinese font, some of the missing characters appear but then I lose other characters. Is this a CS6 issue? Any solutions?
Chinese fonts can vary dramatically in character count, whether simplified or traditional, but older simplified fonts are particularly small (GB vs. GBK, etc.): the ChineseMac site has a handy list showing character counts for a bunch of fonts. And sometimes ID doesn't show a pink box, just a blank.
Differences can be really subtle. Several years ago I worked on a job using Adobe Fangsong, if I recall correctly. Some stuff disappeared on a colleague's machine, and it turned out he was using a version of the font bundled with an earlier version of InDesign and hadn't installed the revised font when upgrading ID. (The older one lacked some of the vertical punctuation symbols I'd added to the files.)
Good luck!
David
Maybe you are looking for
-
Question i keep getting a dialogue box asking me if i want to open or save a firefox document every time i click on an email in windows outlook; what can i do to fix this? thank you
-
SAP ABAP HR ------career related question
Hye friends , Friends i have 2.5 years of experience in sap abap . My major developments are related to sap HR . i have 1 full life cycle completion of sap netweaver . No i wanna my carrier as a SAP BAP HR . But dear gurus from india , who has expe
-
Housekeeping Needed due to synch with 10.2.8?
I recently purchased a new Mac Pro Quad. Formerly I had been running a G4 with 10.2.8. When I started the Mac Pro for the first time I saw a message asking if I was updating from an earlier Mac OS X, which I was. The OS then gave directions on settin
-
How do i change Apple ID on ipod touch if an Ipone holds primary ID number
How do I change Apple ID on ipod touch if an Iphone holds primary ID number? Don't want to mess with my Iphone account.
-
What to Study to become an Designer / Architect
Hi, This post may have nothing to do with code, but I still wanted to ask you people because I know all of you have different experiences. I have finished my studies from a polytechnic college. Found a job and worked in the UK for some time. Now I ca