Changeset 883
- Timestamp:
- 02/12/14 17:19:30 (10 years ago)
- Location:
- trunk/src/org/expeditee
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/io/WebParser.java
r848 r883 302 302 final MutableInt horizontalCount = new MutableInt(0); 303 303 304 final String pageTitle = webEngine.getTitle(); 304 final String pageTitle; 305 306 if (webEngine.getTitle() != null) { 307 pageTitle = webEngine.getTitle(); 308 } else { 309 pageTitle = "Untitled Page"; 310 } 305 311 306 312 final Progress progressBar = MessageBay.displayProgress("Converting web page"); … … 1254 1260 for (int j = 0; j < typefaces.length && !fontFound; j++) { 1255 1261 if (typefaces[j].toLowerCase().equals("sans-serif")) { 1256 typefaces[j] = "Arial Unicode MS"; 1257 } else if (typefaces[j].toLowerCase().equals("serif")) { 1258 typefaces[j] = "Times New Roman"; 1262 typefaces[j] = "SansSerif"; 1259 1263 } else if ((typefaces[j].toLowerCase().equals("arial"))) { 1260 1264 // Have to use Arial Unicode, otherwise unicode characters display incorrectly 1265 // It seems that not all systems have this font (including some Windows machines), 1266 // but as long as the website has a general font type specified (e.g. "font-family: Arial, Sans-Serif"), 1267 // there should be no noticeable difference. 1261 1268 typefaces[j] = "Arial Unicode MS"; 1269 } else if ((typefaces[j].toLowerCase().equals("monospace"))) { 1270 typefaces[j] = "monospaced"; 1262 1271 } 1263 1272 -
trunk/src/org/expeditee/items/widgets/JfxBrowser.java
r877 r883 704 704 public void getFrame() { 705 705 try { 706 WebParser.parsePage (this._webEngine, DisplayIO.getCurrentFrame());706 WebParser.parsePageSimple(this, _webEngine, _webView, DisplayIO.getCurrentFrame()); 707 707 } catch (Exception e) { 708 708 e.printStackTrace();
Note:
See TracChangeset
for help on using the changeset viewer.