| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
| 4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 scope.fontDescription().setWeight(scope.fontDescription().bolderWeight()); | 367 scope.fontDescription().setWeight(scope.fontDescription().bolderWeight()); |
| 368 } | 368 } |
| 369 | 369 |
| 370 void FontBuilder::setWeightLighter() | 370 void FontBuilder::setWeightLighter() |
| 371 { | 371 { |
| 372 FontDescriptionChangeScope scope(this); | 372 FontDescriptionChangeScope scope(this); |
| 373 | 373 |
| 374 scope.fontDescription().setWeight(scope.fontDescription().lighterWeight()); | 374 scope.fontDescription().setWeight(scope.fontDescription().lighterWeight()); |
| 375 } | 375 } |
| 376 | 376 |
| 377 void FontBuilder::setStretch(FontStretch fontStretch) | |
| 378 { | |
| 379 FontDescriptionChangeScope scope(this); | |
| 380 | |
| 381 scope.fontDescription().setStretch(fontStretch); | |
| 382 } | |
| 383 | |
| 384 void FontBuilder::setFontVariantLigaturesInitial() | 377 void FontBuilder::setFontVariantLigaturesInitial() |
| 385 { | 378 { |
| 386 FontDescriptionChangeScope scope(this); | 379 FontDescriptionChangeScope scope(this); |
| 387 | 380 |
| 388 scope.fontDescription().setCommonLigaturesState(FontDescription::NormalLigat
uresState); | 381 scope.fontDescription().setCommonLigaturesState(FontDescription::NormalLigat
uresState); |
| 389 scope.fontDescription().setDiscretionaryLigaturesState(FontDescription::Norm
alLigaturesState); | 382 scope.fontDescription().setDiscretionaryLigaturesState(FontDescription::Norm
alLigaturesState); |
| 390 scope.fontDescription().setHistoricalLigaturesState(FontDescription::NormalL
igaturesState); | 383 scope.fontDescription().setHistoricalLigaturesState(FontDescription::NormalL
igaturesState); |
| 391 scope.fontDescription().setContextualLigaturesState(FontDescription::NormalL
igaturesState); | 384 scope.fontDescription().setContextualLigaturesState(FontDescription::NormalL
igaturesState); |
| 392 } | 385 } |
| 393 | 386 |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 FontOrientation fontOrientation; | 677 FontOrientation fontOrientation; |
| 685 NonCJKGlyphOrientation glyphOrientation; | 678 NonCJKGlyphOrientation glyphOrientation; |
| 686 getFontAndGlyphOrientation(documentStyle, fontOrientation, glyphOrientation)
; | 679 getFontAndGlyphOrientation(documentStyle, fontOrientation, glyphOrientation)
; |
| 687 fontDescription.setOrientation(fontOrientation); | 680 fontDescription.setOrientation(fontOrientation); |
| 688 fontDescription.setNonCJKGlyphOrientation(glyphOrientation); | 681 fontDescription.setNonCJKGlyphOrientation(glyphOrientation); |
| 689 documentStyle->setFontDescription(fontDescription); | 682 documentStyle->setFontDescription(fontDescription); |
| 690 documentStyle->font().update(fontSelector); | 683 documentStyle->font().update(fontSelector); |
| 691 } | 684 } |
| 692 | 685 |
| 693 } | 686 } |
| OLD | NEW |