font-size

Font Size Differs in report

你离开我真会死。 提交于 2019-12-13 00:42:19
问题 I have developed a simple app with JSP and I use JasperReports to generate reports from my app. I've made a report in iReport 5.6.0 with Arial font size 8 and when I preview in iReport it looks just fine. The report shows up in the right format with Arial size 8. Then I try to run the report from my JSP app using JasperReports . The report also shows up with Arial font but in different size. It's 10. This is my current conditions : 1. I use font extension for Arial . 2. I use font embedded. 3

Font size relative to container

爷,独闯天下 提交于 2019-12-13 00:15:52
问题 i am designing a site that adjusts itself to the window size, and i need to make the text size relative to it's container (a div). I searched about doing it with css, and found out that it is not possible. So i am trying with JavaScript, but i am not a JavaScript programmer. So i searched each piece of the code i needed and compiled it to this: <script type="text/javascript"> $(document).ready(function() { while(true) { document.getElementById("text").style.fontSize = $("container").height();

GTK+ Set Font Size

社会主义新天地 提交于 2019-12-12 23:14:51
问题 As before, the MenuItems are too small for my use case. Therefore, my question is, "how I may increase the font size of the text "Save", "Load" and "Exit?" " The code below is able to change the style of the "Save" text, except that it is not able to change the font-size . When the executable is executed, the following warning comes up: Gtk-WARNING **: Theme parsing error: Styles.css:10:14: Junk at end of value When the line font-size: 25px; is removed (or commented out), the warning

Why <i> tag height is bigger than its contents?

☆樱花仙子☆ 提交于 2019-12-12 20:44:57
问题 I created small snippet to illustrate the problem. I have a svg icon inside <i> tag. This is a basic block for my icons, placed throughout my page in various places. For the sake of this example I placed it inside a simple div container. If you inspect the result of an example below you can see that <i> tag has height of 33px not 30px as expected. My question is why is that happening and how to prevent it? .container { font-size: 30px; } .icon { line-height: 1; } .icon svg { height: 1em;

CSS: text-decoration

Deadly 提交于 2019-12-12 19:17:08
在改一个项目的时候却遇到了一个莫名其妙的属性:text-decoration,这个属性,其实就只是用来把一段文字加上上横线、删除线或底线的属性罢了,通常会用在移除超链接的底线、或一些特殊强调的效果里头,但是这么容易的属性,为什么会莫名其妙呢?就让我们继续看下去~ 项目里遇到的问题 在我的项目里头遇到的问题如下,一个div里头包了一个span,我要“除了这个span之外,其他所有的文字都有底线”,通常看到这个问题一定觉得很简单,只要照下面的CSS写法一定可以达成: div{ font-size:20px; text-decoration: underline; } div span{ text-decoration: none; } 理论上应该前一段会有底线,后一段会没有底线,但是实际上却是一条底线通到底…… 不过我不信邪,怕是哪里CSS权重出了问题,直接加上万恶的important试试看,结果发现结果还是一模一样!天呀!是见到鬼了吗! div{ font-size:20px; text-decoration: underline; } div span{ text-decoration: none!important; } 由于实在是太诡异了,必须要查明原因,于是我换个角度思考,来改一下颜色试试看吧!一改才发现不得了,为什么底线会是红色的呀?! div{ font-size

datav轮播表使用事例

♀尐吖头ヾ 提交于 2019-12-12 15:33:46
官方事例地址: http://datav.jiaminghi.com/guide/scrollBoard.html 安装: npm install @jiaminghi/data-view    局部引入: import Vue from 'vue' import { scrollBoard } from '@jiaminghi/data-view'    事例dom: <dv-scroll-board :rowNum=12 :config="configdisplacementofDam" style="width:100%;height:100%;"/>    数据: // 大坝位移相关参数 headerdisplacementofDam: ['监测点', '横偏(X)', '纵偏(Y)', '横偏(X)', '纵偏(Y)'], datadisplacementofDam: [ ['<span class="span-rw">石马1</span>', '6.36', '6.36', '6.36', '6.36'], ['石马2', '6.36', '6.36', '6.36', '6.36'], ['石马3', '<span>6.36<i class="icon icon-shang"></i></span>', '6.36', '6.36', '6.36'], ['石马4',

手机端页面自适应解决方案—rem布局

我与影子孤独终老i 提交于 2019-12-12 14:03:57
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> rem布局非常简单,首页你只需在页面引入这段原生js代码就可以了 (function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc = function () { var clientWidth = docEl.clientWidth; if (!clientWidth) return; if(clientWidth>=640){ docEl.style.fontSize = '100px'; }else{ docEl.style.fontSize = 100 * (clientWidth / 640) + 'px'; } }; if (!doc.addEventListener) return; win.addEventListener(resizeEvt, recalc, false); doc.addEventListener('DOMContentLoaded', recalc, false); })(document, window); 如何使用? 这是rem布局的核心代码,这段代码的大意是:

Dynamically change size of multiple textview from code (without a “on disk” xml theme)?

此生再无相见时 提交于 2019-12-12 12:38:34
问题 I have 10 TextViews in my code and i would like to change font size on all of them. On my layout i have used a @style to define common properties however i don't know how to change them all from code once layout is on screen. What i dont want to do is update N objects but write only in one place. I know that i could use applyTheme but this assumes that you have an XML theme somewhere on disk, i want to be able to scale fonts to any size so this solution is not practical. Any idea? 回答1: See

Extract Text with its Font Details (Style and Size) from a PDF in Python [closed]

筅森魡賤 提交于 2019-12-12 11:08:47
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am looking to Extract Text with its Font Details (Style and Size) from a PDF in Python. I need to read/parse the text content and also get the font details. Please suggest. 回答1: There is a python library for that. Please have a look at PDFMiner. http://www.unixuser.org/~euske/python/pdfminer/index.html.

Using docx python library, how to apply color and font size simultaneously

╄→гoц情女王★ 提交于 2019-12-12 09:30:58
问题 I am writing to an .docx file using python docx library. I want to prespecify the font size and color of a paricular sentence. My problem is that I am not able to do it simultaneously. Let me illustrate - from docx import Document from docx.shared import Pt #Helps to specify font size from docx.shared import RGBColor #Helps to specify font Color document=Document() #Instantiation p=document.add_heading(level=0) p.add_run('I want this sentence colored red with fontsize=22').font.size=Pt(22)